New backup 2024-04-05 14:22:58
This commit is contained in:
parent
89b9e1b71b
commit
3b16eb9e4e
3 changed files with 1 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
op=$( echo -e " Development\n School\n Work" | wofi -i --dmenu --width 250 --height 260 | awk '{print $2}' )
|
op=$( echo -e " Development\n School\n Work" | wofi -i --dmenu --width 250 --height 260 | awk '{print $2}' )
|
||||||
#--width 300 --height 150
|
|
||||||
echo "$op"
|
echo "$op"
|
||||||
|
|
||||||
case $op in
|
case $op in
|
||||||
Development|School|Work)
|
Development|School|Work)
|
||||||
# ws="$op"
|
break
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
@ -24,4 +23,3 @@ done
|
||||||
echo "new_ws: $new_ws"
|
echo "new_ws: $new_ws"
|
||||||
swaymsg workspace "${new_ws}"
|
swaymsg workspace "${new_ws}"
|
||||||
sway reload
|
sway reload
|
||||||
#swaymsg exec "MOZ_ENABLE_WAYLAND=1 flatpak run one.ablaze.floorp -P $op"
|
|
||||||
|
|
|
@ -4,12 +4,6 @@ op=$( echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 26
|
||||||
|
|
||||||
echo "$op"
|
echo "$op"
|
||||||
|
|
||||||
#case $op in
|
|
||||||
# development|school|work)
|
|
||||||
# ws="$op"
|
|
||||||
# ;;
|
|
||||||
#esac
|
|
||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
mkdir -p "$HOME/.tmp/sway-screenshot/"
|
mkdir -p "$HOME/.tmp/sway-screenshot/"
|
||||||
sway-screenshot -m $op --output-folder "$HOME/.tmp/sway-screenshot/"
|
sway-screenshot -m $op --output-folder "$HOME/.tmp/sway-screenshot/"
|
||||||
|
|
|
@ -4,8 +4,6 @@ current_ws=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true)|.name'
|
||||||
|
|
||||||
current_ws="${current_ws//[[:digit:]\"]/}"
|
current_ws="${current_ws//[[:digit:]\"]/}"
|
||||||
|
|
||||||
#echo "'${current_ws}'"
|
|
||||||
|
|
||||||
if [[ -z "${current_ws}" ]];then current_ws="Personal";fi
|
if [[ -z "${current_ws}" ]];then current_ws="Personal";fi
|
||||||
|
|
||||||
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
|
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
|
||||||
|
|
Loading…
Add table
Reference in a new issue