commit f474310e9e13e9bcd78e28f7dd1c557207754ea0
parent 0b7be5dca38fd00cc14d238e9e7af45a39ba87ee
Author: dadaurs <david.wiedemann@outlook.com>
Date: Wed, 27 May 2020 12:41:08 +0200
[dwm][patch][script_tags] Fix typos and formatting; also rename the file
Diffstat:
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/dwm.suckless.org/patches/script_tags/dwm-script_tags-6.2.diff b/dwm.suckless.org/patches/script_tags/dwm-script_tags-6.2.diff
@@ -5,7 +5,7 @@ diff -up dwmdiff/dwm-6.2/config.def.h dwm-6.2/config.def.h
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
-+static const char *tagfile = "/tmp/dwm_workspaces";
++static const char *tagfile = "/tmp/dwm_tags";
+static const int barheight = 25; /* 0 means bottom bar */
+static const char *sepchar = ":";
static const int showbar = 1; /* 0 means no bar */
diff --git a/dwm.suckless.org/patches/script_tags/index.md b/dwm.suckless.org/patches/script_tags/index.md
@@ -5,17 +5,23 @@ Description
-----------
This patch does two things:
1) It removes the code that generates the bar, but still leaves a "toggleable" area.
+
2) On X events, it writes all the tag and layout information to a user defined file.
This allows any bar that reads stdin to be used in conjuction with dwm.
The patch introduces 3 variables:
+
barheight: sets the size of the top gap in pixels(this gap remains toggleable with the togglebar function).
+
sepchar: sets the character used to delimitate different workspaces(see below).
+
tagfile: sets the path of the file to wich the tag and layout information is written to.
The tagfile uses an easy syntax.
-Each tagname is prefixed with a character discribing the state of that tag.
+
+Each tagname is prefixed with a character describing the state of that tag.
+
There are 4 different states:
state 'e': tag is empty and not focused
@@ -29,17 +35,18 @@ state 'O': tag is occupied and focused
The different tags with respective tag information are separated by the sepchar variable defined in config.h.
A simple example would be:
+
```
-echo /tmp/dwm_workspaces| entr cat /tmp/dwm_workspaces | lemonbar
+echo /tmp/dwm_tags| entr cat /tmp/dwm_tags | lemonbar
```
Download
-----------
-*[dwm-script_tags-6.2.diff](dwm-script_tags-6.2.diff) (18.05.2020)
+* [dwm-script_tags-6.2.diff](dwm-script_tags-6.2.diff) (18.05.2020)
Authors
-----------
-* David Wiedemann <david.wiedemann2[at]gmail.com>
+* David Wiedemann <david.wiedemann2@gmail.com>