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:
Donovan Glover 2018-10-19 17:28:27 -04:00
parent dfe0e61daf
commit 4dfdc10f53
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -77,12 +77,11 @@ super + f
# ======= polybar ======= # ======= polybar =======
# ======================= # =======================
super + o
xdo hide -N "Polybar" && bspc config top_padding 0
# top_padding depends on the height you set in polybar/config # top_padding depends on the height you set in polybar/config
super + O super + o
xdo show -N "Polybar" && bspc config top_padding 80 (xdotool search --class --onlyvisible "Polybar" && \
(xdo hide -N "Polybar" && bspc config top_padding 0)) || \
(xdo show -N "Polybar" && bspc config top_padding 80)
# ===================== # =====================
# ===== Preselect ===== # ===== Preselect =====