dots/configs/home/config/polybar/old/get-icon-list.sh

6 lines
198 B
Bash
Raw Normal View History

2022-04-03 01:11:04 +02:00
#!/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