dots/configs/home/.config/polybar/old/get-icon-list.sh
2023-10-27 19:56:44 +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