aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-01-14 00:12:29 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-01-14 00:12:29 +0900
commitdf57f9890b28aa6f5139e2917cee213031ba0e9c (patch)
tree644b7851f189af52bfde39a2658cfe0d2fd20d7c
parent2d7d7b685e6ad01bd7c390700c17738cba05e3b1 (diff)
some scripts are tweaked to get a better notification. swaync config tweaked
-rwxr-xr-xconfig/hypr/UserScripts/RofiBeats.sh6
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperEffects.sh6
-rwxr-xr-xconfig/hypr/scripts/AirplaneMode.sh4
-rwxr-xr-xconfig/hypr/scripts/Brightness.sh2
-rwxr-xr-xconfig/hypr/scripts/BrightnessKbd.sh2
-rwxr-xr-xconfig/hypr/scripts/ChangeBlur.sh4
-rwxr-xr-xconfig/hypr/scripts/ChangeLayout.sh4
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh13
-rwxr-xr-xconfig/hypr/scripts/GameMode.sh4
-rwxr-xr-xconfig/hypr/scripts/KeyHints.sh5
-rwxr-xr-xconfig/hypr/scripts/MediaCtrl.sh6
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh14
-rwxr-xr-xconfig/hypr/scripts/SwitchKeyboardLayout.sh4
-rwxr-xr-xconfig/hypr/scripts/TouchPad.sh4
-rwxr-xr-xconfig/hypr/scripts/Volume.sh14
-rwxr-xr-xconfig/hypr/scripts/WaybarLayout.sh1
-rwxr-xr-xconfig/hypr/scripts/WaybarStyles.sh1
-rwxr-xr-xconfig/swaync/config.json10
18 files changed, 51 insertions, 53 deletions
diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh
index e615aadb..51b869f1 100755
--- a/config/hypr/UserScripts/RofiBeats.sh
+++ b/config/hypr/UserScripts/RofiBeats.sh
@@ -39,7 +39,7 @@ populate_local_music() {
# Function for displaying notifications
notification() {
- notify-send -u normal -i "$iDIR/music.png" "Playing: $@"
+ notify-send -u normal -i "$iDIR/music.png" "$(printf "\n Playing:\n $@")"
}
# Main function for playing local music
@@ -69,7 +69,7 @@ play_local_music() {
# Main function for shuffling local music
shuffle_local_music() {
- notification "Shuffle local music"
+ notification "Shuffle Play local music"
# Play music in $mDIR on shuffle
mpv --shuffle --loop-playlist --vid=no "$mDIR"
@@ -92,7 +92,7 @@ play_online_music() {
}
# Check if an online music process is running and send a notification, otherwise run the main function
-pkill mpv && notify-send -u low -i "$iDIR/music.png" "Music stopped" || {
+pkill mpv && notify-send -u low -i "$iDIR/music.png" "$(printf "\n Music stopped")" || {
# Check if rofi is already running
if pidof rofi > /dev/null; then
diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh
index f1984dab..b98b572b 100755
--- a/config/hypr/UserScripts/WallpaperEffects.sh
+++ b/config/hypr/UserScripts/WallpaperEffects.sh
@@ -49,7 +49,7 @@ no-effects() {
sleep 2
"$SCRIPTSDIR/Refresh.sh"
- notify-send -u low -i "$iDIR/bell.png" "No wallpaper effects"
+ notify-send -u low -i "$iDIR/bell.png" "$(printf "\n No wallpaper effects")"
# copying wallpaper for rofi menu
cp "$current_wallpaper" "$wallpaper_output"
}
@@ -71,7 +71,7 @@ main() {
no-effects
elif [[ "${effects[$choice]+exists}" ]]; then
# Apply selected effect
- notify-send -u normal -i "$iDIR/bell.png" "Applying $choice effects"
+ notify-send -u normal -i "$iDIR/bell.png" "$(printf "\n Applying\n $choice effects")"
eval "${effects[$choice]}"
# Wait for effects to be applied
sleep 1
@@ -85,7 +85,7 @@ main() {
sleep 0.5
# Refresh rofi, waybar, wallust palettes
"${SCRIPTSDIR}/Refresh.sh"
- notify-send -u low -i "$iDIR/bell.png" "$choice effects applied"
+ notify-send -u low -i "$iDIR/bell.png" "$(printf "\n $choice effects\n applied")"
else
echo "Effect '$choice' not recognized."
fi
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh
index 1587a2bc..cd061c76 100755
--- a/config/hypr/scripts/AirplaneMode.sh
+++ b/config/hypr/scripts/AirplaneMode.sh
@@ -9,8 +9,8 @@ wifi_blocked=$(rfkill list wifi | grep -o "Soft blocked: yes")
if [ -n "$wifi_blocked" ]; then
rfkill unblock wifi
- notify-send -u low -i "$notif" 'Airplane mode: OFF'
+ notify-send -u low -i "$notif" "$(printf "\n Airplane mode: OFF")"
else
rfkill block wifi
- notify-send -u low -i "$notif" 'Airplane mode: ON'
+ notify-send -u low -i "$notif" "$(printf "\n Airplane mode: ON")"
fi
diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh
index d1f80932..538d7cfd 100755
--- a/config/hypr/scripts/Brightness.sh
+++ b/config/hypr/scripts/Brightness.sh
@@ -29,7 +29,7 @@ get_icon() {
# Notify
notify_user() {
- notify-send -e -h string:x-canonical-private-synchronous:brightness_notif -h int:value:$current -u low -i "$icon" "Brightness : $current%"
+ notify-send -e -h string:x-canonical-private-synchronous:brightness_notif -h int:value:$current -u low -i "$icon" "$(printf "\n Brightness : $current%")"
}
# Change brightness
diff --git a/config/hypr/scripts/BrightnessKbd.sh b/config/hypr/scripts/BrightnessKbd.sh
index 92083e78..c34e09c6 100755
--- a/config/hypr/scripts/BrightnessKbd.sh
+++ b/config/hypr/scripts/BrightnessKbd.sh
@@ -26,7 +26,7 @@ get_icon() {
}
# Notify
notify_user() {
- notify-send -e -h string:x-canonical-private-synchronous:brightness_notif -h int:value:$current -u low -i "$icon" "Keyboard Brightness : $current%"
+ notify-send -e -h string:x-canonical-private-synchronous:brightness_notif -h int:value:$current -u low -i "$icon" "$(printf "\n Keyboard Brightness : $current%")"
}
# Change brightness
diff --git a/config/hypr/scripts/ChangeBlur.sh b/config/hypr/scripts/ChangeBlur.sh
index 321b8ec6..4df80fa1 100755
--- a/config/hypr/scripts/ChangeBlur.sh
+++ b/config/hypr/scripts/ChangeBlur.sh
@@ -9,9 +9,9 @@ STATE=$(hyprctl -j getoption decoration:blur:passes | jq ".int")
if [ "${STATE}" == "2" ]; then
hyprctl keyword decoration:blur:size 2
hyprctl keyword decoration:blur:passes 1
- notify-send -e -u low -i "$notif" "Less blur"
+ notify-send -e -u low -i "$notif" "$(printf "\n Less Blur")"
else
hyprctl keyword decoration:blur:size 5
hyprctl keyword decoration:blur:passes 2
- notify-send -e -u low -i "$notif" "Normal blur"
+ notify-send -e -u low -i "$notif" "$(printf "\n Normal Blur")"
fi
diff --git a/config/hypr/scripts/ChangeLayout.sh b/config/hypr/scripts/ChangeLayout.sh
index 75823bab..dbfe092b 100755
--- a/config/hypr/scripts/ChangeLayout.sh
+++ b/config/hypr/scripts/ChangeLayout.sh
@@ -14,7 +14,7 @@ case $LAYOUT in
hyprctl keyword bind SUPER,J,cyclenext
hyprctl keyword bind SUPER,K,cyclenext,prev
hyprctl keyword bind SUPER,O,togglesplit
- notify-send -e -u low -i "$notif" "Dwindle Layout"
+ notify-send -e -u low -i "$notif" "$(printf "\n Dwindle Layout")"
;;
"dwindle")
hyprctl keyword general:layout master
@@ -23,7 +23,7 @@ case $LAYOUT in
hyprctl keyword unbind SUPER,O
hyprctl keyword bind SUPER,J,layoutmsg,cyclenext
hyprctl keyword bind SUPER,K,layoutmsg,cycleprev
- notify-send -e -u low -i "$notif" "Master Layout"
+ notify-send -e -u low -i "$notif" "$(printf "\n Master Layout")"
;;
*) ;;
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index 83fcb3b8..50395493 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -48,7 +48,7 @@ update_theme_mode() {
# Function to notify user
notify_user() {
- notify-send -u low -i "$notif" "Switching to $1 mode"
+ notify-send -u low -i "$notif" "$(printf "\n Switching to $1 mode")"
}
# Use sed to replace the palette setting in the wallust config file
@@ -229,15 +229,14 @@ set_custom_gtk_theme "$next_mode"
# Update theme mode for the next cycle
update_theme_mode
-sleep 0.5
-# Run remaining scripts
-${SCRIPTSDIR}/WallustSwww.sh
-sleep 1
+
+${SCRIPTSDIR}/WallustSwww.sh &&
+sleep 2
${SCRIPTSDIR}/Refresh.sh
sleep 0.3
-# Display notifications for theme and icon changes
-notify-send -u normal -i "$notif" "Themes in $next_mode Mode"
+# Display notifications for theme and icon changes
+notify-send -u normal -i "$notif" "$(printf "\n Themes switched to \n $next_mode Mode")"
exit 0
diff --git a/config/hypr/scripts/GameMode.sh b/config/hypr/scripts/GameMode.sh
index 4bb7e910..8c746506 100755
--- a/config/hypr/scripts/GameMode.sh
+++ b/config/hypr/scripts/GameMode.sh
@@ -19,7 +19,7 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl keyword "windowrule opacity 1 override 1 override 1 override, ^(.*)$"
swww kill
- notify-send -e -u low -i "$notif" "gamemode enabled. All animations off"
+ notify-send -e -u low -i "$notif" "$(printf "\n gamemode enabled\n All animations: OFF")"
exit
else
swww-daemon --format xrgb && swww img "$HOME/.config/rofi/.current_wallpaper" &
@@ -27,7 +27,7 @@ else
${SCRIPTSDIR}/WallustSwww.sh
sleep 0.5
${SCRIPTSDIR}/Refresh.sh
- notify-send -e -u normal -i "$notif" "gamemode disabled. All animations normal"
+ notify-send -e -u normal -i "$notif" "$(printf "\n gamemode enabled\n All animations: normal")"
exit
fi
hyprctl reload
diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh
index e2e12634..6033cea4 100755
--- a/config/hypr/scripts/KeyHints.sh
+++ b/config/hypr/scripts/KeyHints.sh
@@ -50,9 +50,9 @@ GDK_BACKEND=$BACKEND yad --width=$dynamic_width --height=$dynamic_height \
" SHIFT enter" "DropDown Terminal" "(kitty-pyprland)" \
" SHIFT K" "Searchable Keybinds" "(Keybinds)" \
" A" "Desktop Overview" "(AGS Overview)" \
-" D" "App Launcher" "(rofi-wayland)" \
+" D" "Application Launcher" "(rofi-wayland)" \
" T" "Open File Manager" "(Thunar)" \
-" S" "Google Search" "(rofi)" \
+" S" "Google Search using rofi" "(rofi)" \
" Q" "close active window" "(not kill)" \
" Shift Q " "kills an active window" "(kill)" \
" Z" "Desktop Zoom" "(pyprland)" \
@@ -75,6 +75,7 @@ GDK_BACKEND=$BACKEND yad --width=$dynamic_width --height=$dynamic_height \
"CTRL ALT L" "screen lock" "(hyprlock)" \
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
" F" "Fullscreen" "Toggles to full screen" \
+" CTL F" "Fake Fullscreen" "Toggles to fake full screen" \
" ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
" Shift F" "Toggle float" "single window" \
" ALT F" "Toggle all windows to float" "all windows" \
diff --git a/config/hypr/scripts/MediaCtrl.sh b/config/hypr/scripts/MediaCtrl.sh
index b3f94295..e0fec253 100755
--- a/config/hypr/scripts/MediaCtrl.sh
+++ b/config/hypr/scripts/MediaCtrl.sh
@@ -25,7 +25,7 @@ toggle_play_pause() {
# Stop playback
stop_playback() {
playerctl stop
- notify-send -e -u low -i "$music_icon" "Playback Stopped"
+ notify-send -e -u low -i "$music_icon" "$(printf "\n Playback Stopped")"
}
# Display notification with song information
@@ -34,9 +34,9 @@ show_music_notification() {
if [[ "$status" == "Playing" ]]; then
song_title=$(playerctl metadata title)
song_artist=$(playerctl metadata artist)
- notify-send -e -u low -i "$music_icon" "Now Playing:" "$song_title\nby $song_artist"
+ notify-send -e -u low -i "$music_icon" "$(printf "\n Now Playing: $song_title\n by $song_artist")"
elif [[ "$status" == "Paused" ]]; then
- notify-send -e -u low -i "$music_icon" "Playback Paused"
+ notify-send -e -u low -i "$music_icon" "$(printf "\n Playback Paused")"
fi
}
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 37eb82db..0c6e8612 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -22,8 +22,8 @@ notify_cmd_shot_win="${notify_cmd_base} -i ${iDIR}/picture.png"
notify_view() {
if [[ "$1" == "active" ]]; then
if [[ -e "${active_window_path}" ]]; then
- "${sDIR}/Sounds.sh" --screenshot
- resp=$(timeout 5 ${notify_cmd_shot_win} "Screenshot of '${active_window_class}' Saved.")
+ "${sDIR}/Sounds.sh" --screenshot
+ resp=$(timeout 5 ${notify_cmd_shot_win} "$(printf "\n Screenshot of ${active_window_class}\n Saved.")")
case "$resp" in
action1)
xdg-open "${active_window_path}" &
@@ -33,13 +33,13 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved"
+ ${notify_cmd_shot} "$(printf "\n Screenshot of ${active_window_class}\n NOT Saved.")"
"${sDIR}/Sounds.sh" --error
fi
elif [[ "$1" == "swappy" ]]; then
"${sDIR}/Sounds.sh" --screenshot
- resp=$(${notify_cmd_shot} "Screenshot Captured (swappy)")
+ resp=$(${notify_cmd_shot} "$(printf "\n Screenshot Captured\n by Swappy")")
case "$resp" in
action1)
swappy -f - <"$tmpfile"
@@ -53,7 +53,7 @@ notify_view() {
local check_file="${dir}/${file}"
if [[ -e "$check_file" ]]; then
"${sDIR}/Sounds.sh" --screenshot
- resp=$(timeout 5 ${notify_cmd_shot} "Screenshot Saved.")
+ resp=$(timeout 5 ${notify_cmd_shot} "$(printf "\n Screenshot Saved")")
case "$resp" in
action1)
xdg-open "${check_file}" &
@@ -63,7 +63,7 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} "Screenshot NOT Saved."
+ ${notify_cmd_shot} "$(printf "\n Screenshot NOT Saved")"
"${sDIR}/Sounds.sh" --error
fi
fi
@@ -74,7 +74,7 @@ notify_view() {
# countdown
countdown() {
for sec in $(seq $1 -1 1); do
- notify-send -h string:x-canonical-private-synchronous:shot-notify -t 1000 -i "$iDIR"/timer.png "Taking shot in : $sec"
+ notify-send -h string:x-canonical-private-synchronous:shot-notify -t 1000 -i "$iDIR"/timer.png "$(printf "\n Taking shot in: $sec") secs"
sleep 1
done
}
diff --git a/config/hypr/scripts/SwitchKeyboardLayout.sh b/config/hypr/scripts/SwitchKeyboardLayout.sh
index 2d265e28..6974e386 100755
--- a/config/hypr/scripts/SwitchKeyboardLayout.sh
+++ b/config/hypr/scripts/SwitchKeyboardLayout.sh
@@ -93,11 +93,11 @@ change_layout() {
# Execute layout change and notify
if ! change_layout; then
- notify-send -u low -t 2000 'kb_layout' 'Error: Layout change failed'
+ notify-send -u low -t 2000 'kb_layout' "$(printf '\n Error: Layout change failed')"
echo "Layout change failed." >&2
exit 1
else
- notify-send -u low -i "$notif_icon" "New kb_layout: $new_layout"
+ notify-send -u low -i "$notif_icon" "$(printf "\n New kb_layout: $new_layout")"
echo "Layout change notification sent."
fi
diff --git a/config/hypr/scripts/TouchPad.sh b/config/hypr/scripts/TouchPad.sh
index 228e4ca2..0baee6f6 100755
--- a/config/hypr/scripts/TouchPad.sh
+++ b/config/hypr/scripts/TouchPad.sh
@@ -11,13 +11,13 @@ export STATUS_FILE="$XDG_RUNTIME_DIR/touchpad.status"
enable_touchpad() {
printf "true" >"$STATUS_FILE"
- notify-send -u low -i $notif "Enabling touchpad"
+ notify-send -u low -i $notif "$(printf '\nEnabling touchpad')"
hyprctl keyword '$TOUCHPAD_ENABLED' "true" -r
}
disable_touchpad() {
printf "false" >"$STATUS_FILE"
- notify-send -u low -i $notif "Disabling touchpad"
+ notify-send -u low -i $notif "$(printf '\nDisabling touchpad')"
hyprctl keyword '$TOUCHPAD_ENABLED' "false" -r
}
diff --git a/config/hypr/scripts/Volume.sh b/config/hypr/scripts/Volume.sh
index 19868caf..f254dec3 100755
--- a/config/hypr/scripts/Volume.sh
+++ b/config/hypr/scripts/Volume.sh
@@ -32,9 +32,9 @@ get_icon() {
# Notify
notify_user() {
if [[ "$(get_volume)" == "Muted" ]]; then
- notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: Muted"
+ notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "$(printf '\n Volume:\n Muted')"
else
- notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)"
+ notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "$(printf "\n Volume: $(get_volume)") %" &&
"$sDIR/Sounds.sh" --volume
fi
}
@@ -60,18 +60,18 @@ dec_volume() {
# Toggle Mute
toggle_mute() {
if [ "$(pamixer --get-mute)" == "false" ]; then
- pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" "Volume Switched OFF"
+ pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" "$(printf '\n Mute')"
elif [ "$(pamixer --get-mute)" == "true" ]; then
- pamixer -u && notify-send -e -u low -i "$(get_icon)" "Volume Switched ON"
+ pamixer -u && notify-send -e -u low -i "$(get_icon)" "$(printf '\n Volume:\n Switched ON')"
fi
}
# Toggle Mic
toggle_mic() {
if [ "$(pamixer --default-source --get-mute)" == "false" ]; then
- pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" "Microphone Switched OFF"
+ pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" "$(printf '\n Microphone:\n Switched OFF')"
elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then
- pamixer -u --default-source u && notify-send -e -u low -i "$iDIR/microphone.png" "Microphone Switched ON"
+ pamixer -u --default-source u && notify-send -e -u low -i "$iDIR/microphone.png" "$(printf '\n Microphone:\n Switched ON')"
fi
}
# Get Mic Icon
@@ -98,7 +98,7 @@ get_mic_volume() {
notify_mic_user() {
volume=$(get_mic_volume)
icon=$(get_mic_icon)
- notify-send -e -h int:value:"$volume" -h "string:x-canonical-private-synchronous:volume_notif" -u low -i "$icon" "Mic-Level: $volume"
+ notify-send -e -h int:value:"$volume" -h "string:x-canonical-private-synchronous:volume_notif" -u low -i "$icon" "$(printf " \n Mic-Level: $volume") %"
}
# Increase MIC Volume
diff --git a/config/hypr/scripts/WaybarLayout.sh b/config/hypr/scripts/WaybarLayout.sh
index 738d34f4..d6c4db83 100755
--- a/config/hypr/scripts/WaybarLayout.sh
+++ b/config/hypr/scripts/WaybarLayout.sh
@@ -2,7 +2,6 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar layout or configs
-set -euo pipefail
IFS=$'\n\t'
# Define directories
diff --git a/config/hypr/scripts/WaybarStyles.sh b/config/hypr/scripts/WaybarStyles.sh
index 096e4d7c..62550ced 100755
--- a/config/hypr/scripts/WaybarStyles.sh
+++ b/config/hypr/scripts/WaybarStyles.sh
@@ -2,7 +2,6 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for waybar styles
-set -euo pipefail
IFS=$'\n\t'
# Define directories
diff --git a/config/swaync/config.json b/config/swaync/config.json
index 334c36e3..f6077251 100755
--- a/config/swaync/config.json
+++ b/config/swaync/config.json
@@ -5,17 +5,17 @@
"layer": "overlay",
"control-center-layer": "top",
"layer-shell": true,
- "cssPriority": "application",
+ "cssPriority": "user",
"control-center-margin-top": 5,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
- "notification-icon-size": 32,
- "notification-body-image-height": 200,
- "notification-body-image-width": 200,
- "notification-window-width": 500,
+ "notification-icon-size": 24,
+ "notification-body-image-height": 100,
+ "notification-body-image-width": 100,
+ "notification-window-width": 450,
"timeout": 6,
"timeout-low": 3,
"timeout-critical": 0,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage