TheRepoClub-DotFiles/localbin/.local/bin/toggle_conky

39 lines
763 B
Plaintext
Raw Normal View History

2022-10-28 06:08:22 -04:00
#!/usr/bin/env bash
#-*-coding:utf-8 -*-
#Auto updated?
# Yes
#File:
# toggle_conky
#Author:
# The-Repo-Club [wayne6324@gmail.com]
#Github:
# https://github.com/The-Repo-Club/
#
#Created:
# Fri 28 October 2022, 08:57:10 AM [GMT+1]
#Modified:
2022-10-30 11:05:34 -04:00
# Sun 30 October 2022, 02:50:09 PM [GMT]
2022-10-28 06:08:22 -04:00
#
#Description:
# Toggle the conky on and off
#
#Dependencies:
# conky
#
2022-10-30 11:05:34 -04:00
checkRun=$(pidof 'conky')
2022-10-28 06:08:22 -04:00
if command -v conky &>/dev/null; then
2022-10-30 11:05:34 -04:00
if [[ ! $checkRun ]]; then
2022-10-28 06:08:22 -04:00
(
i3-msg "gaps right all set 5; gaps right all set 330"
2022-10-28 11:36:45 -04:00
conky -c ~/.config/conky/left.conkyrc
conky -c ~/.config/conky/right.conkyrc
2022-10-28 06:08:22 -04:00
) &
else
killall -q conky
i3-msg "gaps inner all set 5; gaps outer all set 2"
fi
fi