[wiki] [sites] [dwm][patch][script_tags] Fix typos and formatting; also rename the file || dadaurs
commit f474310e9e13e9bcd78e28f7dd1c557207754ea0
Author: dadaurs <david.wiedemann_AT_outlook.com>
Date: Wed May 27 12:41:08 2020 +0200
[dwm][patch][script_tags] Fix typos and formatting; also rename the file
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
index 7cf07cbf..9010ab8a 100644
--- 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
_AT_@ -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
index d0704974..11720cd3 100644
--- a/dwm.suckless.org/patches/script_tags/index.md
+++ b/dwm.suckless.org/patches/script_tags/index.md
_AT_@ -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
_AT_@ -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_AT_gmail.com>
Received on Wed May 27 2020 - 12:46:21 CEST
This archive was generated by hypermail 2.3.0
: Wed May 27 2020 - 12:48:50 CEST