chooseprofile (308B) - View raw
1 2 3 4 5 6 7 8 9 10 11#!/bin/sh profiles=$(awk -F= '/^\[Profile/ {profile=$1} /Name/ && !/default/ {print $2}' ~/.mozilla/icecat/profiles.ini) profile=$(echo "$profiles" | mew -c -p "select profile" -l 10) if [ -z "$profile" ] || ! echo "$profiles" | rg -q "^$profile$"; then exit 0 fi swaymsg exec "icecat -P \"$profile\""