New backup 2024-04-29 14:33:49
This commit is contained in:
parent
17fb701f24
commit
668447701d
38 changed files with 0 additions and 460 deletions
|
@ -1,11 +0,0 @@
|
|||
#!/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_wsprofile="${profiles[${current_ws}]}"
|
||||
|
||||
gtk-launch "Floorp-${current_wsprofile}.desktop"
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cb_count=$(copyq count)
|
||||
cb_count=10
|
||||
|
||||
wofilist=""
|
||||
|
||||
for i in $(seq $cb_count);do
|
||||
cb_line="$( copyq read $((${i}-1)) | tr '\n' ' ' )"
|
||||
echo "${cb_line}"
|
||||
if [[ "${cb_line}" == "" ]];then
|
||||
cb_line=$( copyq read ? "$((${i}-1))" | head -n 1 )
|
||||
fi
|
||||
wofilist="${wofilist}${setnl}${i}. ${cb_line}"
|
||||
setnl="\n"
|
||||
done
|
||||
|
||||
selected=$( echo -e "${wofilist}" | wofi -i --dmenu -k /dev/null | cut -d. -f1)
|
||||
|
||||
copyq select "$(( ${selected}-1)) "
|
|
@ -1 +0,0 @@
|
|||
2
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#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}
|
||||
|
||||
options=$( ls "$HOME/.config/sway/scripts/global_shortcuts/" )
|
||||
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||
|
||||
"$HOME/.config/sway/scripts/global_shortcuts/${op}"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Personal "http://printer-hp-dj3630/"
|
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
#jweather=$( curl --silent wttr.in/?format=j1 )
|
||||
jweather=$( cat ~/weather.json )
|
||||
|
||||
current_f=$( jq -r '.current_condition.[].FeelsLikeF' <<< ${jweather} )
|
||||
high_f=$( jq -r '.weather.[0].maxtempF' <<< ${jweather} )
|
||||
low_f=$( jq -r '.weather.[0].mintempF' <<< ${jweather} )
|
||||
weather_desc=$( jq -r '.current_condition.[].weatherDesc.[].value' <<< ${jweather} )
|
||||
hourly_forecast=""
|
||||
daily_forecast=""
|
||||
|
||||
current_hour=$( date +'%H' )
|
||||
echo $current_hour
|
||||
|
||||
for h in {0..7};do
|
||||
check_hour=$( date -d $( jq -r --argjson h ${h} '.weather.[0].hourly.[$h].time' <<< ${jweather} ) +'%H' )
|
||||
if [[ ${check_hour#0} -ge ${current_hour#0} ]];then
|
||||
echo "future"
|
||||
hourly_forecast="${hourly_forecast}\n${check_hour}: "$( jq -r --argjson h ${h} '.weather.[0].hourly.[$h].weatherDesc.[].value' <<< ${jweather} )", "$( jq -r --argjson h ${h} '.weather.[0].hourly.[$h].FeelsLikeF' <<< ${jweather} )"°F"
|
||||
fi
|
||||
done
|
||||
|
||||
for d in {1..2};do
|
||||
echo $d
|
||||
daily_forecast="${daily_forecast}\n"$( date -d $( jq -r --argjson d ${d} '.weather.[$d].date' <<< ${jweather} ) +'%a' )": "$( jq -r --argjson d ${d} '.weather.[$d].hourly.[4].weatherDesc.[].value' <<< ${jweather} )" ("$( jq -r --argjson d ${d} '.weather.[$d].maxtempF' <<< ${jweather} )"°F/"$( jq -r --argjson d ${d} '.weather.[$d].mintempF' <<< ${jweather} )"°F)"
|
||||
done
|
||||
|
||||
hourly_forecast=$( echo -e $hourly_forecast | sed '/^[[:space:]]*$/d' )
|
||||
daily_forecast=$( echo -e $daily_forecast ) # | sed '/^[[:space:]]*$/d' )
|
||||
|
||||
echo $daily_forecast
|
||||
|
||||
notify-send "${weather_desc}, ${current_f}°F (${high_f}°F/${low_f}°F)
|
||||
${hourly_forecast}
|
||||
${daily_forecast}"
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
outputs=( $(swaymsg -t get_outputs | jq -r '.[] | {name} | "\(.name)"') )
|
||||
|
||||
for o in ${outputs[@]};do
|
||||
workspace=$(swaymsg -t get_workspaces | jq -r '.[] | select(.output) | {name} | "\(.name)"')
|
||||
wpno=$(cat "$HOME/.cache/sway-wallpaper/${o}")
|
||||
wp_path="$HOME/.config/sway/assets/wallpaper/${o}/${wpno}.jpg"
|
||||
wl_imgp="$HOME/.cache/swaylock/${o}.jpg"
|
||||
convert -scale 10% -blur 0x3 -resize 500% "${wp_path}" "${wl_imgp}"
|
||||
sl_args="${sl_args}--image ${o}:${wl_imgp} "
|
||||
done
|
||||
|
||||
echo "$sl_args"
|
||||
#exit
|
||||
|
||||
#wpno=$(printf "%02d\n" $(($(echo "${workspace}" | awk '{print $1}' | grep -o "^[1-9]*")-1)) | cut -c 1 | sed 's/[^0-9]*//g')
|
||||
#wp_path="$HOME/.config/sway/assets/wallpaper/${output}/${wpno}.jpg"
|
||||
|
||||
swaylock ${sl_args}
|
|
@ -1,19 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e "⏻ Poweroff\n Reboot\n Suspend\n🔒 Lock\n Logout" | wofi -i --dmenu -a --width 250 --height 420 | awk '{print tolower($2)}' )
|
||||
# --width 200 --height 225
|
||||
case $op in
|
||||
poweroff)
|
||||
;&
|
||||
reboot)
|
||||
;&
|
||||
suspend)
|
||||
systemctl $op
|
||||
;;
|
||||
lock)
|
||||
swaylock
|
||||
;;
|
||||
logout)
|
||||
swaymsg exit
|
||||
;;
|
||||
esac
|
|
@ -1,51 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
profiles=( "Personal" "Development" "School" "Work")
|
||||
icons=( "~" "" "" "" "a" )
|
||||
|
||||
#echo ${profiles[@]/School//} | cut -d/ -f1 | wc -w | tr -d ' '
|
||||
profilem=$((${#profiles[@]}-1))
|
||||
|
||||
#echo ${#profiles[@]}
|
||||
|
||||
#exit
|
||||
|
||||
case $1 in
|
||||
next|prev)
|
||||
current_profile=$(cat "$(dirname $0)/data/active_profile")
|
||||
echo ${current_profile}
|
||||
;;&
|
||||
next)
|
||||
new_profile=$(( ${current_profile}+1 ))
|
||||
[[ "$new_profile" -eq "${#profiles[@]}" ]] && new_profile=0
|
||||
;;&
|
||||
prev)
|
||||
new_profile=$(( ${current_profile}-1 ))
|
||||
[[ "$new_profile" -eq "-1" ]] && new_profile=3
|
||||
;;&
|
||||
prev|next)
|
||||
op=$(printf "%01d\n" ${new_profile})
|
||||
;;
|
||||
*)
|
||||
for (( p="0"; p<=${profilem}; p++ ));do
|
||||
[[ $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 -k /dev/null | awk '{print $2}' ) || op="${1}"
|
||||
op=$(echo ${profiles[@]/$op//} | cut -d/ -f1 | wc -w | tr -d ' ')
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ "$op" -gt "$profilem" ]] && exit
|
||||
[[ $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
|
||||
swaymsg 'bindsym $mod+'"$k"' workspace number "'"${p_num}${i}:${p_icon}"'"'
|
||||
swaymsg 'bindsym $mod+Shift+'"$k"' move container to workspace number "'"${p_num}${i}:${p_icon}"'"'
|
||||
done
|
||||
|
||||
moveto="${p_num}1:${p_icon}"
|
||||
swaymsg 'workspace number "'"${p_num}"'"1:"'"${p_icon}"'"'
|
||||
echo "${op}" > "$(dirname $0)/data/active_profile"
|
|
@ -1,51 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
profiles=( "Personal" "Development" "School" "Work")
|
||||
icons=( "~" "" "" "" "a" )
|
||||
|
||||
#echo ${profiles[@]/School//} | cut -d/ -f1 | wc -w | tr -d ' '
|
||||
profilem=$((${#profiles[@]}-1))
|
||||
|
||||
#echo ${#profiles[@]}
|
||||
|
||||
#exit
|
||||
|
||||
case $1 in
|
||||
next|prev)
|
||||
current_profile=$(cat "$(dirname $0)/data/active_profile")
|
||||
echo ${current_profile}
|
||||
;;&
|
||||
next)
|
||||
new_profile=$(( ${current_profile}+1 ))
|
||||
[[ "$new_profile" -eq "${#profiles[@]}" ]] && new_profile=0
|
||||
;;&
|
||||
prev)
|
||||
new_profile=$(( ${current_profile}-1 ))
|
||||
[[ "$new_profile" -eq "-1" ]] && new_profile=3
|
||||
;;&
|
||||
prev|next)
|
||||
op=$(printf "%01d\n" ${new_profile})
|
||||
;;
|
||||
*)
|
||||
for (( p="0"; p<=${profilem}; p++ ));do
|
||||
[[ $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 -k /dev/null | awk '{print $2}' ) || op="${1}"
|
||||
op=$(echo ${profiles[@]/$op//} | cut -d/ -f1 | wc -w | tr -d ' ')
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ "$op" -gt "$profilem" ]] && exit
|
||||
[[ $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
|
||||
swaymsg 'bindsym $mod+'"$k"' workspace number "'"${p_num}${i}:${p_icon}"'"'
|
||||
swaymsg 'bindsym $mod+Shift'"$k"' move container to workspace number "'"${p_num}${i}:${p_icon}"'"'
|
||||
done
|
||||
|
||||
moveto="${p_num}1:${p_icon}"
|
||||
swaymsg 'workspace number "'"${p_num}"'"1:"'"${p_icon}"'"'
|
||||
echo "${op}" > "$(dirname $0)/data/active_profile"
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e "Output\nWindow\nRegion" | wofi -i --dmenu --width 250 --height 260 | awk '{print tolower($1)}' )
|
||||
|
||||
echo "$op"
|
||||
|
||||
sleep 0.5
|
||||
mkdir -p "$HOME/.tmp/sway-screenshot/"
|
||||
sway-screenshot -m $op --output-folder "$HOME/.tmp/sway-screenshot/"
|
||||
mv "$HOME/.tmp/sway-screenshot/"* "$HOME/Pictures/Screen Capture"
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
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}
|
||||
|
||||
options=$( ls "$HOME/.config/sway/scripts/shortcuts/${current_ws}" )
|
||||
|
||||
op=$( echo -e "${options}" | wofi -w 2 -i --dmenu | awk '{print}' )
|
||||
|
||||
"$HOME/.config/sway/scripts/shortcuts/${current_ws}"/"${op}"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
curl https://internalhome.pogmom.me/api/webhook/-LrXptzYs8v8hXckIJv16JNUF
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Personal.desktop
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
script_dir=$(dirname "${0}")
|
||||
|
||||
options=$( ls ${script_dir}"/.Home Assistant/" )
|
||||
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||
|
||||
"$(dirname $0)/.Home Assistant/${op}"
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo su pogmom -c ' \
|
||||
shopt -s checkwinsize; \
|
||||
eval $(ssh-agent); \
|
||||
for file in $(find ~/.ssh/ -type f -name "id*" -not -name "*.*") ; do \
|
||||
if [ -f "$file" ] ; then \
|
||||
ssh-add "$file"; \
|
||||
fi;\
|
||||
done;\
|
||||
clear;\
|
||||
ssh -A '"$1"
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
current_hostname=$(hostname)
|
||||
|
||||
case $current_hostname in
|
||||
"pogmommy-apple-a2337")
|
||||
alacritty -e ssh -A pogmommy-omen-328p1aa
|
||||
;;
|
||||
"pogmommy-omen-328p1aa")
|
||||
alacritty -e ssh -A pogmommy-apple-a2337
|
||||
;;
|
||||
*)
|
||||
# Code to execute if expression does not match any of the above patterns
|
||||
;;
|
||||
esac
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e sudo su pogmom -c "ssh root@bridge-netgear-r6250"
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e sudo su pogmom -c "ssh root@router-netgear-r8000"
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-7050sff
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-p95g001-debian
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-hp-y2z63av
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Development.desktop
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
dirname $0
|
||||
|
||||
options=$( ls "$(dirname $0)/.SSH/" )
|
||||
|
||||
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
|
||||
|
||||
"$(dirname $0)/.SSH/${op}"
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://canvas.boisestate.edu
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
dolphin --new-window ~/Documents/School/College/BSU/2024-01SPRING/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://my.boisestate.edu/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop --private-window https://admin-e05a5b1b.duosecurity.com/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://mail.google.com/mail/u/0/#inbox
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://boisestateoit.humanity.com/app/schedule/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://calendar.google.com/calendar/u/0/r
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://boisestateoit.slack.com/
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://my.boisestate.edu/
|
|
@ -1,57 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
getpids() {
|
||||
pids=( $(pgrep swaybg) )
|
||||
}
|
||||
|
||||
killpids() {
|
||||
# sleep 5
|
||||
for i in ${pids[@]};do
|
||||
# kill "${i}" && echo "killed ${i}"
|
||||
echo "${pids[@]}"
|
||||
done
|
||||
}
|
||||
|
||||
getwpno() {
|
||||
# wpno_last="${wpno}"
|
||||
wpno=$(printf "%02d\n" $(($(echo "$1" | awk '{print $1}' | grep -o "^[1-9]*")-1)) | cut -c 1 | sed 's/[^0-9]*//g')
|
||||
echo "${wpno}" | tee "$HOME/.cache/sway-wallpaper/${2}"
|
||||
}
|
||||
|
||||
setbg() {
|
||||
# swaybg -i "$HOME/.config/sway/assets/wallpaper/${output}/${wpno}.jpg" -o "${output}" &
|
||||
for d in ${outputs[@]};do
|
||||
d_wpno=$(cat "$HOME/.cache/sway-wallpaper/${d}")
|
||||
# echo "hi ${d}"
|
||||
swaymsg output "${d}" bg "$HOME/.config/sway/assets/wallpaper/${d}/${d_wpno}.jpg" fill
|
||||
# swaybg -i "$HOME/.config/sway/assets/wallpaper/${output}/${wpno}.jpg" -o "${output}"
|
||||
done
|
||||
}
|
||||
|
||||
#wpno_last="9"
|
||||
|
||||
getpids
|
||||
|
||||
output=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | {name} | "\(.name)"')
|
||||
outputs=( $(swaymsg -t get_outputs | jq -r '.[] | {name} | "\(.name)"') )
|
||||
workspace=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused) | {name} | "\(.name)"')
|
||||
getwpno "${workspace}" "${output}"
|
||||
setbg "${output}" "${wpno}"
|
||||
|
||||
killpids
|
||||
|
||||
swaymsg -r -t subscribe -m '["workspace"]' | jq -rc --unbuffered 'select(.change == "focus") | .current | "\(.name) \(.output)"' | while read name output;do
|
||||
wsno=$(($(echo "$name" | awk '{print $1}' | grep -o "^[1-9]*")-1))
|
||||
echo $name
|
||||
echo $output
|
||||
getpids
|
||||
wpno_last=$(cat "$HOME/.cache/sway-wallpaper/${output}")
|
||||
getwpno "${name}" "${output}"
|
||||
echo "${wpno_last}"
|
||||
|
||||
if [[ "${wpno}" -ne "${wpno_last}" ]];then
|
||||
echo "hi"
|
||||
setbg "${output}" "${wpno}"
|
||||
killpids
|
||||
fi
|
||||
done
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
output=$(swaymsg -t get_outputs | jq -r '.[] | {name} | "\(.name)"')
|
||||
wsno=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused) | {name} | "\(.name)"' | awk '{print $1}' | grep -o "^[1-9]*")
|
||||
wpid=$(($(printf "%02d\n" $wsno)-1))
|
||||
wpid=$(echo "${wpid:0:1}")
|
||||
swaybg -i "$HOME/.config/sway/assets/wallpaper/${output}/${wpid}.jpg" -o "${output}" &
|
||||
bgpid=$!
|
||||
|
||||
swaymsg -r -t subscribe -m '["workspace"]' | jq -rc --unbuffered 'select(.change == "focus") | .current | "\(.name) \(.output)"' | while read name output;do
|
||||
wsno=$(($(echo "$name" | awk '{print $1}' | grep -o "^[1-9]*")-1))
|
||||
wpid=$(printf "%02d\n" $wsno | cut -c 1)
|
||||
# wpid=$(echo "${wpid:0:1}")
|
||||
echo $wpid
|
||||
echo $output
|
||||
# if ((1<=$wsno && $wsno<=10))
|
||||
# then
|
||||
# echo "480p"
|
||||
# elif ((11<=X && X<=20))
|
||||
# then
|
||||
# echo "720p"
|
||||
# elif ((21<=X && X<=30))
|
||||
# then
|
||||
# echo "1080p"
|
||||
# elif ((31<=$wsno && $wsno<= ))
|
||||
# echo "DVD"
|
||||
# fi
|
||||
echo "$HOME/.config/sway/assets/wallpaper/${output}/${wpid}.jpg"
|
||||
old_bgpid=$bgpid
|
||||
swaybg -i "$HOME/.config/sway/assets/wallpaper/${output}/${wpid}.jpg" -o "${output}" &
|
||||
bgpid=$!
|
||||
# bash -c "sleep 0.5;kill $old_bgpid" &
|
||||
# sleep 0.2
|
||||
kill $old_bgpid & echo "killing $old_bgpid"
|
||||
done
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
active_wsname=$(swaymsg -t get_workspaces | jq '.[] | select(.focused==true) | .name')
|
||||
echo $active_wsname
|
||||
ws_prefix=$(echo $active_wsname | tr -d '"' | grep -o "[0-9]*:[^a-zA-Z1-9]")
|
||||
wsname=$(echo "${active_wsname}" | sed 's/'"${ws_prefix}"'//'| tr -d '"')
|
||||
|
||||
echo $ws_prefix
|
||||
echo $wsname
|
||||
|
||||
new_wsname="${ws_prefix}$(wofi -i --dmenu --height 1 --search ${wsname})"
|
||||
|
||||
swaymsg 'rename workspace "'"${active_wsname}"'" to "'"${new_wsname}"'"'
|
Loading…
Add table
Reference in a new issue