aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-15 15:30:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-15 15:30:29 +1200
commit59fe3c22d3aebf79f5e3e0d8b9684ec308e9f272 (patch)
treec31a743ade83598a2e73ce6424f6bc9ba86ccf0e /i3
parentChop off unicode suffix for OpenBSD TERM too (diff)
downloaddotfiles-59fe3c22d3aebf79f5e3e0d8b9684ec308e9f272.tar.gz
dotfiles-59fe3c22d3aebf79f5e3e0d8b9684ec308e9f272.zip
Screenshot handling, including snippets
Diffstat (limited to 'i3')
-rw-r--r--i3/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/i3/config b/i3/config
index 4daae0a4..73c5fb57 100644
--- a/i3/config
+++ b/i3/config
@@ -91,6 +91,12 @@ mode "resize" {
bindsym Escape mode "default"
}
+# PrintScreen takes a screenshot of the whole display
+bindsym Print exec sh -c 'mkdir -p "$HOME"/Screenshots && import "$HOME"/Screenshots/shot-"$(date +%Y%m%d%H%M%S)".png'
+
+# Shift-PrintScren selects and takes a screenshot of a section of the screen
+bindsym --release Shift+Print exec sh -c 'mkdir -p "$HOME"/Screenshots && import "$HOME"/Screenshots/snap-"$(date +%Y%m%d%H%M%S)".png'
+
# i3bar at bottom of screen
bar {
font pango:Verdana 7