dotfiles

commit 188cdaaca1490bb6cd6c3f474c92db29e39f2829

Author: Honza Pokorny <me@honza.ca>

Add grim and slurp for sway screenshots

 bin/take-screenshot | 3 +++
 i3/config | 2 +-


diff --git a/bin/take-screenshot b/bin/take-screenshot
new file mode 100755
index 0000000000000000000000000000000000000000..84fb91c7aefa283516063fa3fc62f8039539a8d2
--- /dev/null
+++ b/bin/take-screenshot
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+grim -g "$(slurp)" $(xdg-user-dir PICTURES)/$(date +'%Y-%m-%d-%H%M%S-screenshot.png')




diff --git a/i3/config b/i3/config
index f6e10323c8def8134736e466f7c069d104312c16..153fca0c43d47d168cbfd178303ae0f422c42220 100644
--- a/i3/config
+++ b/i3/config
@@ -139,7 +139,7 @@
 bindsym $mod+i exec $term -e htop
 
 bindsym Print exec gnome-screenshot
-bindsym Shift+Print exec gnome-screenshot active
+bindsym $hyper+u exec ~/dotfiles/bin/take-screenshot
 
 # Start i3bar to display a workspace bar (plus the system information i3status
 # finds out, if available)