aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-02-11 12:35:53 +0900
committerGitHub <noreply@github.com>2025-02-11 12:35:53 +0900
commit9f59d3374c9284111aeef165eb83875edfc660e6 (patch)
tree68080dbcd3fb81b265f6885fc1832654e223997e /config/hypr/scripts
parentf4459e7abdf3ad6cf9d78b7f59bbe2524d870886 (diff)
parentd07749ef91408d68e40c31353a7c732cb149beb3 (diff)
Merge pull request #551 from JaKooLit/main
main to development
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/KeyHints.sh9
-rwxr-xr-xconfig/hypr/scripts/ScreenShot.sh16
2 files changed, 13 insertions, 12 deletions
diff --git a/config/hypr/scripts/KeyHints.sh b/config/hypr/scripts/KeyHints.sh
index b7ed26e2..49ee7e52 100755
--- a/config/hypr/scripts/KeyHints.sh
+++ b/config/hypr/scripts/KeyHints.sh
@@ -25,7 +25,7 @@ max_height=1000
# Set percentage of screen size for dynamic adjustment
percentage_width=90
-percentage_height=90
+percentage_height=100
# Calculate dynamic width and height
dynamic_width=$((width * percentage_width / 100))
@@ -46,16 +46,17 @@ GDK_BACKEND=$BACKEND yad --width=$dynamic_width --height=$dynamic_height \
--column=Command: \
--timeout-indicator=bottom \
"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
+" SHIFT K" "Searchable Keybinds" "(Search all Keybinds via rofi)" \
+"" "" "" \
" enter" "Terminal" "(kitty)" \
-" SHIFT enter" "DropDown Terminal" "(kitty-pyprland)" \
-" SHIFT K" "Searchable Keybinds" "(Keybinds)" \
+" SHIFT enter" "DropDown Terminal" "(Not available in Debian and Ubuntu)" \
" A" "Desktop Overview" "(AGS Overview)" \
" D" "Application Launcher" "(rofi-wayland)" \
" T" "Open File Manager" "(Thunar)" \
" S" "Google Search using rofi" "(rofi)" \
" Q" "close active window" "(not kill)" \
" Shift Q " "kills an active window" "(kill)" \
-" Z" "Desktop Zoom" "(pyprland)" \
+" Z" "Desktop Zoom" "(Not available in Debian and Ubuntu)" \
" Alt V" "Clipboard Manager" "(cliphist)" \
" W" "Choose wallpaper" "(Wallpaper Menu)" \
" Shift W" "Choose wallpaper effects" "(imagemagick + swww)" \
diff --git a/config/hypr/scripts/ScreenShot.sh b/config/hypr/scripts/ScreenShot.sh
index e0df2b86..852be4b0 100755
--- a/config/hypr/scripts/ScreenShot.sh
+++ b/config/hypr/scripts/ScreenShot.sh
@@ -2,21 +2,23 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Screenshots scripts
-iDIR="$HOME/.config/swaync/icons"
-sDIR="$HOME/.config/hypr/scripts"
-
+# variables
time=$(date "+%d-%b_%H-%M-%S")
dir="$(xdg-user-dir)/Pictures/Screenshots"
file="Screenshot_${time}_${RANDOM}.png"
+iDIR="$HOME/.config/swaync/icons"
+iDoR="$HOME/.config/swaync/images"
+sDIR="$HOME/.config/hypr/scripts"
+
active_window_class=$(hyprctl -j activewindow | jq -r '(.class)')
active_window_file="Screenshot_${time}_${active_window_class}.png"
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 ${iDIR}/picture.png "
notify_cmd_shot_win="${notify_cmd_base} -i ${iDIR}/picture.png "
+notify_cmd_NOT="notify-send -u low -i ${iDoR}/ja.png "
# notify and view screenshot
notify_view() {
@@ -33,7 +35,7 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} " Screenshot of:" " ${active_window_class} NOT Saved."
+ ${notify_cmd_NOT} " Screenshot of:" " ${active_window_class} NOT Saved."
"${sDIR}/Sounds.sh" --error
fi
@@ -63,14 +65,12 @@ notify_view() {
;;
esac
else
- ${notify_cmd_shot} " Screenshot" " NOT Saved"
+ ${notify_cmd_NOT} " Screenshot" " NOT Saved"
"${sDIR}/Sounds.sh" --error
fi
fi
}
-
-
# countdown
countdown() {
for sec in $(seq $1 -1 1); do
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage