index.md - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
index.md (1397B)
---
1 current\_desktop
2 ================
3
4 Description
5 -----------
6 Sets \_NET\_NUMBER\_OF\_DESKTOPS and \_NET\_CURRENT\_DESKTOP on root to
7 appropriate values. Note that 'appropriate' for these values don't make sense
8 as xprop -root output, since dwm uses them at bitwise but xprop displays them
9 in base ten. In other words, if you have 4 desktops,
10 \_NET\_NUMBER\_OF\_DESKTOPS is actualy 0b1111 but xprop displays this as 15.
11 I'm ok with this, because the end-user (program, script, w/e) can always parse
12 this appropriately. The same goes for \_NET\_CURRENT\_DESKTOP: if you have
13 desktops 1 and 3 selected, the value is 0b1010, but xprop shows this as 10.
14 This isn't a problem.
15
16 I should note that in this case, \_NET\_NUMBER\_OF\_DESKTOPS does not exactly
17 conform to EWMH specifications: in reality, there are many more 'desktops' than
18 15 (in the above example), as any combination of 1, 2, 3 or 4 of the availables
19 tags can be considered one desktop. \_CURRENT\_DESKTOP will, however, always be
20 less that \_NET\_NUMBER\_OF\_DESKTOPS, so I'm happy with that.
21
22 I wrote this patch mainly for myself, as I have a script for tabbed that uses
23 it (I will upload this later). I am open to feedback/contstructive criticism.
24 Email is at the bottom.
25
26 Download
27 --------
28 * [dwm-current\_desktop-5.8.2.diff](dwm-current_desktop-5.8.2.diff) (dwm 2010604)
29
30 Author
31 ------
32 * Wolfgang S. - ezzieyguywuf at gmail period com