mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +02:00
Update .local/bin/screenshot.sh
This commit is contained in:
@@ -9,9 +9,6 @@ target_path="$HOME/Obrazy/zrzuty/$fname"
|
||||
error_wrong_type="The first argument needs to be \"fullscreen\", \"window\" or \"region\". Exiting..."
|
||||
notification_succes="$target_path saved and copied"
|
||||
|
||||
notification() {
|
||||
notify-send -i "$target_path" -u low -a "Screenshot" "Screenshot saved" "$notification_succes"
|
||||
}
|
||||
|
||||
# validate input
|
||||
case "$1" in
|
||||
@@ -24,6 +21,10 @@ case "$1" in
|
||||
;;
|
||||
esac
|
||||
|
||||
notification() {
|
||||
notify-send -i "$target_path" -u low -a "Screenshot" "Screenshot $type" "$notification_succes"
|
||||
}
|
||||
|
||||
case $type in
|
||||
"fullscreen")
|
||||
grim -o $(hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name') "$target_path"
|
||||
|
||||
Reference in New Issue
Block a user