diff --git a/CHANGELOG.md b/CHANGELOG.md index c49c477..c7ceb8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 2.9.1.1 +https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9 +-------------------------------------------------------- +- New installation method for sddm sugar candy theme. Instead of using yay, the installer will download the ZIP from the repository, extract it to the Downloads folder and copy the files to the destination folder. +- A gamemode can be toggled with SUPER+ALT+G. The gaming mode will disable the animations and blur. + Version 2.9.1 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9 -------------------------------------------------------- diff --git a/hypr/conf/autostart.conf b/hypr/conf/autostart.conf index 442af8e..1f5ddc7 100644 --- a/hypr/conf/autostart.conf +++ b/hypr/conf/autostart.conf @@ -29,5 +29,8 @@ exec-once = ~/dotfiles/hypr/scripts/ml4w-welcome-autostart.sh # Start ewww daemon exec-once = ~/dotfiles/hypr/scripts/eww.sh +# Start autostart cleanup +exec-once = ~/dotfiles/hypr/scripts/cleanup.sh + # Load configuration from ML4W Hyprland Settings App exec = ~/.config/ml4w-hyprland-settings/hyprctl.sh diff --git a/hypr/conf/keybindings/default.conf b/hypr/conf/keybindings/default.conf index e7b8ac3..d9dc297 100644 --- a/hypr/conf/keybindings/default.conf +++ b/hypr/conf/keybindings/default.conf @@ -47,6 +47,7 @@ bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh bind = $mainMod CTRL, S, exec, ~/dotfiles/apps/ML4W_Dotfiles_Settings-x86_64.AppImage bind = $mainMod CTRL, P, exec, hyprpicker -a bind = $mainMod SHIFT, S, exec, ~/dotfiles/hypr/scripts/hyprshade.sh +bind = $mainMod ALT, G, exec, ~/dotfiles/hypr/scripts/gamemode.sh # Workspaces bind = $mainMod, 1, workspace, 1 diff --git a/hypr/scripts/cleanup.sh b/hypr/scripts/cleanup.sh new file mode 100755 index 0000000..51589da --- /dev/null +++ b/hypr/scripts/cleanup.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Remove gamemode flag +if [ -f ~/.cache/gamemode ] ;then + rm ~/.cache/gamemode + echo ":: ~/.cache/gamemode removed" +fi \ No newline at end of file diff --git a/hypr/scripts/gamemode.sh b/hypr/scripts/gamemode.sh new file mode 100755 index 0000000..3ed36ce --- /dev/null +++ b/hypr/scripts/gamemode.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# ____ _ +# / ___| __ _ _ __ ___ ___ _ __ ___ ___ __| | ___ +# | | _ / _` | '_ ` _ \ / _ \ '_ ` _ \ / _ \ / _` |/ _ \ +# | |_| | (_| | | | | | | __/ | | | | | (_) | (_| | __/ +# \____|\__,_|_| |_| |_|\___|_| |_| |_|\___/ \__,_|\___| +# + +if [ -f ~/.cache/gamemode ] ;then + hyprctl keyword animations:enabled true + hyprctl keyword decoration:blur:enabled true + rm ~/.cache/gamemode + notify-send "Gamemode deactivated" "Animations and blur enabled" +else + hyprctl keyword animations:enabled false + hyprctl keyword decoration:blur:enabled false + touch ~/.cache/gamemode + notify-send "Gamemode activated" "Animations and blur disabled" +fi