From d5ee7591bce5a16eb60719c00239e04cec43dd00 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Tue, 8 Oct 2024 17:28:46 +0000 Subject: lowkey forgot what i changed --- config.h | 13 ++++++++----- drw.o | Bin 11104 -> 11000 bytes dwm | Bin 76664 -> 77736 bytes dwm.o | Bin 66952 -> 68392 bytes util.o | Bin 2296 -> 2224 bytes 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index 896de98..a824fcc 100644 --- a/config.h +++ b/config.h @@ -3,6 +3,7 @@ /* Definitions */ #define TERMINAL "urxvtc" +#define FLOATTERM "st" #define BROWSER "librewolf" /* appearance */ @@ -40,7 +41,7 @@ static const Rule rules[] = { { "qemu-system-x86_64","qemu-system-x86_64",NULL, 0, 1, 0, 0, -1 }, { "Virt-manager",NULL, NULL, 0, 0, 0, 0, -1 }, { "qBittorrent", NULL, NULL, 0, 1, 0, 0, -1 }, - { "St", NULL, NULL, 0, 0, 1, 0, -1 }, + { "St", NULL, NULL, 0, 1, 1, 0, -1 }, { "URxvt", NULL, NULL, 0, 0, 1, 0, -1 }, { "Nvidia-settings", "nvidia-settings",NULL, 0, 1, 0, 0, -1 }, { "scrcpy", NULL, NULL, 0, 1, 0, 0, -1 }, @@ -79,6 +80,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { TERMINAL, NULL }; static const char *sutermcmd[] = { TERMINAL,"-e", "su", NULL }; +static const char *floattermcmd[] = { "st", NULL }; static const char *volumeup[] = { "amixer", "sset", "Master", "5%+", NULL }; static const char *volumedown[] = { "amixer", "sset", "Master", "5%-", NULL }; static const char *volumetoggle[] = { "amixer", "sset", "Master", "toggle", NULL }; @@ -130,13 +132,14 @@ static const Key keys[] = { /* Non-default commands i.e. commands added in by me and patches */ { MODKEY|ShiftMask, XK_space, spawn, {.v = sutermcmd } }, + { MODKEY|ControlMask, XK_space, spawn, {.v = floattermcmd } }, { MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } }, { MODKEY|ShiftMask, XK_k, rotatestack, {.i = -1 } }, { MODKEY, XK_g, spawn, SHCMD("~/.local/bin/./dmenu_games") }, - { MODKEY|ShiftMask, XK_m, spawn, {.v = (const char*[]){ TERMINAL, "-e", "neomutt", NULL } }}, - { MODKEY|ShiftMask, XK_n, spawn, {.v = (const char*[]){ TERMINAL, "-e", "nvim", NULL } }}, - { MODKEY|ShiftMask, XK_h, spawn, {.v = (const char*[]){ TERMINAL, "-e", "htop", NULL } }}, - { MODKEY, XK_e, spawn, {.v = (const char*[]){ TERMINAL, "-e", "lfub", NULL } }}, + { MODKEY|ShiftMask, XK_m, spawn, {.v = (const char*[]){ FLOATTERM, "-e", "neomutt", NULL } }}, + { MODKEY|ShiftMask, XK_n, spawn, {.v = (const char*[]){ FLOATTERM, "-e", "nvim", NULL } }}, + { MODKEY|ShiftMask, XK_h, spawn, {.v = (const char*[]){ FLOATTERM, "-e", "htop", NULL } }}, + { MODKEY, XK_e, spawn, {.v = (const char*[]){ FLOATTERM, "-e", "lfub", NULL } }}, { MODKEY, XK_Print, spawn, SHCMD("scrot -q 100 ~/Pictures/%Y-%m.jpg") }, { MODKEY, XK_Up, spawn, {.v = volumeup } }, { MODKEY, XK_Down, spawn, {.v = volumedown } }, diff --git a/drw.o b/drw.o index da96676..249df4c 100644 Binary files a/drw.o and b/drw.o differ diff --git a/dwm b/dwm index ae1f745..3c0c490 100644 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 528069e..4dec89f 100644 Binary files a/dwm.o and b/dwm.o differ diff --git a/util.o b/util.o index 44e14f7..26ab857 100644 Binary files a/util.o and b/util.o differ -- cgit v1.2.3