Add screenshot shortcut

This commit is contained in:
2024-06-07 23:27:01 +01:00
parent 3fe76f259c
commit 537322564c
4 changed files with 15 additions and 11 deletions

View File

@@ -453,7 +453,7 @@ if [[ ${main_menu[@]} =~ 1 ]]; then # DWM
sudo nala install xorg libx11-dev libxft-dev libxinerama-dev build-essential libxrandr-dev
# Desktop tools
sudo nala install feh iwd
sudo nala install feh iwd scrot
sudo cp -f iwd.conf /etc/iwd/main.conf
sudo systemctl enable iwd
sudo systemctl start iwd

View File

@@ -69,6 +69,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", NULL };
static const Key keys[] = {
/* Volume keys support */
@@ -80,6 +81,7 @@ static const Key keys[] = {
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },

View File

@@ -69,6 +69,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, NULL };
static const char *termcmd[] = { "st", NULL };
static const char *slockcmd[] = { "slock", NULL };
static const char *screenshotcmd[] = { "scrot", "--select", "--line", "mode=edge", NULL };
static const Key keys[] = {
/* Volume keys support */
@@ -80,6 +81,7 @@ static const Key keys[] = {
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_l, spawn, {.v = slockcmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },

Binary file not shown.