remove single border functionality

This commit is contained in:
speedie 2023-01-20 12:50:34 +01:00
parent dfa8504a6a
commit dd60d67520
8 changed files with 6 additions and 25 deletions

View file

@ -393,7 +393,6 @@ Below is a list of all .Xresources values you can define.
- speedwm.client.decorhints: 1
- speedwm.client.hide.border: 0
- speedwm.client.hide.unselected.border: 1
- speedwm.client.hide.single.border: 1
- speedwm.client.fade.inactive: 1
- speedwm.client.fade.windows: 1
- speedwm.client.floatscratchpad: 0
@ -636,7 +635,7 @@ Below is a list of all signums and what they do.
- 61 - Toggle systray
- 62 - Hide all windows
- 63 - Show all windows
- 64 - Reset mfact
- 64 - Reset mfact
- 65 - Reload .Xresources on the fly
- 66 - Switch to the previous tag, skipping empty tags
- 67 - Switch to the next tag, skipping empty tags
@ -693,8 +692,7 @@ Below is a list of all signums and what they do.
- 118 - Swap the focused window with the marked window.
- 119 - Center the focused window
- 120 - Toggle border for the focused window
- 121 - Toggle border for when there's only one window.
- 122 - Reset bar padding and gaps
- 121 - Reset bar padding and gaps
## Status bar

View file

@ -46,7 +46,6 @@ speedwm.client.autoresize: 1 ! Allow windows to resize themselves on
speedwm.client.decorhints: 1 ! Respect decoration hints for windows (0/1)
speedwm.client.hide.border: 0 ! Hide all window borders for windows (0/1)
speedwm.client.hide.unselected.border: 1 ! Hide all window borders for windows (0/1)
speedwm.client.hide.single.border: 1 ! Hide the window border when only a single window is visible (0/1)
speedwm.client.fade.inactive: 1 ! Fade inactive windows (windows that are not focused) (0/1)
speedwm.client.fade.windows: 1 ! Fade windows (0/1)
speedwm.client.floatscratchpad: 0 ! Float a scratchpad window when it is shown (0/1)

View file

@ -61,7 +61,7 @@
- 61 - Toggle systray
- 62 - Hide all windows
- 63 - Show all windows
- 64 - Reset mfact
- 64 - Reset mfact
- 65 - Reload .Xresources on the fly
- 66 - Switch to the previous tag, skipping empty tags
- 67 - Switch to the next tag, skipping empty tags
@ -118,6 +118,5 @@
- 118 - Swap the focused window with the marked window.
- 119 - Center the focused window
- 120 - Toggle border for the focused window
- 121 - Toggle border for when there's only one window.
- 122 - Reset bar padding and gaps
- 121 - Reset bar padding and gaps

View file

@ -129,7 +129,6 @@ static int hidelayout = 0; /* Hide layout indicator (1)
static int hidetitle = 0; /* Hide the title part of the bar (1) or show (0) */
static int hideunselectedtitle = 0; /* Hide unselected title (1) or show (0) */
static int hideborder = 0; /* Hide window border (1) or show (0) */
static int hidesingleborder = 1; /* Hide window border when there's only one window (1) or show (0) */
static int hideunselectedborder = 1; /* Hide unselected window border (1) or show (0) */
static int hidestatus = 0; /* Hide status bar (1) or show (0) */
static int hideicon = 0; /* Hide icon (1) or show (0) */

View file

@ -133,6 +133,5 @@ static Signal signals[] = {
{ 118, swapclient, {0} },
{ 119, centerwindow, {0} },
{ 120, toggleborder, {0} },
{ 121, togglesingleborder, {0} },
{ 122, resetbpgaps, {0} },
{ 121, resetbpgaps, {0} },
};

View file

@ -773,8 +773,6 @@ speedwm.client.hide.border: 0
.IP \[bu] 2
speedwm.client.hide.unselected.border: 1
.IP \[bu] 2
speedwm.client.hide.single.border: 1
.IP \[bu] 2
speedwm.client.fade.inactive: 1
.IP \[bu] 2
speedwm.client.fade.windows: 1
@ -1368,9 +1366,7 @@ Below is a list of all signums and what they do.
.IP \[bu] 2
120 - Toggle border for the focused window
.IP \[bu] 2
121 - Toggle border for when there\[cq]s only one window.
.IP \[bu] 2
122 - Reset bar padding and gaps
121 - Reset bar padding and gaps
.SS Status bar
.PP
speedwm has a status bar.

View file

@ -4592,14 +4592,6 @@ resizeclient(Client *c, int x, int y, int w, int h)
if ((nexttiled(c->mon->clients) == c) && !(nexttiled(c->next)))
reset_layout(NULL);
if ((nexttiled(c->mon->clients) == c && !nexttiled(c->next) && selmon->hidesingleborder)
&& !c->isfullscreen && !c->isfloating
&& NULL != c->mon->lt[c->mon->sellt]->arrange) {
c->w = wc.width += c->bw * 2;
c->h = wc.height += c->bw * 2;
wc.border_width = 0;
}
if (selmon->hideborder) {
c->w = wc.width += c->bw * 2;
c->h = wc.height += c->bw * 2;

View file

@ -139,7 +139,6 @@ ResourcePref resources[] = {
{ "bar.hide.clientindicator", INTEGER, &hideclientindicator },
{ "bar.powerline.tag.shape", INTEGER, &tagplshape },
{ "client.hide.border", INTEGER, &hideborder },
{ "client.hide.single.border", INTEGER, &hidesingleborder },
{ "client.hide.unselected.border",INTEGER, &hideunselectedborder },
{ "client.allowurgent", INTEGER, &allowurgent },
{ "client.wmclass", INTEGER, &wmclass },