summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamstuck <adam.moloney.stuck@gmail.com>2022-05-18 12:04:51 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2022-05-18 12:04:51 +0200
commit0398a81bdf7be08a07bded52d1eb60ed0a089f04 (patch)
treeefedee709bad53f4abb4833c3e52f748060c7c67
parent5822f9eb04370903907cba4829a20e7fdbe41946 (diff)
i3: printscreen
-rw-r--r--.config/i3/config1
-rwxr-xr-x.local/bin/printscreen3
2 files changed, 4 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config
index d947cf1..bb024d4 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -15,6 +15,7 @@ bindsym $mod+e exec pcmanfm
bindsym $mod+f fullscreen toggle
bindsym $mod+i exec --no-startup-id polybar-msg cmd toggle
bindsym $mod+Shift+s exec --no-startup-id ~/.local/bin/screenshot
+bindsym Print exec --no-startup-id ~/.local/bin/printscreen
bindsym $mod+Shift+c exec --no-startup-id ~/.local/bin/picom-toggle
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name}
diff --git a/.local/bin/printscreen b/.local/bin/printscreen
new file mode 100755
index 0000000..588b15b
--- /dev/null
+++ b/.local/bin/printscreen
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+scrot -q 100 -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/'