diff --git a/config/hypr/scripts/load-hyprsunset.sh b/config/hypr/scripts/load-hyprsunset.sh deleted file mode 100644 index 6a736cd..0000000 --- a/config/hypr/scripts/load-hyprsunset.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -# This script loads hyprsunset settings previously -# saved by the save-hyprsunset.sh script on shutdown. -# -------------- -# Licensed under the BSD 3-Clause License -# Made by retrozinndev (João Dias) -# From https://github.com/retrozinndev/colorshell - -[[ -z $XDG_CONFIG_HOME ]] && XDG_CONFIG_HOME="$HOME/.config" - -file_="$XDG_CONFIG_HOME/hypr/hyprsunset.conf" - -if ! [[ -f "$file_" ]]; then - echo "[warn] Couldn't load hyprsunset config: file not found" - exit 0 -fi - -if ! [[ "$XDG_CURRENT_DESKTOP" =~ "Hyprland" ]]; then - echo "[error] Seems like you're not running Hyprland! Exiting" - exit 1 -fi - -if [[ -z $(command -v hyprsunset) ]]; then - echo "[error] Couldn't load hyprsunset settings: it's either not installed or not in PATH" - exit 1 -fi - -temperature=$(cat "$file_" | grep -E "^temperature = (.*)" | awk -F= '{ print $2 }')> /dev/null -gamma=$(cat "$file_" | grep -E "^gamma = (.*)" | awk -F= '{ print $2 }')> /dev/null - -hyprctl hyprsunset temperature $temperature -sleep .05 -hyprctl hyprsunset gamma $gamma diff --git a/config/hypr/scripts/save-hyprsunset.sh b/config/hypr/scripts/save-hyprsunset.sh deleted file mode 100644 index e81953a..0000000 --- a/config/hypr/scripts/save-hyprsunset.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# This script saves hyprsunset values into a file using -# hyprlang, in `$XDG_CONFIG_HOME/hypr/hyprsunset.conf`. -# It is used to save last user configuration on computer -# shutdown. -# -------------- -# Licensed under the BSD 3-Clause License -# Made by retrozinndev (João Dias) -# From https://github.com/retrozinndev/colorshell - -[[ -z $XDG_CONFIG_HOME ]] && XDG_CONFIG_HOME="$HOME/.config" - -if ! [[ "$XDG_CURRENT_DESKTOP" =~ "Hyprland" ]]; then - echo "[error] Seems like you're not running Hyprland! Exiting" - exit 1 -fi - -if [[ -z $(command -v hyprsunset) ]]; then - echo "[error] Couldn't save hyprsunset settings: it's either not installed or not in PATH" - exit 1 -fi - -output="$XDG_CONFIG_HOME/hypr/hyprsunset.conf" - -temperature=$(hyprctl hyprsunset temperature || 6000) -gamma=$(hyprctl hyprsunset gamma || 100) - -printf "temperature = %d\ngamma = %d" "$temperature" "$gamma" > $output diff --git a/config/hypr/shell/autostart.conf b/config/hypr/shell/autostart.conf index 4b469c7..6ccdb8e 100644 --- a/config/hypr/shell/autostart.conf +++ b/config/hypr/shell/autostart.conf @@ -15,7 +15,6 @@ exec-once = systemctl enable --user --now hyprpaper # Scripts exec-once = sh $XDG_CONFIG_HOME/hypr/scripts/gen-pywal.sh -exec-once = sleep 3 && sh $XDG_CONFIG_HOME/hypr/scripts/load-hyprsunset.sh # wait some time to actually set the filters # Shell exec-once = uwsm check is-active && uwsm app colorshell.desktop || gtk-launch colorshell.desktop || colorshell diff --git a/config/hypr/shell/bindings.conf b/config/hypr/shell/bindings.conf index afd3863..2e896e9 100644 --- a/config/hypr/shell/bindings.conf +++ b/config/hypr/shell/bindings.conf @@ -8,7 +8,7 @@ bind = , Print, exec, $exec $scripts/screenshot.sh bind = $mainMod, Print, exec, $exec $scripts/screenshot.sh full # restarts colorshell -bind = $mainMod, F7, exec, colorshell reload || $exec colorshell +bind = $mainMod, F7, exec, $exec colorshell reload || $exec colorshell bind = $mainMod, K, exec, $exec $terminal bind = $mainMod, Q, killactive diff --git a/config/hypr/shell/rules.conf b/config/hypr/shell/rules.conf index 5c8e9b4..1d32d2b 100644 --- a/config/hypr/shell/rules.conf +++ b/config/hypr/shell/rules.conf @@ -37,7 +37,6 @@ layerrule = animation fade, control-center layerrule = animation fade, center-window layerrule = animation fade, logout-menu layerrule = animation slide bottom, apps-window -layerrule = animation slide right, floating-notifications layerrule = animation fade, runner layerrule = animation fade, background-window layerrule = animation fade, background-window-blur