From be5d33b836f39734950f540d0ced8edad808719a Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Mon, 29 Apr 2024 16:47:37 -0600 Subject: [PATCH] New backup 2024-04-29 16:47:37 --- de/home/.config/sway-profiles/config | 2 ++ .../sway-profiles/global-shortcuts/printer | 3 ++ .../sway-profiles/global-shortcuts/scrcpy | 18 ++++++++++ .../sway-profiles/global-shortcuts/weather | 36 +++++++++++++++++++ de/home/.config/sway-profiles/profile_list | 4 +++ .../sway-profiles/profiles/0/shortcuts/test | 3 ++ .../sway-profiles/profiles/0/vars.json | 4 +++ .../profiles/1/shortcuts/.SSH/.ssh_agent.sh | 12 +++++++ .../1/shortcuts/.SSH/Swap Workstation | 15 ++++++++ .../1/shortcuts/.SSH/bridge-netgear-r6250 | 4 +++ .../1/shortcuts/.SSH/router-netgear-r8000 | 4 +++ .../1/shortcuts/.SSH/server-dell-7050sff | 4 +++ .../shortcuts/.SSH/server-dell-p95g001-debian | 4 +++ .../1/shortcuts/.SSH/server-hp-y2z63av | 4 +++ .../sway-profiles/profiles/1/shortcuts/SSH | 9 +++++ .../sway-profiles/profiles/1/vars.json | 4 +++ .../sway-profiles/profiles/2/shortcuts/Canvas | 3 ++ .../profiles/2/shortcuts/Open Folder | 3 ++ .../sway-profiles/profiles/2/shortcuts/myBSU | 3 ++ .../sway-profiles/profiles/2/vars.json | 4 +++ .../profiles/3/shortcuts/Duo Admin | 3 ++ .../sway-profiles/profiles/3/shortcuts/GMail | 3 ++ .../profiles/3/shortcuts/Humanity | 3 ++ .../profiles/3/shortcuts/Schedule | 3 ++ .../sway-profiles/profiles/3/shortcuts/Slack | 3 ++ .../sway-profiles/profiles/3/shortcuts/myBSU | 3 ++ .../sway-profiles/profiles/3/vars.json | 4 +++ de/include | 1 + 28 files changed, 166 insertions(+) create mode 100644 de/home/.config/sway-profiles/config create mode 100755 de/home/.config/sway-profiles/global-shortcuts/printer create mode 100755 de/home/.config/sway-profiles/global-shortcuts/scrcpy create mode 100755 de/home/.config/sway-profiles/global-shortcuts/weather create mode 100644 de/home/.config/sway-profiles/profile_list create mode 100755 de/home/.config/sway-profiles/profiles/0/shortcuts/test create mode 100644 de/home/.config/sway-profiles/profiles/0/vars.json create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/bridge-netgear-r6250 create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/router-netgear-r8000 create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-7050sff create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-p95g001-debian create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-hp-y2z63av create mode 100755 de/home/.config/sway-profiles/profiles/1/shortcuts/SSH create mode 100644 de/home/.config/sway-profiles/profiles/1/vars.json create mode 100755 de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas create mode 100755 de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder create mode 100755 de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU create mode 100644 de/home/.config/sway-profiles/profiles/2/vars.json create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/GMail create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/Slack create mode 100755 de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU create mode 100644 de/home/.config/sway-profiles/profiles/3/vars.json diff --git a/de/home/.config/sway-profiles/config b/de/home/.config/sway-profiles/config new file mode 100644 index 0000000..74f2ab6 --- /dev/null +++ b/de/home/.config/sway-profiles/config @@ -0,0 +1,2 @@ +browser_cmd="floorp -P" +filemanager_cmd="dolphin --new-window" diff --git a/de/home/.config/sway-profiles/global-shortcuts/printer b/de/home/.config/sway-profiles/global-shortcuts/printer new file mode 100755 index 0000000..34e2de8 --- /dev/null +++ b/de/home/.config/sway-profiles/global-shortcuts/printer @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Personal "http://printer-hp-dj3630/" diff --git a/de/home/.config/sway-profiles/global-shortcuts/scrcpy b/de/home/.config/sway-profiles/global-shortcuts/scrcpy new file mode 100755 index 0000000..e846789 --- /dev/null +++ b/de/home/.config/sway-profiles/global-shortcuts/scrcpy @@ -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 diff --git a/de/home/.config/sway-profiles/global-shortcuts/weather b/de/home/.config/sway-profiles/global-shortcuts/weather new file mode 100755 index 0000000..894e4dc --- /dev/null +++ b/de/home/.config/sway-profiles/global-shortcuts/weather @@ -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}" diff --git a/de/home/.config/sway-profiles/profile_list b/de/home/.config/sway-profiles/profile_list new file mode 100644 index 0000000..83e8c7a --- /dev/null +++ b/de/home/.config/sway-profiles/profile_list @@ -0,0 +1,4 @@ +~ Personal + Development + School + Work diff --git a/de/home/.config/sway-profiles/profiles/0/shortcuts/test b/de/home/.config/sway-profiles/profiles/0/shortcuts/test new file mode 100755 index 0000000..a952dd3 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/0/shortcuts/test @@ -0,0 +1,3 @@ +#!/bin/bash + +notify-send hi diff --git a/de/home/.config/sway-profiles/profiles/0/vars.json b/de/home/.config/sway-profiles/profiles/0/vars.json new file mode 100644 index 0000000..9539a35 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/0/vars.json @@ -0,0 +1,4 @@ +[{ + "home_directory":"$HOME/Documents", + "browser_profile":"Penelope" +}] diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh new file mode 100755 index 0000000..a126811 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/.ssh_agent.sh @@ -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" diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation new file mode 100755 index 0000000..0004559 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/Swap Workstation @@ -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 diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/bridge-netgear-r6250 b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/bridge-netgear-r6250 new file mode 100755 index 0000000..15cb9e3 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/bridge-netgear-r6250 @@ -0,0 +1,4 @@ +#!/bin/bash + + +alacritty -e sudo su pogmom -c "ssh root@bridge-netgear-r6250" diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/router-netgear-r8000 b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/router-netgear-r8000 new file mode 100755 index 0000000..3b78a45 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/router-netgear-r8000 @@ -0,0 +1,4 @@ +#!/bin/bash + + +alacritty -e sudo su pogmom -c "ssh root@router-netgear-r8000" diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-7050sff b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-7050sff new file mode 100755 index 0000000..4b4119e --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-7050sff @@ -0,0 +1,4 @@ +#!/bin/bash + + +alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-7050sff diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-p95g001-debian b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-p95g001-debian new file mode 100755 index 0000000..75ac036 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-dell-p95g001-debian @@ -0,0 +1,4 @@ +#!/bin/bash + + +alacritty -e $(dirname $0)/.ssh_agent.sh server-dell-p95g001-debian diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-hp-y2z63av b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-hp-y2z63av new file mode 100755 index 0000000..2d1178a --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/.SSH/server-hp-y2z63av @@ -0,0 +1,4 @@ +#!/bin/bash + + +alacritty -e $(dirname $0)/.ssh_agent.sh server-hp-y2z63av diff --git a/de/home/.config/sway-profiles/profiles/1/shortcuts/SSH b/de/home/.config/sway-profiles/profiles/1/shortcuts/SSH new file mode 100755 index 0000000..5709ef6 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/shortcuts/SSH @@ -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}" diff --git a/de/home/.config/sway-profiles/profiles/1/vars.json b/de/home/.config/sway-profiles/profiles/1/vars.json new file mode 100644 index 0000000..c00c234 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/1/vars.json @@ -0,0 +1,4 @@ +[{ + "home_directory":"$HOME/Development", + "browser_profile":"Development" +}] diff --git a/de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas b/de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas new file mode 100755 index 0000000..072fd85 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/2/shortcuts/Canvas @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-School.desktop https://canvas.boisestate.edu diff --git a/de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder b/de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder new file mode 100755 index 0000000..a464f8e --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/2/shortcuts/Open Folder @@ -0,0 +1,3 @@ +#!/bin/bash + +dolphin --new-window ~/Documents/School/College/BSU/2024-01SPRING/ diff --git a/de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU b/de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU new file mode 100755 index 0000000..1d643ea --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/2/shortcuts/myBSU @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-School.desktop https://my.boisestate.edu/ diff --git a/de/home/.config/sway-profiles/profiles/2/vars.json b/de/home/.config/sway-profiles/profiles/2/vars.json new file mode 100644 index 0000000..c9f50ca --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/2/vars.json @@ -0,0 +1,4 @@ +[{ + "home_directory":"$HOME/Documents/School/College/BSU/2024-01SPRING", + "browser_profile":"School" +}] diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin b/de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin new file mode 100755 index 0000000..e96ae06 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/Duo Admin @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Work.desktop --private-window https://admin-e05a5b1b.duosecurity.com/ diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/GMail b/de/home/.config/sway-profiles/profiles/3/shortcuts/GMail new file mode 100755 index 0000000..848f1f2 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/GMail @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Work.desktop https://mail.google.com/mail/u/0/#inbox diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity b/de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity new file mode 100755 index 0000000..9e37c81 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/Humanity @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Work.desktop https://boisestateoit.humanity.com/app/schedule/ diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule b/de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule new file mode 100755 index 0000000..19e47d7 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/Schedule @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Work.desktop https://calendar.google.com/calendar/u/0/r diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/Slack b/de/home/.config/sway-profiles/profiles/3/shortcuts/Slack new file mode 100755 index 0000000..ba100f6 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/Slack @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-Work.desktop https://boisestateoit.slack.com/ diff --git a/de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU b/de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU new file mode 100755 index 0000000..1d643ea --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/shortcuts/myBSU @@ -0,0 +1,3 @@ +#!/bin/bash + +gtk-launch Floorp-School.desktop https://my.boisestate.edu/ diff --git a/de/home/.config/sway-profiles/profiles/3/vars.json b/de/home/.config/sway-profiles/profiles/3/vars.json new file mode 100644 index 0000000..fed63d4 --- /dev/null +++ b/de/home/.config/sway-profiles/profiles/3/vars.json @@ -0,0 +1,4 @@ +[{ + "home_directory":"$HOME/Documents/Work", + "browser_profile":"Work" +}] diff --git a/de/include b/de/include index 5a558e2..b0be6f4 100644 --- a/de/include +++ b/de/include @@ -22,3 +22,4 @@ .local/bin/sp-screenshot .local/bin/sp-shortcuts .local/bin/sp-wallpaper +.config/sway-profiles