diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 1824d23..5423807 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -42,6 +42,6 @@ exec-once = $scriptsDir/RainbowBorders.sh # exec-once = $scriptsDir/AppAutoClose.sh # sway-idle with lock -# exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' +exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' # without lock #exec-once = swayidle -w timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh index b97039e..247265f 100644 --- a/config/hypr/scripts/ChangeBlur.sh +++ b/config/hypr/scripts/ChangeBlur.sh @@ -1,13 +1,13 @@ #!/bin/bash -STATE=$(hyprctl -j getoption decoration:blur_passes | jq ".int") +STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int") if [ "${STATE}" == "2" ]; then - hyprctl keyword decoration:blur_size 3 - hyprctl keyword decoration:blur_passes 1 + hyprctl keyword decoration:blur:size 3 + hyprctl keyword decoration:blur:passes 1 notify-send "Less blur" else - hyprctl keyword decoration:blur_size 7.8 - hyprctl keyword decoration:blur_passes 2 + hyprctl keyword decoration:blur:size 7.8 + hyprctl keyword decoration:blur:passes 2 notify-send "Normal blur" fi diff --git a/config/hypr/waybar/modules b/config/hypr/waybar/modules index c4b3b5a..74662e2 100644 --- a/config/hypr/waybar/modules +++ b/config/hypr/waybar/modules @@ -38,8 +38,7 @@ "format-time": "{H}h {M}min", "tooltip": true, "tooltip-format": "{timeTo} {power}w", - "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", - "on-click-right": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown", + "on-click-right": "$HOME/.config/hypr/scripts/WofiPower.sh", }, "bluetooth": { @@ -325,6 +324,7 @@ "custom/light_dark": { "format": "", "on-click": "~/.config/hypr/scripts/DarkLight.sh", + "on-click-middle": "~/.config/hypr/scripts/ChangeBlur.sh", "tooltip": false, }, diff --git a/install-scripts/00-dependencies.sh b/install-scripts/00-dependencies.sh index 3b6ed81..5a72525 100755 --- a/install-scripts/00-dependencies.sh +++ b/install-scripts/00-dependencies.sh @@ -17,6 +17,7 @@ dependencies=( gobject-introspection golang hwdata + jq libavcodec-dev libavformat-dev libavutil-dev diff --git a/install-scripts/dotfiles.sh b/install-scripts/dotfiles.sh index 27fd472..f090229 100644 --- a/install-scripts/dotfiles.sh +++ b/install-scripts/dotfiles.sh @@ -30,6 +30,16 @@ detect_x_layout() { fi } +# Function to detect keyboard layout in a tty environment +detect_tty_layout() { + layout=$(localectl status --no-pager | awk '/X11 Layout/ {print $3}') + if [ -n "$layout" ]; then + echo "$layout" + else + echo "unknown" + fi +} + # Detect the current keyboard layout based on the environment if [ -n "$DISPLAY" ]; then # System is in an X server environment diff --git a/install-scripts/nvidia.sh b/install-scripts/nvidia.sh index 14a74c8..82bbfb9 100755 --- a/install-scripts/nvidia.sh +++ b/install-scripts/nvidia.sh @@ -85,6 +85,7 @@ if git clone --recursive https://github.com/hyprwm/Hyprland 2>&1 | tee -a "$LOG" cd Hyprland || exit 1 # additional for hyprland-nvidia sed 's/glFlush();/glFinish();/g' -i subprojects/wlroots/render/gles2/renderer.c + make all if sudo make install 2>&1 | tee -a "$LOG"; then printf "${OK} Nvidia-Hyprland installed successfully.\n" # Return to the previous directory