sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit f2958b1d8619adb338c223145d781eaca4f8e09d
parent a5a3e61b1f04fa03ca46d17bd7c205bf41403433
Author: Georgios Oxinos <oxinosg@gmail.com>
Date:   Fri, 19 Feb 2021 00:54:46 +0100

[dwm][hideborder] patch that allows hiding border of active client

Diffstat:
Adwm.suckless.org/patches/hideborder/dwm-hideborder-20210219-03a3f72.diff | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/hideborder/index.md | 14++++++++++++++
2 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/hideborder/dwm-hideborder-20210219-03a3f72.diff b/dwm.suckless.org/patches/hideborder/dwm-hideborder-20210219-03a3f72.diff @@ -0,0 +1,51 @@ +From 03a3f7222416c3be997f393e5246e5f0560a5df3 Mon Sep 17 00:00:00 2001 +From: Georgios Oxinos <georgios.oxinos.extern@elinvar.de> +Date: Fri, 19 Feb 2021 00:53:04 +0100 +Subject: [PATCH] [PATCH] [dwm][hideborder] patch that allows hiding border of + active client + +--- + config.def.h | 1 + + dwm.c | 7 +++++++ + 2 files changed, 8 insertions(+) + +diff --git a/config.def.h b/config.def.h +index 1c0b587..6086523 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -64,6 +64,7 @@ static Key keys[] = { + { MODKEY, XK_p, spawn, {.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_b, togglebar, {0} }, ++ { MODKEY|ShiftMask, XK_b, hideborder, {0} }, + { MODKEY, XK_j, focusstack, {.i = +1 } }, + { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_i, incnmaster, {.i = +1 } }, +diff --git a/dwm.c b/dwm.c +index 664c527..a5b5342 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -169,6 +169,7 @@ static void focus(Client *c); + static void focusin(XEvent *e); + static void focusmon(const Arg *arg); + static void focusstack(const Arg *arg); ++static void hideborder(const Arg *arg); + static Atom getatomprop(Client *c, Atom prop); + static int getrootptr(int *x, int *y); + static long getstate(Window w); +@@ -856,6 +857,12 @@ focusstack(const Arg *arg) + } + } + ++void ++hideborder(const Arg *arg) ++{ ++ XSetWindowBorder(dpy, selmon->sel->win, scheme[SchemeSel][ColBg].pixel); ++} ++ + Atom + getatomprop(Client *c, Atom prop) + { +-- +2.27.0 + diff --git a/dwm.suckless.org/patches/hideborder/index.md b/dwm.suckless.org/patches/hideborder/index.md @@ -0,0 +1,14 @@ +hideborder +========== + +Description +----------- +Patch that turns border color of active client to the background color + +Download +-------- +* [dwm-hideborder-20210219-03a3f72.diff](dwm-hideborder-20210219-03a3f72.diff) + +Authors +------- +* Georgios Oxinos - <oxinosg@gmail.com>