large update
This commit is contained in:
@ -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
|
||||
;;
|
||||
|
Reference in New Issue
Block a user