Various changes
This commit is contained in:
parent
7a8ee3b4ad
commit
9d1c65af3c
27
config.def.h
27
config.def.h
@ -64,15 +64,40 @@ static const Layout layouts[] = {
|
|||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static const char *runcmd[] = { "dmenu_run", NULL };
|
static const char *runcmd[] = { "dmenu_run", NULL };
|
||||||
static const char *termcmd[] = { "alacritty", NULL };
|
static const char *termcmd[] = { "alacritty", NULL };
|
||||||
static const char *browsercmd[] = { "firefox", NULL };
|
static const char *browsercmd[] = { "firefox", NULL };
|
||||||
|
static const char *lockcmd[] = { "loginctl", "lock-session", NULL };
|
||||||
|
static const char *passwdcmd[] = { "keepassxc", NULL };
|
||||||
|
static const char *mailcmd[] = { "thunderbird", NULL };
|
||||||
|
static const char *shotcmd[] = { "screenshot.sh", NULL };
|
||||||
|
static const char *soundcmd[] = { "select-sound-output.sh", NULL };
|
||||||
|
static const char *volupcmd[] = { "pamixer", "-i", "1", NULL };
|
||||||
|
static const char *bigvolupcmd[] = { "pamixer", "-i", "5", NULL };
|
||||||
|
static const char *voldowncmd[] = { "pamixer", "-d", "1", NULL };
|
||||||
|
static const char *bigvoldowncmd[] = { "pamixer", "-d", "5", NULL };
|
||||||
|
static const char *volmutecmd[] = { "pamixer", "-t", NULL };
|
||||||
|
static const char *monbrightupcmd[] = { "brightness-control.sh", "up", NULL };
|
||||||
|
static const char *monbrightdowncmd[] = { "brightness-control.sh", "down", NULL };
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = runcmd } },
|
{ MODKEY, XK_p, spawn, {.v = runcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } },
|
{ MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_o, spawn, {.v = lockcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_p, spawn, {.v = passwdcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_t, spawn, {.v = shotcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_n, spawn, {.v = soundcmd } },
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volupcmd } },
|
||||||
|
{ ShiftMask, XF86XK_AudioRaiseVolume, spawn, {.v = bigvolupcmd } },
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd } },
|
||||||
|
{ ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = bigvoldowncmd } },
|
||||||
|
{ 0, XF86XK_AudioMute, spawn, {.v = volmutecmd } },
|
||||||
|
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = monbrightupcmd } },
|
||||||
|
{ 0, XF86XK_MonBrightnessDown, spawn, {.v = monbrightdowncmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_r, restart, {0} },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
|
2
drw.c
2
drw.c
@ -190,6 +190,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
|
|||||||
DefaultColormap(drw->dpy, drw->screen),
|
DefaultColormap(drw->dpy, drw->screen),
|
||||||
clrname, dest))
|
clrname, dest))
|
||||||
die("error, cannot allocate color '%s'", clrname);
|
die("error, cannot allocate color '%s'", clrname);
|
||||||
|
|
||||||
|
dest->pixel |= 0xff << 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wrapper to create color schemes. The caller has to call free(3) on the
|
/* Wrapper to create color schemes. The caller has to call free(3) on the
|
||||||
|
2584
dwm.c.orig
2584
dwm.c.orig
File diff suppressed because it is too large
Load Diff
19
dwm.c.rej
19
dwm.c.rej
@ -1,19 +0,0 @@
|
|||||||
--- dwm.c
|
|
||||||
+++ dwm.c
|
|
||||||
@@ -62,7 +62,7 @@ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
|
||||||
enum { SchemeNorm, SchemeSel }; /* color schemes */
|
|
||||||
enum { NetSupported, NetWMName, NetWMState, NetWMCheck,
|
|
||||||
NetWMFullscreen, NetActiveWindow, NetWMWindowType,
|
|
||||||
- NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */
|
|
||||||
+ NetWMWindowTypeDialog, NetClientList, NetClientInfo, NetLast }; /* EWMH atoms */
|
|
||||||
enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
|
|
||||||
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
|
||||||
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
|
||||||
@@ -1588,6 +1610,7 @@ setup(void)
|
|
||||||
netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
|
|
||||||
netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
|
|
||||||
netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
|
|
||||||
+ netatom[NetClientInfo] = XInternAtom(dpy, "_NET_CLIENT_INFO", False);
|
|
||||||
/* init cursors */
|
|
||||||
cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr);
|
|
||||||
cursor[CurResize] = drw_cur_create(drw, XC_sizing);
|
|
27
patches/dwm-fixborders-6.2.diff
Normal file
27
patches/dwm-fixborders-6.2.diff
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 1529909466206016f2101457bbf37c67195714c8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jakub Leszczak <szatan@gecc.xyz>
|
||||||
|
Date: Fri, 22 Nov 2019 10:46:53 +0800
|
||||||
|
Subject: [PATCH] Fix transparent borders
|
||||||
|
|
||||||
|
When terminal has transparency then its borders also become transparent.
|
||||||
|
Fix it by removing transparency from any pixels drawn.
|
||||||
|
---
|
||||||
|
drw.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/drw.c b/drw.c
|
||||||
|
index 8fd1ca4..490a592 100644
|
||||||
|
--- a/drw.c
|
||||||
|
+++ b/drw.c
|
||||||
|
@@ -202,6 +202,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
|
||||||
|
DefaultColormap(drw->dpy, drw->screen),
|
||||||
|
clrname, dest))
|
||||||
|
die("error, cannot allocate color '%s'", clrname);
|
||||||
|
+
|
||||||
|
+ dest->pixel |= 0xff << 24;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wrapper to create color schemes. The caller has to call free(3) on the
|
||||||
|
--
|
||||||
|
2.26.2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user