From f1f0012b16d00e23d6199ce03bfba9b9b04538b7 Mon Sep 17 00:00:00 2001 From: awy Date: Tue, 4 Nov 2025 14:44:21 +0300 Subject: chooseprofile script fast way to launch icecat with certain profile --- .local/bin/chooseprofile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .local/bin/chooseprofile (limited to '.local') diff --git a/.local/bin/chooseprofile b/.local/bin/chooseprofile new file mode 100755 index 0000000..083c263 --- /dev/null +++ b/.local/bin/chooseprofile @@ -0,0 +1,12 @@ +#!/bin/sh + +profiles=$(awk -F= '/^\[Profile/ {profile=$1} /Name/ && !/default/ {print $2}' ~/.mozilla/icecat/profiles.ini) + +profile=$(echo "$profiles" | mew -p "Select IceCat Profile" -l 10) + +if [ -z "$profile" ] || ! echo "$profiles" | rg -q "^$profile$"; then + echo "Invalid selection or no profile selected. Exiting." + exit 1 +fi + +hyprctl dispatch exec "icecat -P $profile" -- cgit v1.2.3