forked from extern/nix-config
sxhkd: Properly toggle polybar visibility
I tried to do this before, but couldn't figure it out. Now that I understand more about how windows in X11 work, and now that I know more about shell scripting, writing this functionality became trivial to do.
This commit is contained in:
parent
dfe0e61daf
commit
4dfdc10f53
@ -77,12 +77,11 @@ super + f
|
||||
# ======= polybar =======
|
||||
# =======================
|
||||
|
||||
super + o
|
||||
xdo hide -N "Polybar" && bspc config top_padding 0
|
||||
|
||||
# top_padding depends on the height you set in polybar/config
|
||||
super + O
|
||||
xdo show -N "Polybar" && bspc config top_padding 80
|
||||
super + o
|
||||
(xdotool search --class --onlyvisible "Polybar" && \
|
||||
(xdo hide -N "Polybar" && bspc config top_padding 0)) || \
|
||||
(xdo show -N "Polybar" && bspc config top_padding 80)
|
||||
|
||||
# =====================
|
||||
# ===== Preselect =====
|
||||
|
Loading…
Reference in New Issue
Block a user