patch togglefloatingcenter and add sudo term

This commit is contained in:
2026-02-10 10:39:27 -05:00
parent 41a166e157
commit 7ad2fa4c2c
4 changed files with 2203 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ static const Rule rules[] = {
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "sudoterm", NULL, NULL, 0, 1, -1 },
};
/* layout(s) */
@@ -63,6 +64,7 @@ static const char *termcmd[] = { "st", NULL };
static const char *sobercmd[] = { "flatpak", "run", "org.vinegarhq.Sober", NULL };
static const char *steamcmd[] = { "steam", NULL };
static const char *browsercmd[] = { "librewolf", NULL };
static const char *sudocmd[] = { "st", "-c", "sudoterm", "-e", "su", "-", NULL };
#include <X11/XF86keysym.h>
@@ -91,6 +93,7 @@ static const Key keys[] = {
{ MODKEY, XK_s, spawn, {.v = sobercmd } },
{ MODKEY, XK_g, spawn, {.v = steamcmd } },
{ MODKEY, XK_b, spawn, {.v = browsercmd } },
{ MODKEY, XK_t, spawn, {.v = sudocmd } },
{ 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44") },
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44") },