diff --git a/src/dot_local/bin/deskutils/executable_screenshot-save.sh b/src/dot_local/bin/deskutils/executable_screenshot-save.sh deleted file mode 100644 index cae59b9..0000000 --- a/src/dot_local/bin/deskutils/executable_screenshot-save.sh +++ /dev/null @@ -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" diff --git a/src/dot_local/bin/deskutils/executable_screenshot_full.sh b/src/dot_local/bin/deskutils/executable_screenshot_full.sh new file mode 100644 index 0000000..651d982 --- /dev/null +++ b/src/dot_local/bin/deskutils/executable_screenshot_full.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Screenshot entire screen. + +rm ~/med/screen/fullscreen.jpg +scrot "$HOME/med/screen/fullscreen.jpg" diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h index 52f5505..0180d26 100644 --- a/suckless/dwm/config.def.h +++ b/suckless/dwm/config.def.h @@ -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") },