added more triggers
This commit is contained in:
parent
e5e636d836
commit
9387e010be
1 changed files with 24 additions and 0 deletions
|
|
@ -171,6 +171,30 @@ case "$mode" in
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Toggle also icon of the launcher for this script.
|
||||||
|
case "$mode" in
|
||||||
|
day)
|
||||||
|
sed -i 's/toggledarkmode-dark/toggledarkmode-light/' ~/.config/xfce4/panel/launcher-22/17287060942.desktop
|
||||||
|
;;
|
||||||
|
night)
|
||||||
|
sed -i 's/toggledarkmode-light/toggledarkmode-dark/' ~/.config/xfce4/panel/launcher-22/17287060942.desktop
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Toggle also icon of 'application menu'
|
||||||
|
case "$mode" in
|
||||||
|
day)
|
||||||
|
xfconf-query --channel 'xfce4-panel' --property '/plugins/plugin-1/button-icon' --set 'emblem-debian'
|
||||||
|
;;
|
||||||
|
night)
|
||||||
|
xfconf-query --channel 'xfce4-panel' --property '/plugins/plugin-1/button-icon' --set 'emblem-debian-white'
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
echo "<txt>$TEXT</txt>"
|
echo "<txt>$TEXT</txt>"
|
||||||
echo "<txtclick>$0 toggle</txtclick>"
|
echo "<txtclick>$0 toggle</txtclick>"
|
||||||
echo "<tool>
|
echo "<tool>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue