Commit Diff


commit - cceac22496d7b4f69d1727929a8f667dd2181fa7
commit + d4ccf394761d1039df4416da9f2604161199e633
blob - 1001f684c7e00b88434bdc34e6fb4973c91ba3c9
blob + cd5f92dea8678393b25516b06ea43ffcfb0d059c
--- dwm/config.h
+++ dwm/config.h
@@ -37,7 +37,8 @@ static const Rule rules[] = {
 	{ "thunderbird",		NULL,		NULL,	1 << 7,		0,		-1 },
 	{ "thunderbird-default",	NULL,		NULL,	1 << 7,		0,		-1 },
 	{ "Signal",			NULL,		NULL,	1 << 6,		0,		-1 },
-	{ "Nextcloud",			NULL,		NULL,	1 << 5,		1,		-1 },
+	{ "discord",			NULL,		NULL,	1 << 5,		0,		-1 },
+	//{ "Nextcloud",			NULL,		NULL,	1 << 5,		1,		-1 },
 	{ NULL,				"qemu",		NULL,	0,		1,		-1 },
 };
 
@@ -90,6 +91,7 @@ static const Key keys[] = {
 	{ MODKEY|ShiftMask,		XK_m,		spawn,		{.v = dmscript("dmenu_man") }},
 	{ MODKEY,			XK_n,		spawn,		{.v = dmscript("dmenu_audio") }},
 	{ MODKEY|ShiftMask,		XK_w,		spawn,		{.v = dmscript("dmenu_word") }},
+	{ MODKEY,			XK_x,		spawn,		{.v = dmscript("dmenu_xrandr") }},
 	{ MODKEY|ControlMask,		XK_h,		spawn,		{.v = runst("htop") }},
 	{ MODKEY,			XK_c,		spawn,		{.v = runst("env", "LC_ALL=C", "qalc") }},
 	{ MODKEY,			XK_Escape,	spawn,		{.v = slockcmd } },
blob - 1d1a951274aa289680a8bf588a63d09eadaa11d5
blob + b8a10857099f5abcff1db1f40b07d045dd95dd1e
--- scripts/dmenu_power
+++ scripts/dmenu_power
@@ -1,13 +1,19 @@
 #!/bin/sh
 
-case "$(printf 'Lock\nShutdown\nReboot\n' | dmenu -l 3 "$@")" in
+case "$(printf 'Lock\nSuspend\nShutdown\nReboot\nHibernate\n' | dmenu -l 5 "$@")" in
 Lock)
 	slock
 	;;
+Suspend)
+	zzz
+	;;
 Shutdown)
 	doas shutdown -p now
 	;;
 Reboot)
 	doas reboot
 	;;
+Hibernate)
+	ZZZ
+	;;
 esac
blob - /dev/null
blob + eabd7e6e955b262ad4f7f3c9a6f227f3d04a2ed3 (mode 755)
--- /dev/null
+++ scripts/dmenu_xrandr
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+out=HDMI2
+
+option=$(printf 'on\noff\n' | dmenu -l 2 -p "Configure $out") || exit 0
+
+case "$option" in
+on)
+	xrandr --output "$out" --auto --pos 1920x0
+	;;
+off)
+	xrandr --output "$out" --off
+	;;
+esac
blob - b9bdd778ddf536d1f6e6f34f0a7e65918bfc71b1
blob + 4f2ca51a57f2e6f4ed875cf06ae8722b7b993754
--- st/config.h
+++ st/config.h
@@ -199,8 +199,8 @@ static Shortcut shortcuts[] = {
 	{ ControlMask,          XK_Print,       toggleprinter,  {.i =  0} },
 	{ ShiftMask,            XK_Print,       printscreen,    {.i =  0} },
 	{ XK_ANY_MOD,           XK_Print,       printsel,       {.i =  0} },
-	{ TERMMOD,              XK_Prior,       zoom,           {.f = +1} },
-	{ TERMMOD,              XK_Next,        zoom,           {.f = -1} },
+	{ MODKEY,              	XK_period,      zoom,           {.f = +1} },
+	{ MODKEY,              	XK_comma,       zoom,           {.f = -1} },
 	{ TERMMOD,              XK_Home,        zoomreset,      {.f =  0} },
 	{ TERMMOD,              XK_C,           clipcopy,       {.i =  0} },
 	{ TERMMOD,              XK_V,           clippaste,      {.i =  0} },