screenshot edit
This commit is contained in:
@@ -11,6 +11,8 @@ bind = $mainMod SHIFT, B, exec, bash ~/config/scripts/hot-reload.sh
|
||||
# Screenshot keybinds
|
||||
bind = $mainMod, PRINT, exec, bash ~/config/scripts/screenshot-selection.sh
|
||||
bind = $mainMod SHIFT, PRINT, exec, bash ~/config/scripts/screenshot-fullscreen.sh
|
||||
bind = ALT SHIFT, PRINT, exec, bash ~/config/scripts/edit-last-screenshot.sh
|
||||
|
||||
|
||||
# Music volume control
|
||||
bind = $mainMod, XF86AudioRaiseVolume, exec, playerctl -p cider,OCbwoy3_s_iPhone volume 0.02+
|
||||
|
||||
11
scripts/edit-last-screenshot.sh
Normal file
11
scripts/edit-last-screenshot.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCREENSHOTS_DIR="$HOME/Pictures/Screenshots"
|
||||
|
||||
LAST_SCREENSHOT=$(ls -t "$SCREENSHOTS_DIR" | head -n 1)
|
||||
|
||||
if [[ -n "$LAST_SCREENSHOT" ]]; then
|
||||
swappy -f "$SCREENSHOTS_DIR/$LAST_SCREENSHOT" -o "$SCREENSHOTS_DIR/$LAST_SCREENSHOT"
|
||||
else
|
||||
notify-send -u critical -t 3 "Error" "Can't find screenshot :("
|
||||
fi
|
||||
@@ -7,5 +7,5 @@ echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send "Screenshot" "Successfully captured screenshot to clipboard"
|
||||
notify-send "Screenshot" "Successfully captured screenshot to clipboard.\n<small>Open swappy with ALT+SHIFT+PS.</small>"
|
||||
fi
|
||||
|
||||
@@ -7,5 +7,5 @@ echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send "Screenshot" "Successfully captured screenshot to clipboard"
|
||||
notify-send "Screenshot" "Successfully captured selection to clipboard.\n<small>Open swappy with ALT+SHIFT+PS.</small>"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user