diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-05-18 12:04:51 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-05-18 14:47:08 +0200 |
commit | 5303a93e873b8eb48192a6e7ba9d3d9a0821d94d (patch) | |
tree | 6f2397b5e2b7c0e1f64345f74e1ad828e525e06c | |
parent | a6b3eada2ebd5613413a4761d342ce9df3676bb2 (diff) |
i3: printscreen
-rw-r--r-- | .config/i3/config | 1 | ||||
-rwxr-xr-x | .local/bin/printscreen | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/.config/i3/config b/.config/i3/config index fea3f00..4d944e5 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -17,6 +17,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/' |