aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-12-17 22:59:19 +0900
committerGitHub <noreply@github.com>2023-12-17 22:59:19 +0900
commit9cede52e092289c8e5cbe66f5a97b4d759409ce4 (patch)
tree9b52d33e7f8c099f2776878fb87099d966efa70f /config/hypr/scripts
parent0ac64eb61526f5ae02a58e5e90a589ec0f4c3b45 (diff)
parenta42dde412ec9807705b9f6bfc8e25ad37f06a776 (diff)
Merge pull request #81 from JaKooLit/Development
Development
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/AirplaneMode.sh2
-rwxr-xr-xconfig/hypr/scripts/ChangeBlur.sh2
-rwxr-xr-xconfig/hypr/scripts/GameMode.sh4
-rwxr-xr-xconfig/hypr/scripts/SwitchKeyboardLayout.sh4
-rwxr-xr-xconfig/hypr/scripts/Volume.sh4
5 files changed, 11 insertions, 5 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh
index dc9a5956..428a09bd 100755
--- a/config/hypr/scripts/AirplaneMode.sh
+++ b/config/hypr/scripts/AirplaneMode.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-dunstify -u low -i "$dunst_notif"
+dunst_notif="$HOME/.config/dunst/images/bell.png"
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh
index 46d8a1f8..891e22eb 100755
--- a/config/hypr/scripts/ChangeBlur.sh
+++ b/config/hypr/scripts/ChangeBlur.sh
@@ -9,7 +9,7 @@ if [ "${STATE}" == "2" ]; then
hyprctl keyword decoration:blur:passes 1
dunstify -u low -i "$dunst_notif" "Less blur"
else
- hyprctl keyword decoration:blur:size 6
+ hyprctl keyword decoration:blur:size 5
hyprctl keyword decoration:blur:passes 2
dunstify -u low -i "$dunst_notif" "Normal blur"
fi
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh
index fe3fed78..0e6f83af 100755
--- a/config/hypr/scripts/GameMode.sh
+++ b/config/hypr/scripts/GameMode.sh
@@ -19,9 +19,11 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then
exit
else
swww init && swww img "$HOME/.config/rofi/.current_wallpaper"
+ sleep 0.1
+ ${SCRIPTSDIR}/PywalSwww.sh
sleep 0.5
${SCRIPTSDIR}/Refresh.sh
- dunstify -u low -i "$dunst_notif" "gamemode disabled. All animations normal"
+ dunstify -u normal -i "$dunst_notif" "gamemode disabled. All animations normal"
exit
fi
hyprctl reload
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh
index e7c56b42..9d1ee844 100755
--- a/config/hypr/scripts/SwitchKeyboardLayout.sh
+++ b/config/hypr/scripts/SwitchKeyboardLayout.sh
@@ -2,6 +2,7 @@
layout_f="$HOME/.cache/kb_layout"
settings_file="$HOME/.config/hypr/configs/Settings.conf"
+dunst_notif="$HOME/.config/dunst/images/bell.png"
# Check if ~/.cache/kb_layout exists and create it with a default layout from Settings.conf if not found
if [ ! -f "$layout_f" ]; then
@@ -37,3 +38,6 @@ new_layout="${layout_mapping[next_index]}"
# Update the keyboard layout
hyprctl keyword input:kb_layout "$new_layout"
echo "$new_layout" > "$layout_f"
+
+# Notification for the new keyboard layout
+dunstify -u low -i "$dunst_notif" "Keyboard layout set to $new_layout" \ No newline at end of file
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index 1273a5d4..d0eb0b68 100755
--- a/config/hypr/scripts/Volume.sh
+++ b/config/hypr/scripts/Volume.sh
@@ -29,9 +29,9 @@ get_icon() {
# Notify
notify_user() {
if [[ "$(get_volume)" == "Muted" ]]; then
- dunstify -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume : Muted"
+ dunstify -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume: Muted"
else
- dunstify -h int:value:"$(get_volume | sed 's/%//')" -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume : $(get_volume)"
+ dunstify -h int:value:"$(get_volume | sed 's/%//')" -h string:x-dunst-stack-tag:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)"
fi
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage