arch/roles/dots/files/home/bin/firefox_profiles.sh

15 lines
479 B
Bash
Raw Normal View History

2024-09-04 00:54:15 +06:00
#!/bin/bash
# Путь к файлу profiles.ini
PROFILES_INI="$HOME/.mozilla/firefox/profiles.ini"
2025-02-15 20:38:47 +06:00
2024-10-27 00:29:18 +06:00
while read -r line; do export "$line"; done < /home/fs/scale_vars
2025-04-18 21:40:38 +06:00
dpi="125"
profile=$(grep '\[Profile' -A 2 "$PROFILES_INI" | grep "Name=" | sed 's/Name=//' | rofi -dmenu -dpi $dpi)
# profile=$(grep '\[Profile' -A 2 "$PROFILES_INI" | grep "Name=" | sed 's/Name=//' | dmenu -l 15)
2024-09-04 00:54:15 +06:00
if [ ! "$profile" = "" ]; then
2025-04-18 21:40:38 +06:00
nice -n 15 firefox -P "$profile";
2024-09-04 00:54:15 +06:00
fi
fi