diff --git a/install.sh b/install.sh index 7fee29c3..1725bcaa 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/programs/dwm/config.def.h b/programs/dwm/config.def.h index 06cdb187..5aaba32e 100644 --- a/programs/dwm/config.def.h +++ b/programs/dwm/config.def.h @@ -66,9 +66,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_ /* commands */ 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 *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 */ @@ -78,8 +79,9 @@ static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { 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 } }, @@ -89,7 +91,7 @@ static const Key keys[] = { { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY, XK_c, killclient, {0} }, + { MODKEY, XK_c, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, diff --git a/programs/dwm/config.h b/programs/dwm/config.h index 06cdb187..5aaba32e 100644 --- a/programs/dwm/config.h +++ b/programs/dwm/config.h @@ -66,9 +66,10 @@ static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_ /* commands */ 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 *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 */ @@ -78,8 +79,9 @@ static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { 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 } }, @@ -89,7 +91,7 @@ static const Key keys[] = { { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY, XK_c, killclient, {0} }, + { MODKEY, XK_c, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, diff --git a/programs/dwm/dwm b/programs/dwm/dwm index 7a427244..a4501770 100755 Binary files a/programs/dwm/dwm and b/programs/dwm/dwm differ