diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-01-14 00:14:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 00:14:52 +0900 |
| commit | d61b676b9b8b32f73def3d92aa3eb31ab6a2bfbc (patch) | |
| tree | 644b7851f189af52bfde39a2658cfe0d2fd20d7c /config/hypr | |
| parent | 3573df4a1d0b4c915975ac80275442c35831fb2f (diff) | |
| parent | df57f9890b28aa6f5139e2917cee213031ba0e9c (diff) | |
Merge pull request #521 from JaKooLit/main
main to development
Diffstat (limited to 'config/hypr')
| -rwxr-xr-x | config/hypr/UserScripts/RofiBeats.sh | 6 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperEffects.sh | 16 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperRandom.sh | 11 | ||||
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperSelect.sh | 7 | ||||
| -rwxr-xr-x | config/hypr/scripts/AirplaneMode.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/Brightness.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/BrightnessKbd.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/ChangeBlur.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/ChangeLayout.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 13 | ||||
| -rwxr-xr-x | config/hypr/scripts/GameMode.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/KeyHints.sh | 5 | ||||
| -rwxr-xr-x | config/hypr/scripts/MediaCtrl.sh | 6 | ||||
| -rwxr-xr-x | config/hypr/scripts/Polkit.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/ScreenShot.sh | 18 | ||||
| -rwxr-xr-x | config/hypr/scripts/SwitchKeyboardLayout.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/TouchPad.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/Volume.sh | 14 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarLayout.sh | 1 | ||||
| -rwxr-xr-x | config/hypr/scripts/WaybarStyles.sh | 1 | ||||
| -rwxr-xr-x | config/hypr/scripts/Wlogout.sh | 4 |
21 files changed, 67 insertions, 65 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 9a9d289c..b98b572b 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -1,7 +1,6 @@ #!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Wallpaper Effects using ImageMagick (SUPER SHIFT W) -# Inspiration from ML4W - Stephan Raabe https://github.com/mylinuxforwork/dotfiles # Variables current_wallpaper="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" @@ -40,16 +39,17 @@ declare -A effects=( # Function to apply no effects no-effects() { - swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS & + swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS && # Wait for swww command to complete wait $! # Run other commands after swww - wallust run "$current_wallpaper" -s & - # Wait to complete + wallust run "$current_wallpaper" -s && wait $! # Refresh rofi, waybar, wallust palettes - "${SCRIPTSDIR}/Refresh.sh" - notify-send -u low -i "$iDIR/bell.png" "No wallpaper effects" + sleep 2 + "$SCRIPTSDIR/Refresh.sh" + + 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/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index 6e8f5ff6..3c8c7520 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -3,7 +3,7 @@ # Script for Random Wallpaper ( CTRL ALT W) wallDIR="$HOME/Pictures/wallpapers" -scriptsDir="$HOME/.config/hypr/scripts" +SCRIPTSDIR="$HOME/.config/hypr/scripts" focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}') @@ -21,9 +21,10 @@ SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration swww query || swww-daemon --format xrgb && swww img -o $focused_monitor ${RANDOMPICS} $SWWW_PARAMS -sleep 1.5 -${scriptsDir}/WallustSwww.sh +wait $! +"$SCRIPTSDIR/WallustSwww.sh" && -sleep 0.5 -${scriptsDir}/Refresh.sh +wait $! +sleep 2 +"$SCRIPTSDIR/Refresh.sh" diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 8daa4f28..6aa60804 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -101,9 +101,10 @@ fi main -sleep 1.5 -"$SCRIPTSDIR/WallustSwww.sh" +wait $! +"$SCRIPTSDIR/WallustSwww.sh" && -sleep 0.5 +wait $! +sleep 2 "$SCRIPTSDIR/Refresh.sh" 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/Polkit.sh b/config/hypr/scripts/Polkit.sh index a52aed8e..c0b6b152 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -5,6 +5,8 @@ # Polkit possible paths files to check polkit=( "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" + "/usr/libexec/hyprpolkitagent" + "/usr/lib/hyprpolkitagent" "/usr/lib/polkit-kde-authentication-agent-1" "/usr/lib/polkit-gnome-authentication-agent-1" "/usr/libexec/polkit-gnome-authentication-agent-1" diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index b33a31c7..0c6e8612 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -15,15 +15,15 @@ active_window_path="${dir}/${active_window_file}" notify_cmd_base="notify-send -t 10000 -A action1=Open -A action2=Delete -h string:x-canonical-private-synchronous:shot-notify" #notify_swappy="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png" -notify_cmd_shot="${notify_cmd_base} -i ${dir}/${file}" -notify_cmd_shot_win="${notify_cmd_base} -i ${active_window_path}" +notify_cmd_shot="${notify_cmd_base} -i ${iDIR}/picture.png" +notify_cmd_shot_win="${notify_cmd_base} -i ${iDIR}/picture.png" # notify and view screenshot 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/hypr/scripts/Wlogout.sh b/config/hypr/scripts/Wlogout.sh index b7cc220d..ed3606c5 100755 --- a/config/hypr/scripts/Wlogout.sh +++ b/config/hypr/scripts/Wlogout.sh @@ -6,8 +6,8 @@ # i.e 2160 means 2160p A_2160=700 B_2160=700 -A_1600=480 -B_1600=480 +A_1600=650 +B_1600=650 A_1440=450 B_1440=450 A_1080=350 |
