summaryrefslogtreecommitdiff
path: root/ar/.local/bin/browserprofile
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-28 19:03:01 +0900
commitcbd1d349a511da7a861540a5d6ea954d4d06871b (patch)
tree92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/browserprofile
parent74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff)
updates
Diffstat (limited to 'ar/.local/bin/browserprofile')
-rwxr-xr-xar/.local/bin/browserprofile18
1 files changed, 9 insertions, 9 deletions
diff --git a/ar/.local/bin/browserprofile b/ar/.local/bin/browserprofile
index 525eed4..c66f183 100755
--- a/ar/.local/bin/browserprofile
+++ b/ar/.local/bin/browserprofile
@@ -1,9 +1,9 @@
#!/bin/sh
# Define the profile paths
-WORK_PROFILE="$USER.work"
-HOME_PROFILE="$USER.default"
-TMUX_PROFILE="$USER.tmux"
+work_profile="$USER.work"
+home_profile="$USER.default"
+tmux_profile="$USER.tmux"
usage() {
echo "Update the default profile in profiles.ini for Firefox or Librewolf."
@@ -18,9 +18,9 @@ usage() {
echo " -l/librewolf"
echo " <profile_type> : (Optional) If not specified, the default profile will be used."
echo " Accepted values:"
- echo " work: Sets the work profile ($WORK_PROFILE)"
- echo " default: Sets the home profile ($HOME_PROFILE)"
- echo " tmux: Sets the home profile ($TMUX_PROFILE)"
+ echo " work: Sets the work profile ($work_profile)"
+ echo " default: Sets the home profile ($home_profile)"
+ echo " tmux: Sets the home profile ($tmux_profile)"
echo ""
echo "Examples:"
echo " ${0##*/} -f -w # Set the work profile for Firefox"
@@ -84,13 +84,13 @@ update_profile() {
# Set the profile based on the input
case "$profile_type" in
-w | --work | work)
- update_profiles_ini "$browser" "$WORK_PROFILE"
+ update_profiles_ini "$browser" "$work_profile"
;;
-d | --default | default)
- update_profiles_ini "$browser" "$HOME_PROFILE"
+ update_profiles_ini "$browser" "$home_profile"
;;
-t | --tmux | tmux)
- update_profiles_ini "$browser" "$TMUX_PROFILE"
+ update_profiles_ini "$browser" "$tmux_profile"
;;
*)
echo "Invalid profile type. Please use 'work' or 'default'."