init
This commit is contained in:
21
misc/bin/hidebar
Normal file
21
misc/bin/hidebar
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function hide() {
|
||||
polybar-msg cmd hide | bspc config top_padding 2 | bspc config bottom_padding 2
|
||||
}
|
||||
|
||||
function unhide() {
|
||||
polybar-msg cmd show | bspc config top_padding 48 | bspc config bottom_padding 48
|
||||
}
|
||||
|
||||
case $1 in
|
||||
-h | --hide | hide)
|
||||
hide
|
||||
exit;;
|
||||
-u | --unhide | unhide)
|
||||
unhide
|
||||
exit;;
|
||||
*)
|
||||
echo "Error: Invalid option"
|
||||
exit;;
|
||||
esac
|
Reference in New Issue
Block a user