diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-06-03 05:39:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-03 05:39:34 +0900 |
| commit | 203b530e6b61e53cff322fd822dc70a5e611b35f (patch) | |
| tree | f300fec9ff254263a9805dc18feaee14ff1d542a /config/hypr/scripts | |
| parent | 2e67eba3d18ef4d7ca74b2036a0ec0020825bc86 (diff) | |
| parent | d62b220ebc2c60c2f11e47f35616d9e803c07dd4 (diff) | |
Merge pull request #321 from JaKooLit/development
Development to main
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/Brightness.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/LockScreen.sh | 4 | ||||
| -rwxr-xr-x | config/hypr/scripts/ScreenShot.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/Sounds.sh | 7 |
4 files changed, 13 insertions, 4 deletions
diff --git a/config/hypr/scripts/Brightness.sh b/config/hypr/scripts/Brightness.sh index 7d43f570..8f9fbf22 100755 --- a/config/hypr/scripts/Brightness.sh +++ b/config/hypr/scripts/Brightness.sh @@ -33,7 +33,7 @@ notify_user() { # Change brightness change_backlight() { - brightnessctl set "$1" && get_icon && notify_user + brightnessctl set "$1" -n && get_icon && notify_user } # Execute accordingly @@ -50,4 +50,4 @@ case "$1" in *) get_backlight ;; -esac
\ No newline at end of file +esac diff --git a/config/hypr/scripts/LockScreen.sh b/config/hypr/scripts/LockScreen.sh index ce2320ab..0fd62cab 100755 --- a/config/hypr/scripts/LockScreen.sh +++ b/config/hypr/scripts/LockScreen.sh @@ -2,4 +2,6 @@ # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # For Hyprlock -hyprlock -q --immediate
\ No newline at end of file + +pidof hyprlock || hyprlock -q + diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh index d2ee51a2..5d15ee68 100755 --- a/config/hypr/scripts/ScreenShot.sh +++ b/config/hypr/scripts/ScreenShot.sh @@ -22,6 +22,7 @@ notify_view() { "${sDIR}/Sounds.sh" --screenshot else ${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved" + "${sDIR}/Sounds.sh" --error fi elif [[ "$1" == "swappy" ]]; then ${notify_cmd_shot} "Screenshot Captured." @@ -32,6 +33,7 @@ notify_view() { "${sDIR}/Sounds.sh" --screenshot else ${notify_cmd_shot} "Screenshot NOT Saved." + "${sDIR}/Sounds.sh" --error fi fi } diff --git a/config/hypr/scripts/Sounds.sh b/config/hypr/scripts/Sounds.sh index e19feea4..9ab9127d 100755 --- a/config/hypr/scripts/Sounds.sh +++ b/config/hypr/scripts/Sounds.sh @@ -26,8 +26,13 @@ elif [[ "$1" == "--volume" ]]; then exit 0 fi soundoption="audio-volume-change.*" +elif [[ "$1" == "--error" ]]; then + if [[ "$muteScreenshots" = true ]]; then + exit 0 + fi + soundoption="dialog-error.*" else - echo -e "Available sounds: --screenshot, --volume" + echo -e "Available sounds: --screenshot, --volume, --error" exit 0 fi |
