Updated Module: i3 (markdown)

Michael Carlberg 2017-01-26 18:31:45 +01:00
parent d7216bfcbb
commit 9c41754fee
1 changed files with 9 additions and 0 deletions

@ -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
~~~