dwm: screenshot entire screen instantly by default

This commit is contained in:
dogeystamp 2024-10-01 17:35:31 -04:00
parent 5e966a1ecc
commit 0ccc8380e7
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +0,0 @@
#!/bin/sh
# Screenshot and save to disk.
rm ~/med/screen/latest.png
sleep 0.1 && scrot -fs "$HOME/med/screen/latest.png" -e "cp ~/med/screen/latest.png ~/quar/screenshot-$(date +%s).png"

View File

@ -0,0 +1,6 @@
#!/bin/sh
# Screenshot entire screen.
rm ~/med/screen/fullscreen.jpg
scrot "$HOME/med/screen/fullscreen.jpg"

View File

@ -126,8 +126,8 @@ static const Key keys[] = {
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("qbprof mus") },
{ MODKEY|ControlMask, XK_l, spawn, {.v = (const char*[]){ "/usr/local/bin/slock", NULL} } },
{ MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/.local/bin/deskutils/suspend.sh") },
{ 0, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot.sh") },
{ ShiftMask, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot-save.sh" ) },
{ 0, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot_full.sh") },
{ ShiftMask, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot.sh" ) },
{ MODKEY, XK_z, spawn, TERMCMD("bookmk") },
// SHCMD because we already start a terminal from inside clipedit.sh
{ MODKEY|ShiftMask, XK_z, spawn, SHCMD("clipedit.sh") },