py3status: Update bar on presentation mode toggle

This commit is contained in:
2020-12-20 22:02:40 +01:00
parent 5c74a8644b
commit 1d12b99907

View File

@@ -12,6 +12,9 @@ switch_on() {
dunstctl disable &
systemctl --user --no-block stop redshift.service
systemctl --user --no-block stop spotify.service
~/.i3/scripts/bar-update "external_script presentation_mode"
~/.i3/scripts/bar-update "systemd redshift"
~/.i3/scripts/bar-update "systemd spotify"
}
switch_off() {
@@ -19,6 +22,9 @@ switch_off() {
dunstctl enable &
systemctl --user --no-block start redshift.service
systemctl --user --no-block start spotify.service
~/.i3/scripts/bar-update "external_script presentation_mode"
~/.i3/scripts/bar-update "systemd redshift"
~/.i3/scripts/bar-update "systemd spotify"
}