patch togglefloatingcenter and add sudo term
This commit is contained in:
@@ -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") },
|
||||
|
||||
Reference in New Issue
Block a user