Skip to content

Instantly share code, notes, and snippets.

@keeganjk
Created October 2, 2020 20:00
Show Gist options
  • Save keeganjk/3ee2577df98a661fbc05e87fd0b28231 to your computer and use it in GitHub Desktop.
Save keeganjk/3ee2577df98a661fbc05e87fd0b28231 to your computer and use it in GitHub Desktop.
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd && notify-send -t 1500 "sxhkdrc reloaded"
# Media keys
XF86AudioPlay
mpc toggle
XF86AudioNext
mpc next
XF86AudioPrev
mpc prev
# Click
super + n
xdotool keyup Super_L && xdotool click 1
# Lock screen
super + x
slock
# Screenshots
super + Print
maim -u ~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M').png && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
#escrotum '~/Pictures/Screenshots/%Y-%m-%d-%H%M%S_$wx$h_escrotum.png' && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
super + shift + Print
maim -u -s ~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M').png && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
#escrotum -s '~/Pictures/Screenshots/%Y-%m-%d-%H%M%S_$wx$h_escrotum.png' && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
super + control + Print
maim -u | tee ~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M').png | xclip -selection clipboard -t image/png && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots and copied to clipboard'
#escrotum -C '~/Pictures/Screenshots/%Y-%m-%d-%H%M%S_$wx$h_escrotum.png' && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
super + shift + control + Print
maim -u -s | tee ~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M').png | xclip -selection clipboard -t image/png && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots and copied to clipboard'
#escrotum -s -C '~/Pictures/Screenshots/%Y-%m-%d-%H%M%S_$wx$h_escrotum.png' && notify-send -t 1500 'Screenshot saved in ~/Pictures/Screenshots'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment