aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-04-19 23:44:48 +0900
committerGitHub <noreply@github.com>2024-04-19 23:44:48 +0900
commitdb03332ee21596fa240747f46a2214a7570ab7ee (patch)
treecdf3fb6e12cdb48b826da70200fc9464d634da95 /config/hypr/scripts
parent7fefc808e40d763217b1ae5ad2bd7548eb160084 (diff)
parent3aadf05460bf5ec11eb6c5e978f42b4bc6111998 (diff)
Merge pull request #200 from JaKooLit/development
Development to Main v2.2.7
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/RofiEmoji.sh4
-rwxr-xr-xconfig/hypr/scripts/SwitchKeyboardLayout.sh4
-rwxr-xr-xconfig/hypr/scripts/Volume.sh20
3 files changed, 16 insertions, 12 deletions
diff --git a/config/hypr/scripts/RofiEmoji.sh b/config/hypr/scripts/RofiEmoji.sh
index 60eff33d..4c51ee8a 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
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh
index b280493e..0145e262 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"
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index e8612c38..37a0603b 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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage