dots/configs/home/config/polybar/old/get-icon-list.sh
2022-04-03 01:11:04 +02:00

6 lines
198 B
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