py3status: Add icons for redshift & spotify

This commit is contained in:
2020-12-20 20:53:55 +01:00
parent ba9654edc3
commit d5eec81960
3 changed files with 34 additions and 1 deletions

17
i3/scripts/toggle-app Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
app="${1:?app missing}"
unitname="${app}.service"
running() {
systemctl --user --quiet status "${unitname}" >/dev/null
}
if running ; then
systemctl --user stop "${unitname}"
else
systemctl --user start "${unitname}"
fi
py3-cmd refresh "systemd $app"