multiple bug fix or updates

This commit is contained in:
JaKooLit 2023-10-15 13:42:13 +09:00
parent 32d90ce13f
commit 373a613c68
6 changed files with 20 additions and 8 deletions

View File

@ -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'

View File

@ -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

View File

@ -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,
},

View File

@ -17,6 +17,7 @@ dependencies=(
gobject-introspection
golang
hwdata
jq
libavcodec-dev
libavformat-dev
libavutil-dev

View File

@ -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

View File

@ -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