New backup 2024-04-10 16:45:04

This commit is contained in:
Penelope Gwen 2024-04-10 16:45:04 -06:00
parent d796656c57
commit 531b993955
2 changed files with 14 additions and 34 deletions

View file

@ -38,10 +38,15 @@ bindsym $mod+Backslash exec "$HOME/.config/sway/scripts/profiles.sh Work"
# Trackpad
#
# Switch Next
# Next Workspace
bindgesture swipe:left workspace next
bindsym $mod+Tab workspace next
# Switch Prev
# Prev Workspace
bindgesture swipe:right workspace prev
bindsym $mod+Shift+Tab workspace prev
# Next 'Profile'
bindgesture swipe:up exec "$HOME/.config/sway/scripts/profiles.sh next"
# Prev 'Profile'
bindgesture swipe:down exec "$HOME/.config/sway/scripts/profiles.sh prev"

View file

@ -25,8 +25,6 @@ case $1 in
;;&
prev|next)
op=$(printf "%01d\n" ${new_profile})
# echo
# op="${profiles[$new_profile]}"
;;
*)
for (( p="0"; p<=${profilem}; p++ ));do
@ -38,37 +36,14 @@ case $1 in
;;
esac
echo $op
#printf "%01d\n" "$op"
exit
case $op in
Personal)
p_number=""
p_icon="~"
;;
Development)
p_number="1"
p_icon=""
;;
School)
p_number="2"
p_icon=""
;;
Work)
p_number="3"
p_icon=""
;;
*)
exit 1
;;
esac
[[ $op -eq "0" ]] && p_num="" || p_num="$op"
p_icon="${icons[$op]}"
for i in {1..10};do
[[ "$i" -eq "10" ]] && k="0" || k=$i
echo $k
swaymsg 'bindsym $mod+'"$k"' workspace number "'"${p_number}${i}:${p_icon}"'"'
swaymsg 'bindsym $mod+'"$k"' workspace number "'"${p_num}${i}:${p_icon}"'"'
done
printf "%01d\n" "${p_number}" > "$(dirname $0)/data/active_profile"
swaymsg 'workspace number "'"${p_number}"'"1:"'"${p_icon}"'"'
moveto="${p_num}1:${p_icon}"
swaymsg 'workspace number "'"${p_num}"'"1:"'"${p_icon}"'"'
echo "${op}" > "$(dirname $0)/data/active_profile"