mirror of https://github.com/polybar/polybar.git
Updated Module: i3 (markdown)
parent
d7216bfcbb
commit
9c41754fee
|
@ -119,3 +119,12 @@ label-urgent-foreground = #000000
|
||||||
label-urgent-background = #bd2c40
|
label-urgent-background = #bd2c40
|
||||||
label-urgent-padding = 4
|
label-urgent-padding = 4
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Generate ws-icon list
|
||||||
|
~~~ bash
|
||||||
|
#!/bin/bash
|
||||||
|
counter=0
|
||||||
|
i3-msg -t get_workspaces | tr ',' '\n' | sed -nr 's/"name":"([^"]+)"/\1/p' | while read -r name; do
|
||||||
|
printf 'ws-icon-%i = "%s;<insert-icon-here>"\n' $((counter++)) $name
|
||||||
|
done
|
||||||
|
~~~
|
Loading…
Reference in New Issue