switch to maim
This commit is contained in:
parent
77f5084d67
commit
b6684fbdf0
2 changed files with 11 additions and 2 deletions
|
@ -323,8 +323,8 @@ bindsym $mod+bracketright exec --no-startup-id lmc forward 10
|
||||||
bindsym $mod+Shift+bracketright exec --no-startup-id lmc forward 120
|
bindsym $mod+Shift+bracketright exec --no-startup-id lmc forward 120
|
||||||
|
|
||||||
# For screenshots and recording
|
# For screenshots and recording
|
||||||
bindsym Print exec --no-startup-id scrot
|
bindsym Print exec --no-startup-id maim
|
||||||
bindsym Shift+Print exec --no-startup-id scrot -u
|
bindsym Shift+Print exec --no-startup-id maimpick
|
||||||
bindsym $mod+Print exec --no-startup-id dmenurecord
|
bindsym $mod+Print exec --no-startup-id dmenurecord
|
||||||
bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey"
|
bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey"
|
||||||
bindsym $mod+Delete exec $stoprec
|
bindsym $mod+Delete exec $stoprec
|
||||||
|
|
9
.scripts/i3cmds/maimpick
Executable file
9
.scripts/i3cmds/maimpick
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfullscreen (copy)" | dmenu -l 6 -i -p "Screenshot which area?")" in
|
||||||
|
"a selected area") maim -s pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
|
||||||
|
"current window") maim -i "$(xdotool getactivewindow)" pic-window-"$(date '+%y%m%d-%H%M-%S').png" ;;
|
||||||
|
"full screen") maim pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;
|
||||||
|
"a selected area (copy)") maim -s | xclip -selection clipboard -t image/png ;;
|
||||||
|
"current window (copy)") maim -i | xclip -selection clipboard -t image/png ;;
|
||||||
|
"full screen (copy)") maim | xclip -selection clipboard -t image/png ;;
|
||||||
|
esac
|
Loading…
Reference in a new issue