New backup 2024-04-10 16:00:03
This commit is contained in:
parent
a0cc3b7fa4
commit
32c4b84f8b
1 changed files with 19 additions and 5 deletions
|
@ -1,22 +1,36 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
profiles=( "Personal" "Development" "School" "Work" )
|
||||
icons=( "~" "" "" "" )
|
||||
|
||||
echo ${#profiles[@]}
|
||||
|
||||
exit
|
||||
|
||||
for p in ${profiles[@]};do
|
||||
echo "${p}"
|
||||
done
|
||||
|
||||
case $1 in
|
||||
next|prev)
|
||||
current_profile=$(cat "$(dirname $0)/data/active_profile")
|
||||
;;&
|
||||
next)
|
||||
echo $(( ${current_profile}+1 ))
|
||||
;;
|
||||
new_profile=$(( ${current_profile}+1 ))
|
||||
[[ "$new_profile" -eq "4" ]] && new_profile=0
|
||||
;;&
|
||||
prev)
|
||||
echo $(( ${current_profile}-1 ))
|
||||
new_profile=$(( ${current_profile}-1 ))
|
||||
[[ "$new_profile" -eq "-1" ]] && new_profile=3
|
||||
;;&
|
||||
prev|next)
|
||||
op="${profiles[$new_profile]}"
|
||||
;;
|
||||
*)
|
||||
[[ -z $1 ]] && op=$( echo -e "~ Personal\n Development\n School\n Work" | wofi -i --dmenu --width 250 --height 320 | awk '{print $2}' ) || op="${1}"
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "$op"
|
||||
|
||||
profile_number=""
|
||||
|
||||
case $op in
|
||||
|
|
Loading…
Add table
Reference in a new issue