add:screenshot direct screen capture
This commit is contained in:
@@ -1,2 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
grim -g "$(slurp)" - | satty --filename - --output-filename ~/pictures/ss/$(date +"%Y-%m-%d_%H-%M-%S").png --early-exit --copy-command wl-copy
|
|
||||||
|
MODE=${1:-area}
|
||||||
|
OUTPUT=~/pictures/$(date +"%Y-%m-%d_%H-%M-%S").png
|
||||||
|
|
||||||
|
case "$MODE" in
|
||||||
|
area)
|
||||||
|
grim -g "$(slurp)" - | satty --filename - --output-filename "$OUTPUT" --early-exit --copy-command wl-copy
|
||||||
|
;;
|
||||||
|
screen)
|
||||||
|
grim -g "$(slurp -o)" - | satty --filename - --output-filename "$OUTPUT" --early-exit --copy-command wl-copy
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 [area|screen]"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ scroller_proportion_preset=0.5,0.8,1.0
|
|||||||
new_is_master=1
|
new_is_master=1
|
||||||
default_nmaster=1
|
default_nmaster=1
|
||||||
smartgaps=0
|
smartgaps=0
|
||||||
|
|
||||||
## default size of new window
|
## default size of new window
|
||||||
default_mfact=0.5
|
default_mfact=0.5
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,13 @@ bind=SUPER,d,spawn,rofi-app-manager.sh
|
|||||||
# reload config
|
# reload config
|
||||||
bind=SUPER,r,reload_config
|
bind=SUPER,r,reload_config
|
||||||
|
|
||||||
# utility
|
# utility / screenshot / screen record
|
||||||
|
# scripts probably in ~/.local/bin
|
||||||
|
# - area select screenshot
|
||||||
bind=SUPER+ALT,p,spawn,ss.sh
|
bind=SUPER+ALT,p,spawn,ss.sh
|
||||||
|
# - monitor select screenshot
|
||||||
|
bind=SUPER+ALT+CTRL,p,spawn,ss.sh screen
|
||||||
|
# - screen capture/record
|
||||||
bind=SUPER+ALT,v,spawn,sc.sh
|
bind=SUPER+ALT,v,spawn,sc.sh
|
||||||
|
|
||||||
bind=SUPER,Return,spawn,ghostty
|
bind=SUPER,Return,spawn,ghostty
|
||||||
|
|||||||
Reference in New Issue
Block a user