Update postswitch
This commit is contained in:
@@ -5,7 +5,7 @@ polybar_auto_hide_timer_name=polybar_auto_hide.timer
|
|||||||
function auto_hide_polybar() {
|
function auto_hide_polybar() {
|
||||||
|
|
||||||
if [[ $1 == "true" ]]; then
|
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
|
else
|
||||||
systemctl --user stop $polybar_auto_hide_timer_name || true
|
systemctl --user stop $polybar_auto_hide_timer_name || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user