diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-05-24 04:08:28 -0500 |
| commit | e966d5328d6f328546db213278d1a1a6cd2f58d5 (patch) | |
| tree | f0d41635190d29623920fdf4732cea7a006632d2 /stuff/scripts/system/stbar | |
| parent | 5010e575335939597b05f8d58bdf205c693a8004 (diff) | |
install scripts. reorganization. soon to be deployable
Diffstat (limited to 'stuff/scripts/system/stbar')
| -rw-r--r-- | stuff/scripts/system/stbar/config.txt | 1 | ||||
| -rwxr-xr-x | stuff/scripts/system/stbar/killbar.sh | 10 | ||||
| -rwxr-xr-x | stuff/scripts/system/stbar/stbar-awesome.sh | 87 | ||||
| -rwxr-xr-x | stuff/scripts/system/stbar/stbar.sh | 84 | ||||
| -rwxr-xr-x | stuff/scripts/system/stbar/weth_str.txt | 0 |
5 files changed, 0 insertions, 182 deletions
diff --git a/stuff/scripts/system/stbar/config.txt b/stuff/scripts/system/stbar/config.txt deleted file mode 100644 index 87af9d5..0000000 --- a/stuff/scripts/system/stbar/config.txt +++ /dev/null @@ -1 +0,0 @@ -full_stat:false diff --git a/stuff/scripts/system/stbar/killbar.sh b/stuff/scripts/system/stbar/killbar.sh deleted file mode 100755 index 7e76af2..0000000 --- a/stuff/scripts/system/stbar/killbar.sh +++ /dev/null @@ -1,10 +0,0 @@ -pids=$(ps -AO pid | awk '/stbar.sh|newsboat-fetch.sh/ {print $1}') -# pids=$(pstree -pla | grep stbar | sed 's,|,,g' | sed 's/ //g' | sed 's/^ //g' | sed 's/ .*//' | sed 's/[^0-9]*//g') -# pids2=$(ps -AO pid | grep "sh ./newsboat-fetch.sh" | sed 's/S.*//g' | sed 's/^ *//g') - - -echo $pids -$(sleep 3 && xsetroot -name "") & disown - -sudo kill -KILL $pids -doas kill -KILL $pids diff --git a/stuff/scripts/system/stbar/stbar-awesome.sh b/stuff/scripts/system/stbar/stbar-awesome.sh deleted file mode 100755 index ef9ecca..0000000 --- a/stuff/scripts/system/stbar/stbar-awesome.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash -delim='|' - -curr_dir="$(cd "$(dirname "$0")" && pwd)" -#wifi_device=$(cat $curr_dir/config.txt | grep wifi_device | sed 's/wifi_device://') -wifi_device="wlan0" -# curr_dir/check_weth.sh "$cur_dir" & - - - -status(){ - -echo " " - -#wifi up or no -sed "s/down/\:\(/;s/up/\:\)/" /sys/class/net/$wifi_device/operstate - -echo "$delim" - -if [ "$(ls /sys/class/power_supply/BAT0/)" ]; then - bat_power=$(cat /sys/class/power_supply/BAT0/capacity) - - echo $bat_is_flash - if (( $bat_power < 15 )); then - bat_power=$bat_power%!!!!!!!!!!! - else - bat_power=$bat_power% - fi - - echo $bat_power - - echo "$delim" -fi - -#mic - -[ "$(pactl get-source-mute @DEFAULT_SOURCE@)" == "Mute: no" ] && echo || echo - -echo "$delim" - -#rss - -echo $(newsboat -x print-unread|sed "s/\s.*//; s/Error:/IA/") - -echo "$delim" - -if [ "$(cat $curr_dir/config.txt | grep full_stat)" == "full_stat:true" ]; then - #cpu - echo $(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q")% - - echo "$delim" - - #mem - echo $(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//") - echo $(ps axch -o cmd:15,%mem --sort=-%mem | sed "1q")% - -else - #cpu - echo $(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q" | sed 's/.* //')% - - #mem - echo $(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//") - -fi -echo "$delim" - -#space -#echo \/$(df -h | grep /dev/nvme0n1p3 | sed "s/\/dev\/nvme0n1p3 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//") - -#echo \~$(df -h | grep /dev/nvme0n1p4 | sed "s/\/dev\/nvme0n1p4 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//") -echo $(df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g') - -echo "$delim" - -#weather - -if [ "$(cat $curr_dir/weth_str.txt)" != "" ]; then - printf "$(cat $curr_dir/weth_str.txt)" - echo "$delim" -fi - -} - -#while :; do - echo "$(status | tr '\n' ' '0)" -# sleep 1s -#end diff --git a/stuff/scripts/system/stbar/stbar.sh b/stuff/scripts/system/stbar/stbar.sh deleted file mode 100755 index 6ca704d..0000000 --- a/stuff/scripts/system/stbar/stbar.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/bash -delim='|' - -curr_dir="$(cd "$(dirname "$0")" && pwd)" -wifi_device=$(cat $curr_dir/config.txt | grep wifi_device | sed 's/wifi_device://') -# curr_dir/check_weth.sh "$cur_dir" & - - - -status(){ - -echo " " - -#wifi up or no -sed "s/down/\:\(/;s/up/\:\)/" /sys/class/net/$wifi_device/operstate - -echo "$delim" - -#bat -bat_power=$(cat /sys/class/power_supply/BAT0/capacity) - -echo $bat_is_flash -if (( $bat_power < 15 )); then - bat_power=$bat_power%!!!!!!!!!!! -else - bat_power=$bat_power% -fi - -echo $bat_power - -echo "$delim" - -#rss - -echo RSS:$(newsboat -x print-unread|sed "s/\s.*//; s/Error:/IA/") - -echo "$delim" - -if [ "$(cat $curr_dir/config.txt | grep full_stat)" == "full_stat:true" ]; then - #cpu - echo CPU:$(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q")% - - echo "$delim" - - #mem - echo Mem:$(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//") - echo $(ps axch -o cmd:15,%mem --sort=-%mem | sed "1q")% - -else - #cpu - echo CPU:$(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q" | sed 's/.* //')% - - #mem - echo Mem:$(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//") - -fi -echo "$delim" - -#space -echo \/$(df -h | grep /dev/nvme0n1p3 | sed "s/\/dev\/nvme0n1p3 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//") - -echo \~$(df -h | grep /dev/nvme0n1p4 | sed "s/\/dev\/nvme0n1p4 *[0-9]*.[0-9]*. *[0-9]*.[0-9]*. *//" | sed "s/ .*//") - -echo "$delim" - -#weather - -if [ "$(cat $curr_dir/weth_str.txt)" != "" ]; then - printf "$(cat $curr_dir/weth_str.txt)" - echo "$delim" -fi - - -#date -date '+%a %m/%d/%Y %I:%M%p' - -} - - -while :; do - xsetroot -name "$(status | tr '\n' ' '0)" - sleep 1s -done - diff --git a/stuff/scripts/system/stbar/weth_str.txt b/stuff/scripts/system/stbar/weth_str.txt deleted file mode 100755 index e69de29..0000000 --- a/stuff/scripts/system/stbar/weth_str.txt +++ /dev/null |
