New backup 2024-04-29 16:47:37
This commit is contained in:
parent
e7a16b58fa
commit
be5d33b836
28 changed files with 166 additions and 0 deletions
2
de/home/.config/sway-profiles/config
Normal file
2
de/home/.config/sway-profiles/config
Normal file
|
@ -0,0 +1,2 @@
|
|||
browser_cmd="floorp -P"
|
||||
filemanager_cmd="dolphin --new-window"
|
3
de/home/.config/sway-profiles/global-shortcuts/printer
Executable file
3
de/home/.config/sway-profiles/global-shortcuts/printer
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Personal "http://printer-hp-dj3630/"
|
18
de/home/.config/sway-profiles/global-shortcuts/scrcpy
Executable file
18
de/home/.config/sway-profiles/global-shortcuts/scrcpy
Executable 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
|
36
de/home/.config/sway-profiles/global-shortcuts/weather
Executable file
36
de/home/.config/sway-profiles/global-shortcuts/weather
Executable 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}"
|
4
de/home/.config/sway-profiles/profile_list
Normal file
4
de/home/.config/sway-profiles/profile_list
Normal file
|
@ -0,0 +1,4 @@
|
|||
~ Personal
|
||||
Development
|
||||
School
|
||||
Work
|
3
de/home/.config/sway-profiles/profiles/0/shortcuts/test
Executable file
3
de/home/.config/sway-profiles/profiles/0/shortcuts/test
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
notify-send hi
|
4
de/home/.config/sway-profiles/profiles/0/vars.json
Normal file
4
de/home/.config/sway-profiles/profiles/0/vars.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[{
|
||||
"home_directory":"$HOME/Documents",
|
||||
"browser_profile":"Penelope"
|
||||
}]
|
12
de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh
Executable file
12
de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh
Executable 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"
|
15
de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation
Executable file
15
de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation
Executable 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
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e sudo su pogmom -c "ssh root@bridge-netgear-r6250"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e sudo su pogmom -c "ssh root@router-netgear-r8000"
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-7050sff
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-p95g001-debian
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
alacritty -e $(dirname $0)/.ssh_agent.sh server-hp-y2z63av
|
9
de/home/.config/sway-profiles/profiles/1/shortcuts/SSH
Executable file
9
de/home/.config/sway-profiles/profiles/1/shortcuts/SSH
Executable 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}"
|
4
de/home/.config/sway-profiles/profiles/1/vars.json
Normal file
4
de/home/.config/sway-profiles/profiles/1/vars.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[{
|
||||
"home_directory":"$HOME/Development",
|
||||
"browser_profile":"Development"
|
||||
}]
|
3
de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas
Executable file
3
de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://canvas.boisestate.edu
|
3
de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder
Executable file
3
de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
dolphin --new-window ~/Documents/School/College/BSU/2024-01SPRING/
|
3
de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU
Executable file
3
de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://my.boisestate.edu/
|
4
de/home/.config/sway-profiles/profiles/2/vars.json
Normal file
4
de/home/.config/sway-profiles/profiles/2/vars.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[{
|
||||
"home_directory":"$HOME/Documents/School/College/BSU/2024-01SPRING",
|
||||
"browser_profile":"School"
|
||||
}]
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop --private-window https://admin-e05a5b1b.duosecurity.com/
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/GMail
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/GMail
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://mail.google.com/mail/u/0/#inbox
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://boisestateoit.humanity.com/app/schedule/
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://calendar.google.com/calendar/u/0/r
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Slack
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/Slack
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-Work.desktop https://boisestateoit.slack.com/
|
3
de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU
Executable file
3
de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
gtk-launch Floorp-School.desktop https://my.boisestate.edu/
|
4
de/home/.config/sway-profiles/profiles/3/vars.json
Normal file
4
de/home/.config/sway-profiles/profiles/3/vars.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
[{
|
||||
"home_directory":"$HOME/Documents/Work",
|
||||
"browser_profile":"Work"
|
||||
}]
|
|
@ -22,3 +22,4 @@
|
|||
.local/bin/sp-screenshot
|
||||
.local/bin/sp-shortcuts
|
||||
.local/bin/sp-wallpaper
|
||||
.config/sway-profiles
|
||||
|
|
Loading…
Add table
Reference in a new issue