mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-21 12:11:40 +01:00
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 =======
|
# ======= 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 =====
|
||||||
|
Loading…
Reference in New Issue
Block a user