From 060a3eca398a981596dc721764f644601a753869 Mon Sep 17 00:00:00 2001 From: bimlas Date: Fri, 10 Apr 2020 20:32:01 +0200 Subject: [PATCH] Use `night-mode` channel instead of `bimlas` It's easier to find but it may conflict with other XFCE stuff. --- xfce-night-mode.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xfce-night-mode.sh b/xfce-night-mode.sh index 830af6c..97533c3 100755 --- a/xfce-night-mode.sh +++ b/xfce-night-mode.sh @@ -5,7 +5,7 @@ function show_usage() progname=`basename "$0"` echo "$progname [night|day|toggle]" echo "Without parameters it will set dark theme from $SUNSET to $SUNRISE" - echo 'Use `xfce4-settings-editor` -> `bimlas/night-mode` to modify settings' + echo 'Use `xfce4-settings-editor` -> `night-mode` to modify settings' } function parse_args() @@ -90,10 +90,10 @@ function _set_night() function get_config() { - result=`xfconf-query --channel 'bimlas' --property "/night-mode/$1" 2> /dev/null` + result=`xfconf-query --channel 'night-mode' --property "/$1" 2> /dev/null` if ! [ "$result" ]; then result="$3" - xfconf-query --channel 'bimlas' --property "/night-mode/$1" --set "$result" --create --type "$2" + xfconf-query --channel 'night-mode' --property "/$1" --set "$result" --create --type "$2" fi echo "$result" @@ -123,5 +123,5 @@ echo "$0 toggle" echo " Night mode: $SUNSET - $SUNRISE Click to toggle mode for a while - Use \`xfce4-settings-editor\` -> \`bimlas/night-mode\` to modify settings + Use \`xfce4-settings-editor\` -> \`night-mode\` to modify settings "