diff --git a/CHANGELOG b/CHANGELOG index b5fc1ba..341c5e4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,10 +2,12 @@ Version 2.9 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.9 -------------------------------------------------------- - New Hyprland Settings App. Can be launched from the App Launcher, the ML4W Welcome App or the new ML4W logo context menu (right click) -- Added context menu (right click) to ML4W Logo in Waybar. +- Added sidebar menu. Start with click on ML4W Logo in Waybar. Right click starts the welcome app - Updated hyprlock screen showing the wallpaper in a circle. hyprlock 3 required - Waybar Taskbar Module hidden by default. Can be enabled again in the ML4W Settings App - Hyprpaper is now the default wallpaper engine. swww can be activiated +- Animations can be disabled in the Dotfiles Settings app +- Animations can be toggled (enabled/disabled) with SUPER + SHIFT + A Version 2.8.4 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.4 diff --git a/hypr/conf/animations/disabled.conf b/hypr/conf/animations/disabled.conf new file mode 100644 index 0000000..c9e31c4 --- /dev/null +++ b/hypr/conf/animations/disabled.conf @@ -0,0 +1,7 @@ +# ----------------------------------------------------- +# Animations +# name "Default" +# ----------------------------------------------------- +animations { + enabled = false +} diff --git a/hypr/conf/keybindings/default.conf b/hypr/conf/keybindings/default.conf index c54b8f8..5c62294 100644 --- a/hypr/conf/keybindings/default.conf +++ b/hypr/conf/keybindings/default.conf @@ -31,6 +31,7 @@ bind = $mainMod SHIFT, down, resizeactive, 0 100 bind = $mainMod, G, togglegroup # Actions +bind = $mainMod SHIFT, A, exec, ~/dotfiles/hypr/scripts/toggle-animations.sh toggle bind = $mainMod, PRINT, exec, ~/dotfiles/hypr/scripts/screenshot.sh bind = $mainMod CTRL, Q, exec, wlogout bind = $mainMod SHIFT, W, exec, ~/dotfiles/hypr/scripts/wallpaper.sh diff --git a/hypr/conf/ml4w.conf b/hypr/conf/ml4w.conf index ff04ece..fae3903 100644 --- a/hypr/conf/ml4w.conf +++ b/hypr/conf/ml4w.conf @@ -35,3 +35,4 @@ env = APPIMAGELAUNCHER_DISABLE,1 exec-once = ~/dotfiles/hypr/scripts/ml4w-welcome-autostart.sh exec-once = ~/.config/ml4w-hyprland-settings/hyprctl.sh exec-once = ~/dotfiles/hypr/scripts/eww.sh +exec-once = ~/dotfiles/hypr/scripts/toggle-animations.sh diff --git a/hypr/scripts/toggle-animations.sh b/hypr/scripts/toggle-animations.sh new file mode 100755 index 0000000..cd4c06f --- /dev/null +++ b/hypr/scripts/toggle-animations.sh @@ -0,0 +1,19 @@ +#!/bin/bash +cache_file="$HOME/.cache/current_animation" +if [[ "$1" == "toggle" ]]; then + if [[ ! $(cat $HOME/dotfiles/hypr/conf/animation.conf) == *"disabled"* ]]; then + if [ ! -f $cache_file ] ;then + touch $cache_file + echo $(cat $HOME/dotfiles/hypr/conf/animation.conf) > "$cache_file" + echo "source = ~/dotfiles/hypr/conf/animations/disabled.conf" > "$HOME/dotfiles/hypr/conf/animation.conf" + else + echo $(cat "$cache_file") > "$HOME/dotfiles/hypr/conf/animation.conf" + rm $cache_file + fi + fi +else + if [ -f $cache_file ] ;then + rm $cache_file + fi + echo "source = ~/dotfiles/hypr/conf/animations/default.conf" > "$HOME/dotfiles/hypr/conf/animation.conf" +fi \ No newline at end of file