New backup 2024-04-29 16:47:37

This commit is contained in:
Penelope Gwen 2024-04-29 16:47:37 -06:00
parent e7a16b58fa
commit be5d33b836
28 changed files with 166 additions and 0 deletions

View file

@ -0,0 +1,2 @@
browser_cmd="floorp -P"
filemanager_cmd="dolphin --new-window"

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Personal "http://printer-hp-dj3630/"

View file

@ -0,0 +1,18 @@
#!/bin/bash
if lsusb | grep -q "04e8:68"
then
scrcpy -dwS
else
if ping -c 1 pogmommy-samsung-a54 &> /dev/null
then
scrcpy -wS --tcpip=pogmommy-samsung-a54
else
if ping -c 1 10.6.0.103 &> /dev/null
then
scrcpy -wS --tcpip=10.6.0.103
else
notify-send "phone not found"
fi
fi
fi

View file

@ -0,0 +1,36 @@
#!/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}"

View file

@ -0,0 +1,4 @@
~ Personal
 Development
 School
 Work

View file

@ -0,0 +1,3 @@
#!/bin/bash
notify-send hi

View file

@ -0,0 +1,4 @@
[{
"home_directory":"$HOME/Documents",
"browser_profile":"Penelope"
}]

View file

@ -0,0 +1,12 @@
#!/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"

View file

@ -0,0 +1,15 @@
#!/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

View file

@ -0,0 +1,4 @@
#!/bin/bash
alacritty -e sudo su pogmom -c "ssh root@bridge-netgear-r6250"

View file

@ -0,0 +1,4 @@
#!/bin/bash
alacritty -e sudo su pogmom -c "ssh root@router-netgear-r8000"

View file

@ -0,0 +1,4 @@
#!/bin/bash
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-7050sff

View file

@ -0,0 +1,4 @@
#!/bin/bash
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-p95g001-debian

View file

@ -0,0 +1,4 @@
#!/bin/bash
alacritty -e $(dirname $0)/.ssh_agent.sh server-hp-y2z63av

View file

@ -0,0 +1,9 @@
#!/bin/bash
dirname $0
options=$( ls "$(dirname $0)/.SSH/" )
op=$( echo -e "${options}" | wofi -i --dmenu | awk '{print}' )
"$(dirname $0)/.SSH/${op}"

View file

@ -0,0 +1,4 @@
[{
"home_directory":"$HOME/Development",
"browser_profile":"Development"
}]

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-School.desktop https://canvas.boisestate.edu

View file

@ -0,0 +1,3 @@
#!/bin/bash
dolphin --new-window ~/Documents/School/College/BSU/2024-01SPRING/

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-School.desktop https://my.boisestate.edu/

View file

@ -0,0 +1,4 @@
[{
"home_directory":"$HOME/Documents/School/College/BSU/2024-01SPRING",
"browser_profile":"School"
}]

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Work.desktop --private-window https://admin-e05a5b1b.duosecurity.com/

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Work.desktop https://mail.google.com/mail/u/0/#inbox

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Work.desktop https://boisestateoit.humanity.com/app/schedule/

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Work.desktop https://calendar.google.com/calendar/u/0/r

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-Work.desktop https://boisestateoit.slack.com/

View file

@ -0,0 +1,3 @@
#!/bin/bash
gtk-launch Floorp-School.desktop https://my.boisestate.edu/

View file

@ -0,0 +1,4 @@
[{
"home_directory":"$HOME/Documents/Work",
"browser_profile":"Work"
}]

View file

@ -22,3 +22,4 @@
.local/bin/sp-screenshot
.local/bin/sp-shortcuts
.local/bin/sp-wallpaper
.config/sway-profiles