updated ss scripts
This commit is contained in:
parent
f8f415c239
commit
a84d53c475
13
ss_full.sh
13
ss_full.sh
@ -4,5 +4,14 @@
|
|||||||
# and print to stdout (-)
|
# and print to stdout (-)
|
||||||
# 2. the data printed to stdout is piped to wl-copy and it's copied
|
# 2. the data printed to stdout is piped to wl-copy and it's copied
|
||||||
# 3. the data is pasted to a file in folder $SS
|
# 3. the data is pasted to a file in folder $SS
|
||||||
SS="/media/fyb/share/shoka/swap/screenshots"
|
SS="/media/yigid/share/shoka/swap/screenshots"
|
||||||
grim -c - | wl-copy --type image/png && wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' )
|
TEMP_FILE="$HOME/temp_file"
|
||||||
|
ACTIVE_MON=$( hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name' )
|
||||||
|
|
||||||
|
grim -l 1 -o $ACTIVE_MON "$TEMP_FILE"
|
||||||
|
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
wl-copy --type image/png < "$TEMP_FILE"
|
||||||
|
wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' )
|
||||||
|
rm "$TEMP_FILE"
|
||||||
|
fi
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
#
|
#
|
||||||
# Select an area with slurp, ss with grim
|
# Select an area with slurp, ss with grim
|
||||||
# and copy to clipboard.
|
# and copy to clipboard.
|
||||||
SS="/media/fyb/share/shoka/swap/screenshots"
|
SS="/media/yigid/share/shoka/swap/screenshots"
|
||||||
TEMP_FILE="$HOME/temporary_screenshot"
|
TEMP_FILE="$HOME/temp_file"
|
||||||
|
|
||||||
grim -c -g "$( slurp )" "$TEMP_FILE"
|
grim -g "$( slurp )" "$TEMP_FILE"
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
wl-copy --type image/png < "$TEMP_FILE"
|
wl-copy --type image/png < "$TEMP_FILE"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user