dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 900dcefcc5dd4772271ef19126554dccd21300c8
parent b74357ec5e9c1971ffa3effaa9a6d2b5ea58dcbd
Author: Chris Noxz <chris@noxz.tech>
Date:   Mon, 11 Nov 2019 20:24:58 +0100

[sxhkd] Add screenshot and screenrec as hotkeys

Diffstat:
Abin/.bin/screenshot | 9+++++++++
Msxhkd/.config/sxhkd/sxhkdrc | 8++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/bin/.bin/screenshot b/bin/.bin/screenshot @@ -0,0 +1,9 @@ +#!/bin/sh + +_FILE="$HOME/screenshot-$(date +%Y-%m-%dT%H:%M:%S).png" + +# grab screen region using imagemagick +import $_FILE + +# add screenshot to clipboard +xclip -selection clipboard -target image/png -i < "$_FILE" diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc @@ -156,3 +156,11 @@ super + apostrophe; 1 # :toggle power super + apostrophe; 2 echo toggle power > /tmp/ztatus.fifo + +# --- misc -------------------------------------------------------------------- +# :record screen region +shift + Print + screenrec +# :print screen region +Print + screenshot