flexi/dwm-flexipatched.diff
2024-12-28 23:32:12 -06:00

347 lines
16 KiB
Diff

diff '--color=auto' -Nu a/config.def.h b/config.def.h
--- a/config.def.h 2024-12-28 22:09:50.009762644 -0600
+++ b/config.def.h 2024-12-28 23:28:39.313251353 -0600
@@ -17,7 +17,7 @@
* automatically update with setborderpx. */
static const unsigned int barborderpx = 0; /* border pixel of bar */
#endif // BAR_BORDER_PATCH
-static const unsigned int snap = 32; /* snap pixel */
+static const unsigned int snap = 1; /* snap pixel */
#if SWALLOW_PATCH
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
#endif // SWALLOW_PATCH
@@ -166,21 +166,21 @@
#if BAR_PANGO_PATCH
static const char font[] = "monospace 10";
#else
-static const char *fonts[] = { "monospace:size=10" };
+static const char *fonts[] = { "JetBrainsMono:bold:size=10" };
#endif // BAR_PANGO_PATCH
static const char dmenufont[] = "monospace:size=10";
static char c000000[] = "#000000"; // placeholder value
-static char normfgcolor[] = "#bbbbbb";
-static char normbgcolor[] = "#222222";
-static char normbordercolor[] = "#444444";
-static char normfloatcolor[] = "#db8fd9";
-
-static char selfgcolor[] = "#eeeeee";
-static char selbgcolor[] = "#005577";
-static char selbordercolor[] = "#005577";
-static char selfloatcolor[] = "#005577";
+static char normfgcolor[] = "#374145";
+static char normbgcolor[] = "#1e2326";
+static char normbordercolor[] = "#1e2326";
+static char normfloatcolor[] = "#1e2326";
+
+static char selfgcolor[] = "#7fbbb3";
+static char selbgcolor[] = "#1e2326";
+static char selbordercolor[] = "#7fbbb3";
+static char selfloatcolor[] = "#7fbbb3";
static char titlenormfgcolor[] = "#bbbbbb";
static char titlenormbgcolor[] = "#222222";
@@ -192,13 +192,13 @@
static char titleselbordercolor[] = "#005577";
static char titleselfloatcolor[] = "#005577";
-static char tagsnormfgcolor[] = "#bbbbbb";
-static char tagsnormbgcolor[] = "#222222";
+static char tagsnormfgcolor[] = "#374145";
+static char tagsnormbgcolor[] = "#1e2326";
static char tagsnormbordercolor[] = "#444444";
static char tagsnormfloatcolor[] = "#db8fd9";
-static char tagsselfgcolor[] = "#eeeeee";
-static char tagsselbgcolor[] = "#005577";
+static char tagsselfgcolor[] = "#7fbbb3";
+static char tagsselbgcolor[] = "#1e2326";
static char tagsselbordercolor[] = "#005577";
static char tagsselfloatcolor[] = "#005577";
@@ -515,6 +515,10 @@
#elif SCRATCHPADS_PATCH
RULE(.instance = "spterm", .tags = SPTAG(0), .isfloating = 1)
#endif // SCRATCHPADS_PATCH
+ RULE(.class = "st", .isfloating = 0, .isterminal = 1, .noswallow = 0)
+ RULE(.class = "Display-im6.q16", .isfloating = 1, .isterminal = 1, .noswallow = 0)
+ RULE(.class = "zbar", .isfloating = 1, .isterminal = 1, .noswallow = 0)
+ RULE(.class = "qemu-system-x86_64", .isfloating = 1, .isterminal = 1, .noswallow = 0)
};
#if MONITOR_RULES_PATCH
@@ -637,7 +641,7 @@
};
/* layout(s) */
-static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
+static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
#if FLEXTILE_DELUXE_LAYOUT
static const int nstack = 0; /* number of clients in primary stack area */
@@ -729,9 +733,9 @@
static const Layout layouts[] = {
/* symbol arrange function */
#if TILE_LAYOUT
- { "[]=", tile }, /* first entry is default */
+ { "", tile }, /* first entry is default */
#endif
- { "><>", NULL }, /* no layout function means floating behavior */
+ /* { "><>", NULL }, /1* no layout function means floating behavior *1/ */
#if MONOCLE_LAYOUT
{ "[M]", monocle },
#endif
@@ -783,7 +787,7 @@
#endif // XKB_PATCH
/* key definitions */
-#define MODKEY Mod1Mask
+#define MODKEY Mod4Mask
#if COMBO_PATCH && SWAPTAGS_PATCH && TAGOTHERMONITOR_PATCH
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, comboview, {.ui = 1 << TAG} }, \
@@ -870,11 +874,11 @@
#if !NODMENU_PATCH
"-m", dmenumon,
#endif // NODMENU_PATCH
- "-fn", dmenufont,
- "-nb", normbgcolor,
- "-nf", normfgcolor,
- "-sb", selbgcolor,
- "-sf", selfgcolor,
+ /* "-fn", dmenufont, */
+ /* "-nb", normbgcolor, */
+ /* "-nf", normfgcolor, */
+ /* "-sb", selbgcolor, */
+ /* "-sf", selfgcolor, */
#if BAR_DMENUMATCHTOP_PATCH
topbar ? NULL : "-b",
#endif // BAR_DMENUMATCHTOP_PATCH
@@ -906,19 +910,39 @@
};
#endif // ON_EMPTY_KEYS_PATCH
+static const char *filemanager[] = { "st", "-e", "nav", NULL };
+static const char *dpass[] = { "dwmpass", NULL };
+static const char *dpassotp[] = { "dwmotp", NULL };
+static const char *klayout[] = { "setxkbmap-next", NULL };
+static const char *doutput[] = { "menu-output", NULL };
+static const char *dinput[] = { "menu-input", NULL };
+static const char *dpower[] = { "menu-power", NULL };
+static const char *browser[] = { "firefox-hardened", NULL };
+static const char *brightdown[] = { "brightdown", NULL };
+static const char *brightup[] = { "brightup", NULL };
+static const char *clipmenu[] = { "clipmenu", NULL };
+static const char *voldown[] = { "voldown", NULL };
+static const char *volup[] = { "volup", NULL };
+static const char *micdown[] = { "micdown", NULL };
+static const char *micup[] = { "micup", NULL };
+static const char *prtsc[] = { "prtsc", NULL };
+static const char *mute[] = { "mute", NULL };
+static const char *micmute[] = { "micmute", NULL };
+
+#include <X11/XF86keysym.h>
static const Key keys[] = {
/* modifier key function argument */
#if KEYMODES_PATCH
{ MODKEY, XK_Escape, setkeymode, {.ui = COMMANDMODE} },
#endif // KEYMODES_PATCH
- { MODKEY, XK_p, spawn, {.v = dmenucmd } },
- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_r, spawn, {.v = dmenucmd } },
+ { MODKEY, XK_Return, spawn, {.v = termcmd } },
#if RIODRAW_PATCH
{ MODKEY|ControlMask, XK_p, riospawnsync, {.v = dmenucmd } },
{ MODKEY|ControlMask, XK_Return, riospawn, {.v = termcmd } },
{ MODKEY, XK_s, rioresize, {0} },
#endif // RIODRAW_PATCH
- { MODKEY, XK_b, togglebar, {0} },
+ { MODKEY|ShiftMask, XK_b, togglebar, {0} },
#if TOGGLETOPBAR_PATCH
{ MODKEY|ShiftMask, XK_b, toggletopbar, {0} },
#endif // TOGGLETOPBAR_PATCH
@@ -967,8 +991,8 @@
{ MODKEY|ControlMask, XK_j, pushdown, {0} },
{ MODKEY|ControlMask, XK_k, pushup, {0} },
#endif // PUSH_PATCH / PUSH_NO_MASTER_PATCH
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_i, incnmaster, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_d, incnmaster, {.i = -1 } },
#if FLEXTILE_DELUXE_LAYOUT
{ MODKEY|ControlMask, XK_i, incnstack, {.i = +1 } },
{ MODKEY|ControlMask, XK_u, incnstack, {.i = -1 } },
@@ -1013,7 +1037,7 @@
#if INSETS_PATCH
{ MODKEY|ShiftMask|ControlMask, XK_a, updateinset, {.v = &default_inset } },
#endif // INSETS_PATCH
- { MODKEY, XK_Return, zoom, {0} },
+ { MODKEY|ShiftMask, XK_Return, zoom, {0} },
#if VANITYGAPS_PATCH
{ MODKEY|Mod4Mask, XK_u, incrgaps, {.i = +1 } },
{ MODKEY|Mod4Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
@@ -1064,7 +1088,7 @@
#if BAR_WINTITLEACTIONS_PATCH
{ MODKEY|ControlMask, XK_z, showhideclient, {0} },
#endif // BAR_WINTITLEACTIONS_PATCH
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
+ { MODKEY, XK_c, killclient, {0} },
#if KILLUNSEL_PATCH
{ MODKEY|ShiftMask, XK_x, killunsel, {0} },
#endif // KILLUNSEL_PATCH
@@ -1087,9 +1111,8 @@
#if XRDB_PATCH && !BAR_VTCOLORS_PATCH
{ MODKEY|ShiftMask, XK_F5, xrdb, {.v = NULL } },
#endif // XRDB_PATCH
- { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
- { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
+ { MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[0]} },
+ { MODKEY|ShiftMask, XK_m, setlayout, {.v = &layouts[1]} },
#if COLUMNS_LAYOUT
{ MODKEY, XK_c, setlayout, {.v = &layouts[3]} },
#endif // COLUMNS_LAYOUT
@@ -1105,7 +1128,7 @@
{ MODKEY|ControlMask, XK_Return, mirrorlayout, {0} }, /* flextile, flip master and stack areas */
#endif // FLEXTILE_DELUXE_LAYOUT
{ MODKEY, XK_space, setlayout, {0} },
- { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
+ { MODKEY, XK_t, togglefloating, {0} },
#if MAXIMIZE_PATCH
{ MODKEY|ControlMask|ShiftMask, XK_h, togglehorizontalmax, {0} },
{ MODKEY|ControlMask|ShiftMask, XK_l, togglehorizontalmax, {0} },
@@ -1139,7 +1162,7 @@
{ MODKEY|ShiftMask, XK_f, fullscreen, {0} },
#endif // FULLSCREEN_PATCH
#if STICKY_PATCH
- { MODKEY|ShiftMask, XK_s, togglesticky, {0} },
+ { MODKEY, XK_s, togglesticky, {0} },
#endif // STICKY_PATCH
#if SCRATCHPAD_ALT_1_PATCH
{ MODKEY, XK_minus, scratchpad_show, {0} },
@@ -1312,6 +1335,25 @@
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
+ { MODKEY, XK_f, spawn, {.v = filemanager } },
+ { MODKEY|ShiftMask, XK_o, spawn, {.v = dpassotp } },
+ { MODKEY|ShiftMask, XK_c, spawn, {.v = clipmenu } },
+ { MODKEY, XK_w, spawn, {.v = browser } },
+ { MODKEY, XK_o, spawn, {.v = doutput } },
+ { MODKEY, XK_space, spawn, {.v = klayout } },
+ { MODKEY, XK_p, spawn, {.v = dpower } },
+ { MODKEY, XK_i, spawn, {.v = dinput } },
+ { MODKEY|ShiftMask, XK_p, spawn, {.v = dpass } },
+ { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } },
+ { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } },
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } },
+ { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } },
+ { 0, XF86XK_AudioMute, spawn, {.v = mute } },
+ { ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = micdown } },
+ { ShiftMask, XF86XK_AudioRaiseVolume, spawn, {.v = micup } },
+ { ShiftMask, XF86XK_AudioMute, spawn, {.v = micmute } },
+ { 0, XF86XK_AudioMicMute, spawn, {.v = micmute } },
+ { 0, XK_Print, spawn, {.v = prtsc } },
};
#if KEYMODES_PATCH
diff '--color=auto' -Nu a/config.mk b/config.mk
--- a/config.mk 2024-12-28 22:09:50.009762644 -0600
+++ b/config.mk 2024-12-28 22:39:51.163155583 -0600
@@ -46,7 +46,7 @@
#XEXTLIB = -lXext
# Uncomment this for the swallow patch / SWALLOW_PATCH
-#XCBLIBS = -lX11-xcb -lxcb -lxcb-res
+XCBLIBS = -lX11-xcb -lxcb -lxcb-res
# This is needed for the winicon and tagpreview patches / BAR_WINICON_PATCH / BAR_TAGPREVIEW_PATCH
#IMLIB2LIBS = -lImlib2
Common subdirectories: a/.git and b/.git
Common subdirectories: a/.github and b/.github
Common subdirectories: a/patch and b/patch
diff '--color=auto' -Nu a/patches.def.h b/patches.def.h
--- a/patches.def.h 2024-12-28 22:09:50.019762642 -0600
+++ b/patches.def.h 2024-12-28 22:39:38.159821799 -0600
@@ -206,7 +206,7 @@
#define BAR_WINICON_PATCH 0
/* Show window title in bar */
-#define BAR_WINTITLE_PATCH 1
+#define BAR_WINTITLE_PATCH 0
/* Shows window titles in the bar, but only for floating clients.
* This depends on code from the flexwintitle patch.
@@ -459,7 +459,7 @@
* This patch interferes with the center transient windows patches.
* https://dwm.suckless.org/patches/alwayscenter/
*/
-#define ALWAYSCENTER_PATCH 0
+#define ALWAYSCENTER_PATCH 1
/* This patch allows windows to be resized with its aspect ratio remaining constant.
* https://dwm.suckless.org/patches/aspectresize/
@@ -488,7 +488,7 @@
/* This patch adds new clients at the bottom of the stack.
* https://dwm.suckless.org/patches/attachbottom/
*/
-#define ATTACHBOTTOM_PATCH 0
+#define ATTACHBOTTOM_PATCH 1
/* This patch will make dwm run "~/.local/share/dwm/autostart_blocking.sh" and
* "~/.local/share/dwm/autostart.sh &" before entering the handler loop. One or
@@ -828,7 +828,7 @@
/* This patch allows you to move clients around in the stack and swap them with the master.
* https://dwm.suckless.org/patches/movestack/
*/
-#define MOVESTACK_PATCH 0
+#define MOVESTACK_PATCH 1
/* This patch allows you to change the names of tags during runtime.
*
@@ -865,7 +865,7 @@
/* Removes the border when there is only one window visible.
* https://dwm.suckless.org/patches/noborder/
*/
-#define NOBORDER_PATCH 0
+#define NOBORDER_PATCH 1
/* Enable modifying or removing dmenu in config.def.h which resulted previously in a
* compilation error because two lines of code hardcode dmenu into dwm.
@@ -917,7 +917,7 @@
* monitor (default).
* https://dwm.suckless.org/patches/pertag/
*/
-#define PERTAG_PATCH 0
+#define PERTAG_PATCH 1
/* Option to enable gaps on a per tag basis rather than globally.
* Depends on both pertag and vanitygaps patches being enabled.
@@ -1188,7 +1188,7 @@
/* Adds toggleable keyboard shortcut to make a client 'sticky', i.e. visible on all tags.
* https://dwm.suckless.org/patches/sticky/
*/
-#define STICKY_PATCH 0
+#define STICKY_PATCH 1
/* This patch adds "window swallowing" to dwm as known from Plan 9's windowing system rio.
* Clients marked with isterminal in config.h swallow a window opened by any child process,
@@ -1205,7 +1205,7 @@
*
* https://dwm.suckless.org/patches/swallow/
*/
-#define SWALLOW_PATCH 0
+#define SWALLOW_PATCH 1
/* This patch depends on the pertag patch and makes it possible to switch focus with a single
* shortcut (MOD+s) instead of having to think if you should use mod-j or mod-k for reaching
@@ -1403,7 +1403,7 @@
* when the mouse cursor is (a) on a different screen or (b) on top of a different window.
* https://dwm.suckless.org/patches/warp/
*/
-#define WARP_PATCH 0
+#define WARP_PATCH 1
/* Sometimes a single application opens different windows depending on the task
* at hand and this is often reflected in the WM_WINDOW_ROLE(STRING) x property.