From c1a75c04bae75e743d8835329ed03066f84026ae Mon Sep 17 00:00:00 2001 From: KKV9 Date: Tue, 13 Feb 2024 21:06:38 +0000 Subject: [PATCH 1/7] Fix volume incrementing twice Fix volume incrementing twice when using volume keys to unmute --- config/hypr/scripts/Volume.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh index 8c5af5d..c3e1db3 100755 --- a/config/hypr/scripts/Volume.sh +++ b/config/hypr/scripts/Volume.sh @@ -42,17 +42,19 @@ notify_user() { # Increase Volume inc_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -i 5 && notify_user fi - pamixer -i 5 && notify_user } # Decrease Volume dec_volume() { if [ "$(pamixer --get-mute)" == "true" ]; then - pamixer -u && notify_user + toggle_mute + else + pamixer -d 5 && notify_user fi - pamixer -d 5 && notify_user } # Toggle Mute @@ -102,17 +104,19 @@ notify_mic_user() { # Increase MIC Volume inc_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle_mic + else + pamixer --default-source -i 5 && notify_mic_user fi - pamixer --default-source -i 5 && notify_mic_user } # Decrease MIC Volume dec_mic_volume() { if [ "$(pamixer --default-source --get-mute)" == "true" ]; then - pamixer --default-source -u && notify_mic_user + toggle-mic + else + pamixer --default-source -d 5 && notify_mic_user fi - pamixer --default-source -d 5 && notify_mic_user } # Execute accordingly From 18de92f1cba1c3f16e054d72f132270545d94f43 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Tue, 19 Mar 2024 05:41:06 +0900 Subject: [PATCH 2/7] bumping for v2.2.7 development --- config/hypr/{v2.2.6 => v2.2.7} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename config/hypr/{v2.2.6 => v2.2.7} (100%) diff --git a/config/hypr/v2.2.6 b/config/hypr/v2.2.7 similarity index 100% rename from config/hypr/v2.2.6 rename to config/hypr/v2.2.7 From d66c6b7f49873d52a7a8cb6f65970f31ba406fff Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Sat, 23 Mar 2024 00:45:11 +0900 Subject: [PATCH 3/7] rofi-emoji script fix --- config/hypr/scripts/RofiEmoji.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh index 60eff33..4c51ee8 100755 --- a/config/hypr/scripts/RofiEmoji.sh +++ b/config/hypr/scripts/RofiEmoji.sh @@ -2,12 +2,12 @@ # /* ---- đŸ’Ģ https://github.com/JaKooLit đŸ’Ģ ---- */ ## # Rofi Emoticons. Not my own. Cant remember the source -sed '1,/^### DATA ###$/d' $0 | +sed '1,/^# # DATA # #$/d' $0 | rofi -dmenu -config ~/.config/rofi/config-long.rasi| cut -d ' ' -f 1 | tr -d '\n' | wl-copy exit -# DATA # +# # DATA # # 😀 grinning face face smile happy joy :D grin 😃 grinning face with big eyes face happy joy haha :D :) smile funny 😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile From 754cfb8c50f8046e4bbac78be1e5dea63cc79684 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Fri, 29 Mar 2024 05:30:57 +0900 Subject: [PATCH 4/7] fixed waybar vertical clock module --- config/waybar/modules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/waybar/modules b/config/waybar/modules index 1165211..fed721b 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -637,9 +637,9 @@ }, "clock#vertical": { - "format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}", + "format": "\n{:%H\n%M\n%S\n\n \n%d\n%m\n%y}", "interval": 1, - //"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}", + //"format": "\n{:%I\n%M\n%p\n\n \n%d\n%m\n%y}", "tooltip": true, "tooltip-format": "{calendar}", "calendar": { From 485d9c2113324d62f50f83cd4fcf46a3cba0fcea Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:04:30 +0530 Subject: [PATCH 5/7] Window rules added to make some apps transparent and float linux-wifi-hotspot should float evince should float google-chrome should be transparent google-chrome web apps should as well, with extra opacity since Meet, Youtube, YT Music webapps, deal with videos VSCode, Discord and other GNOME apps should be transparent as well --- config/hypr/UserConfigs/WindowRules.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index 0a8b9d1..6d13c8c 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -11,6 +11,8 @@ windowrule = float, zoom windowrule = float, rofi windowrule = float, gnome-system-monitor windowrule = float, yad +windowrule = float, ^(wihotspot-gui)$ # wifi hotspot +windowrule = float, ^(evince)$ # document viewer #windowrule = noblur,gamescope #windowrule = fullscreen,gamescope @@ -48,6 +50,14 @@ windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$ windowrulev2 = opacity 0.9 0.7, class:^(yad)$ windowrulev2 = opacity 0.9 0.7, class:^(com.obsproject.Studio)$ windowrulev2 = opacity 0.9 0.7, class:^([Aa]udacious)$ +windowrulev2 = opacity 0.9 0.8, class:^(google-chrome)$ +windowrulev2 = opacity 0.94 0.86, class:^(chrome-.+-Default)$ # Chrome PWAs +windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.Nautilus)$ +windowrulev2 = opacity 0.9 0.8, class:^(code-url-handler)$ +windowrulev2 = opacity 0.9 0.8, class:^(VSCode)$ +windowrulev2 = opacity 0.94 0.86, class:^(discord)$ +windowrulev2 = opacity 0.94 0.86, class:^(gnome-disks)$ +windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.baobab)$ #layerrule = unset,class:^([Rr]ofi)$ From 90e986c2acf89350444ce2ea0c1268d571089744 Mon Sep 17 00:00:00 2001 From: Maksym Diachok <108470719+BbIXOD@users.noreply.github.com> Date: Fri, 29 Mar 2024 22:58:21 +0200 Subject: [PATCH 6/7] fix: Fix bug in SwitchKeyboardLayout.sh `hyprctl switchxkblayout input:kb_layout $next_index` is a proper way to switch layouts. Should prevent from keybinds messing. --- config/hypr/scripts/SwitchKeyboardLayout.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh index b280493..0145e26 100755 --- a/config/hypr/scripts/SwitchKeyboardLayout.sh +++ b/config/hypr/scripts/SwitchKeyboardLayout.sh @@ -38,8 +38,8 @@ next_index=$(( (current_index + 1) % layout_count )) new_layout="${layout_mapping[next_index]}" # Update the keyboard layout -hyprctl keyword input:kb_layout "$new_layout" +hyprctl switchxkblayout "at-translated-set-2-keyboard" "$new_layout" echo "$new_layout" > "$layout_f" # Notification for the new keyboard layout -notify-send -u low -i "$notif" "new KB_Layout: $new_layout" \ No newline at end of file +notify-send -u low -i "$notif" "new KB_Layout: $new_layout" From cecd38e1ccc74b12332608ed115559ff899ef9dc Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:06:32 +0530 Subject: [PATCH 7/7] PATCH: userscripts/Sounds.sh: for Non-FHS systems, use the runtime dir on Non-FHS systems like NixOS, the system sounds are located in /run/current-system/sw/share/sounds according to XDG specification This patch allows the script to fallback to this directory if the sound files are not found in /usr/share/sounds or $HOME/.local/share/sounds --- config/hypr/UserScripts/Sounds.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh index 7c9100d..fb8a1f5 100755 --- a/config/hypr/UserScripts/Sounds.sh +++ b/config/hypr/UserScripts/Sounds.sh @@ -31,8 +31,12 @@ else fi # Set the directory defaults for system sounds. +if [ -d "/run/current-system/sw/share/sounds" ]; then + systemDIR="/run/current-system/sw/share/sounds" # NixOS +else + systemDIR="/usr/share/sounds" +fi userDIR="$HOME/.local/share/sounds" -systemDIR="/usr/share/sounds" defaultTheme="freedesktop" # Prefer the user's theme, but use the system's if it doesn't exist. @@ -62,4 +66,4 @@ if ! test -f "$sound_file"; then fi fi fi -pw-play "$sound_file" +pw-play "$sound_file" \ No newline at end of file