large update

This commit is contained in:
natemaia
2018-06-09 16:51:08 -07:00
parent fbabd724c5
commit 16a0f6a67d
15 changed files with 86 additions and 66 deletions

View File

@ -11,7 +11,6 @@ _usage() {
OPTIONS:
-h,--help Display this message
-v,--version Display script version
-t,--terminal Toggle a floating work terminal, no additional options
-p,--polybar Toggle the configured polybar session, no additional options
-c,--compton Toggle compton or daemon monitoring icon, can use toggle option
-r,--redshift Toggle redshift or daemon monitoring icon, can use toggle option
@ -23,16 +22,6 @@ _usage() {
EOF
}
toggle_terminal() {
if pgrep --full "termite --title=Work --class=Work" &>/dev/null; then
pkill --full "termite --title=Work --class=Work"
else
termite --title=Work --class=Work &
fi
}
toggle_polybar() {
if [[ $(pidof polybar) ]]; then
pkill polybar
@ -116,9 +105,6 @@ toggle_caffeine() {
# Catch command line options
case $1 in
-t|--terminal)
toggle_terminal
;;
-p|--polybar)
toggle_polybar
;;