aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorawy <awy@awy.one>2024-11-25 02:09:05 +0300
committerawy <awy@awy.one>2024-11-25 02:09:05 +0300
commita237dee86d4178f8c10fcc48682b031808be46c0 (patch)
tree49db28518967436b65d4b6aeaa1f047573aaa295
parentae955a003774beac9140cc1aa09342b133ad6e5f (diff)
btop bind
-rw-r--r--config.def.h2
-rw-r--r--config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 9ca8058..3bb96e4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -143,6 +143,7 @@ static const char *passmenu[] = { "tessen", NULL };
static const char *bookmarks[] = { "bookmarks", NULL };
static const char *snip[] = {"sh", "-c", "slurp | grim -g - - | wl-copy", NULL};
static const char *spotifyplayer[] = { "foot", "-e", "spotify_player", NULL };
+static const char *btop[] = { "foot", "-e", "btop", NULL };
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
@@ -156,6 +157,7 @@ static const Key keys[] = {
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_S, spawn, {.v = snip} },
{ MODKEY, XKB_KEY_e, spawn, SHCMD("foot -e neomutt ; pkill -RTMIN+12 someblocks") },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_N, spawn, SHCMD("foot -e newsboat ; pkill -RTMIN+6 someblocks") },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_R, spawn, {.v = btop} },
{ MODKEY, XKB_KEY_b, togglebar, {0} },
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
diff --git a/config.h b/config.h
index 9ca8058..3bb96e4 100644
--- a/config.h
+++ b/config.h
@@ -143,6 +143,7 @@ static const char *passmenu[] = { "tessen", NULL };
static const char *bookmarks[] = { "bookmarks", NULL };
static const char *snip[] = {"sh", "-c", "slurp | grim -g - - | wl-copy", NULL};
static const char *spotifyplayer[] = { "foot", "-e", "spotify_player", NULL };
+static const char *btop[] = { "foot", "-e", "btop", NULL };
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
@@ -156,6 +157,7 @@ static const Key keys[] = {
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_S, spawn, {.v = snip} },
{ MODKEY, XKB_KEY_e, spawn, SHCMD("foot -e neomutt ; pkill -RTMIN+12 someblocks") },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_N, spawn, SHCMD("foot -e newsboat ; pkill -RTMIN+6 someblocks") },
+ { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_R, spawn, {.v = btop} },
{ MODKEY, XKB_KEY_b, togglebar, {0} },
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },