New backup 2024-04-10 17:30:03
This commit is contained in:
parent
60e20e190a
commit
d34510410f
26 changed files with 10 additions and 6 deletions
|
@ -1,9 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
profiles=( "Personal" "Development" "School" "Work")
|
||||
|
||||
current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name')
|
||||
current_ws=$(printf "%02d\n" $( echo "${current_ws}" | sed 's/:.*//' | tr -d '"'))
|
||||
current_ws=${current_ws:0:1}
|
||||
|
||||
current_ws="${current_ws//[[:digit:]\"]/}"
|
||||
|
||||
echo ${current_ws}
|
||||
exit
|
||||
if [[ -z "${current_ws}" ]];then current_ws="Penelope";fi
|
||||
|
||||
gtk-launch "Floorp-${current_ws}.desktop"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
profiles=( "Personal" "Development" "School" "Work" "a" )
|
||||
profiles=( "Personal" "Development" "School" "Work")
|
||||
icons=( "~" "" "" "" "a" )
|
||||
|
||||
#echo ${profiles[@]/School//} | cut -d/ -f1 | wc -w | tr -d ' '
|
||||
|
@ -31,7 +31,7 @@ case $1 in
|
|||
[[ $p -eq $profilem ]] && nl="" || nl="\n"
|
||||
wofilist="${wofilist}${icons[$p]} ${profiles[$p]}${nl}"
|
||||
done
|
||||
[[ -z $1 ]] && op=$( echo -e "${wofilist}" | wofi -i --dmenu --width 250 --height 320 | awk '{print $2}' ) || op="${1}"
|
||||
[[ -z $1 ]] && op=$( echo -e "${wofilist}" | wofi -i --dmenu --width 250 --height 320 -k /dev/null | awk '{print $2}' ) || op="${1}"
|
||||
op=$(echo ${profiles[@]/$op//} | cut -d/ -f1 | wc -w | tr -d ' ')
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name')
|
||||
|
||||
current_ws="${current_ws//[[:digit:]\"]/}"
|
||||
current_ws=$(printf "%02d\n" $( echo "${current_ws}" | sed 's/:.*//' | tr -d '"'))
|
||||
|
||||
if [[ -z "${current_ws}" ]];then current_ws="Personal";fi
|
||||
current_ws=${current_ws:0:1}
|
||||
|
||||
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue