From 9618bbc847d75e1e70e08d97bd5b2a3c38cab2dd Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Thu, 3 Dec 2020 19:08:41 +0100 Subject: [PATCH] replace redshift with gammastep for wayland compatibility --- .../redshift.conf => gammastep/gammastep.ini | 0 gammastep/hook.sh | 19 +++++++++++++++++++ install.conf.yaml | 6 +++--- redshift/hook.sh | 19 ------------------- sway/config | 2 +- 5 files changed, 23 insertions(+), 23 deletions(-) rename redshift/redshift.conf => gammastep/gammastep.ini (100%) create mode 100755 gammastep/hook.sh delete mode 100755 redshift/hook.sh diff --git a/redshift/redshift.conf b/gammastep/gammastep.ini similarity index 100% rename from redshift/redshift.conf rename to gammastep/gammastep.ini diff --git a/gammastep/hook.sh b/gammastep/hook.sh new file mode 100755 index 0000000..79f9f4c --- /dev/null +++ b/gammastep/hook.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +notify(){ + notify-send \ + --app-name=redshift \ + --urgency=low \ + --icon=redshift \ + --hint=int:transient:1 \ + "${1}" "${2}" +} + +case $1 in + period-changed) + notify "Gammastep" "Period changed to $3" + ;; + *) + notify "Gammastep" "Gammastep just fired an unknown hook with these options: '$*'. Ah, of course, this notification is just here, to troll you! :-P" + ;; +esac diff --git a/install.conf.yaml b/install.conf.yaml index 2166673..3b2e814 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -13,7 +13,7 @@ - ~/.config/i3status - ~/.config/i3status-rust - ~/.config/mako - - ~/.config/redshift/hooks + - ~/.config/gammastep/hooks - ~/.config/rofi - ~/.config/sway - ~/.config/swaylock @@ -56,8 +56,8 @@ ~/.config/i3status-rust/config.toml: sway/i3status-rust.toml ~/.local/bin/lock: sway/lock.sh ~/.config/mako/config: mako/config - ~/.config/redshift.conf: redshift/redshift.conf - ~/.config/redshift/hooks/hook.sh: redshift/hook.sh + ~/.config/gammastep/config.ini: gammastep/gammastep.ini + ~/.config/gammastep/hooks/hook.sh: gammastep/hook.sh ~/.config/rofi/config.rasi: rofi/config.rasi ~/.config/rofi/arc-dark.rasi: rofi/arc-dark.rasi ~/.config/rofi/system.sh: rofi/system.sh diff --git a/redshift/hook.sh b/redshift/hook.sh deleted file mode 100755 index ba4b481..0000000 --- a/redshift/hook.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -notify(){ - notify-send \ - --app-name=redshift \ - --urgency=low \ - --icon=redshift \ - --hint=int:transient:1 \ - "${1}" "${2}" -} - -case $1 in - period-changed) - notify "Redshift" "Period changed to $3" - ;; - *) - notify "Redshift" "Redshift just fired an unknown hook with these options: '$*'. Ah, of course, this notification is just here, to troll you! :-P" - ;; -esac diff --git a/sway/config b/sway/config index 5ad4df0..a6f43eb 100644 --- a/sway/config +++ b/sway/config @@ -39,7 +39,7 @@ exec syncthing -no-browser exec blueman-applet exec telegram-desktop -startintray exec /usr/lib/geoclue-2.0/demos/agent -exec redshift-gtk -m wayland +exec gammastep-indicator exec nextcloud exec com.gitlab.newsflash