Update postswitch

This commit is contained in:
2021-04-19 12:43:15 +00:00
parent dc7a8d4aef
commit b74e26a3c3
+1 -1
View File
@@ -5,7 +5,7 @@ polybar_auto_hide_timer_name=polybar_auto_hide.timer
function auto_hide_polybar() {
if [[ $1 == "true" ]]; then
systemd-run --user --on-calendar="*:0/1" --unit=$polybar_auto_hide_timer_name /usr/bin/polybar-msg cmd show || true
systemd-run --user --on-calendar="*:0/1" --unit=$polybar_auto_hide_timer_name /usr/bin/polybar-msg cmd hide || true
else
systemctl --user stop $polybar_auto_hide_timer_name || true
fi