aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ScreenShot.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-27 13:23:34 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-27 13:23:34 +0900
commit1e2a3b25aa760885ee326433ef0ab176e39c73bc (patch)
treef9a14d7eb0dac4e0458083eff4708c9aaebfb4f3 /config/hypr/scripts/ScreenShot.sh
parent3eb715f78172f2e854fc744841ee74203af28073 (diff)
updated for swaync
Diffstat (limited to 'config/hypr/scripts/ScreenShot.sh')
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index 44ba2bd6..1d5eeacf 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -1,7 +1,7 @@
#!/bin/bash
-iDIR="$HOME/.config/dunst/icons"
-notify_cmd_shot="dunstify -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
+iDIR="$HOME/.config/swaync/icons"
+notify_cmd_shot="notify-send -h string:x-canonical-private-synchronous:shot-notify -u low -i ${iDIR}/picture.png"
time=$(date "+%d-%b_%H-%M-%S")
dir="$(xdg-user-dir)/Pictures/Screenshots"
@@ -15,16 +15,16 @@ active_window_path="${dir}/${active_window_file}"
notify_view() {
if [[ "$1" == "active" ]]; then
if [[ -e "${active_window_path}" ]]; then
- ${notify_cmd_shot} "Screenshot of '${active_window_class}' is saved."
+ ${notify_cmd_shot} "Screenshot of '${active_window_class}' Saved."
else
- ${notify_cmd_shot} "Screenshot of '${active_window_class}' is deleted or not available."
+ ${notify_cmd_shot} "Screenshot of '${active_window_class}' not Saved"
fi
else
local check_file="$dir/$file"
if [[ -e "$check_file" ]]; then
${notify_cmd_shot} "Screenshot Saved."
else
- ${notify_cmd_shot} "Screenshot Deleted."
+ ${notify_cmd_shot} "Screenshot NOT Saved."
fi
fi
}
@@ -34,7 +34,7 @@ notify_view() {
# countdown
countdown() {
for sec in $(seq $1 -1 1); do
- dunstify -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 "Taking shot in : $sec"
sleep 1
done
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage