add script to hide top panel when showing run launcher

This commit is contained in:
2023-10-16 11:08:53 +01:00
parent 654e227398
commit 100e499884

15
show_dmenu.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# script to hide the top panel and show the program launcher in its place
# if bar is hidden, don't do anything with the top bar
if [ -f /tmp/polybarhidden ]; then
dmenu_run -fn "SauceCodePro Nerd Font-11" -nf "#f0f0f0" -nb "#0f0f0f" -sf "#f0f0f0" -sb "#8f8aac"
# if the bar isn't hidden, hide it, show dmenu, then unhide it
else
polybar-msg cmd hide
touch /tmp/polybarhidden
dmenu_run -fn "SauceCodePro Nerd Font-11" -nf "#f0f0f0" -nb "#0f0f0f" -sf "#f0f0f0" -sb "#8f8aac"
polybar-msg cmd show
rm /tmp/polybarhidden
fi