Skip to content

Instantly share code, notes, and snippets.

View VTimofeenko's full-sized avatar

Vladimir Timofeenko VTimofeenko

View GitHub Profile
@VTimofeenko
VTimofeenko / monitorshot2.sh
Last active January 27, 2020 21:03 — forked from naelstrof/monitorshot2.sh
Screenshot ctl: maim-based script to take a screenshot of current monitor, area or all monitors
#!/bin/sh
# mode can be:
# prtsc = do full screenshot of current screen, save to folder
# ctrl+prtsc = area-grab, to clipboard
# ctrl+shift+prtscr = area-grab, save
# win+prtsc = all screens, save
mode=$1
save_folder=$2
img_path=${save_folder}/$(date +"%b_%d_%H-%M-%S").png
maim_command="maim --hidecursor"