aboutsummaryrefslogtreecommitdiff
path: root/stuff/scripts
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2025-05-24 04:08:28 -0500
committericeyrazor <iceyrazor@mailfence.com>2025-05-24 04:08:28 -0500
commite966d5328d6f328546db213278d1a1a6cd2f58d5 (patch)
treef0d41635190d29623920fdf4732cea7a006632d2 /stuff/scripts
parent5010e575335939597b05f8d58bdf205c693a8004 (diff)
install scripts. reorganization. soon to be deployable
Diffstat (limited to 'stuff/scripts')
-rwxr-xr-xstuff/scripts/system/backup/backup.sh31
-rwxr-xr-xstuff/scripts/system/backup/copy-to-git.sh21
-rwxr-xr-xstuff/scripts/system/bri.sh1
-rwxr-xr-xstuff/scripts/system/math.sh13
-rwxr-xr-xstuff/scripts/system/neoboot.sh36
-rwxr-xr-xstuff/scripts/system/restart-pipe.sh1
-rwxr-xr-xstuff/scripts/system/set-pri-java.sh1
-rw-r--r--stuff/scripts/system/stbar/config.txt1
-rwxr-xr-xstuff/scripts/system/stbar/killbar.sh10
-rwxr-xr-xstuff/scripts/system/stbar/stbar-awesome.sh87
-rwxr-xr-xstuff/scripts/system/stbar/stbar.sh84
-rwxr-xr-xstuff/scripts/system/stbar/weth_str.txt0
-rwxr-xr-xstuff/scripts/system/url-handler.sh22
13 files changed, 0 insertions, 308 deletions
diff --git a/stuff/scripts/system/backup/backup.sh b/stuff/scripts/system/backup/backup.sh
deleted file mode 100755
index 1981ff4..0000000
--- a/stuff/scripts/system/backup/backup.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-cd ~/
-
-fsynca () {
- # t?
- rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target"
-}
-
-fsyncb () {
- printf "===confirm changes?\n"
- read -p "y/n: " uinput
- if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
- printf "\n\n\n"
- rsync -RUurv --progress --size-only --delete-after $exclude $syncfile "$target"
- printf "\n===end sync\n---------\n\n"
- fi
-}
-
-syncfile="stuff .bash_profile .bashrc .surf/styles .gtkrc-2.0 .urlview .vimrc .xinitrc .Xresources .zshrc .p10k.zsh .gnupg .ssh .local/bin/lf-gadgets .config/dwm .config/wezterm .config/.profile .config/tmux .config/wireplumber .config/FreeTube .config/awesome .config/wlxoverlay .config/newsboat .config/vesktop/themes .config/fastfetch .config/gtk-3.0 .config/rofi .config/lf .config/mutt .config/zsh .config/picom.conf .config/nvim .config/atuin .config/screenkey.json .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .config/hypr .config/waybar .local/share/applications/custom .local/share/osu"
-
-# se shit
-syncfile="$syncfile /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Blueprints /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/IngameScripts /home/iceyrazor/.local/share/Steam/steamapps/compatdata/244850/pfx/drive_c/users/steamuser/AppData/Roaming/SpaceEngineers/Saves"
-
-target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor"
-exclude="--exclude node_modules --exclude node_modules_23 --exclude dontsync --exclude **/iceys-linux-stuffs --exclude **/target --exclude LinVAM/pyenv"
-
-fsynca
-
-printf "==CC-survival unsynced?\n\n"
-printf "==osu unsynced\n\n"
-
-fsyncb
diff --git a/stuff/scripts/system/backup/copy-to-git.sh b/stuff/scripts/system/backup/copy-to-git.sh
deleted file mode 100755
index 212abda..0000000
--- a/stuff/scripts/system/backup/copy-to-git.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-cd ~/
-
-fsync () {
- rsync -RUurvn --delete-after $exclude $syncfile "$target"
- printf "===commit these changes?\n"
- read -p "y/n: " uinput
- if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then
- printf "\n\n\n"
- rsync -RUurv --progress --delete-after $exclude $syncfile "$target"
- printf "\n===end sync\n---------\n\n"
- fi
-}
-
-syncfile=".urlview .vimrc .Xresources .bashrc .zshrc .p10k.zsh .config/.profile .config/wezterm .config/dwm .config/tmux .config/awesome .config/rofi .config/lf .config/cava .config/hypr .config/waybar .config/picom.conf .config/nvim .config/atuin .config/screenkey.json .config/fastfetch stuff/manual-programs/suckless"
-
-syncfile="$syncfile stuff/scripts/system/stbar stuff/scripts/system/url-handler.sh stuff/scripts/system/backup/copy-to-git.sh stuff/scripts/system/backup/backup.sh"
-syncfile="$syncfile stuff/scripts/system/neoboot.sh stuff/scripts/system/math.sh stuff/scripts/system/bri.sh stuff/scripts/system/restart-pipe.sh stuff/scripts/system/set-pri-java.sh"
-target=~/stuff/iceys-linux-stuffs
-exclude="--exclude check_weth.sh --exclude awesome/default --exclude lua-ls-cc-tweaked --exclude .config/nvim/plugin"
-
-fsync
diff --git a/stuff/scripts/system/bri.sh b/stuff/scripts/system/bri.sh
deleted file mode 100755
index b943f30..0000000
--- a/stuff/scripts/system/bri.sh
+++ /dev/null
@@ -1 +0,0 @@
-echo "$1" > /sys/class/backlight/intel_backlight/brightness
diff --git a/stuff/scripts/system/math.sh b/stuff/scripts/system/math.sh
deleted file mode 100755
index 26d4854..0000000
--- a/stuff/scripts/system/math.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-expression=$1
-precision=$2
-
-if [ "$precision" == "" ]; then
- precision=1;
-fi;
-
-# Perform arithmetic operation using awk
-result=$(awk "BEGIN {printf \"%.${precision}f\n\", $expression}" | sed 's/\.0$//')
-
-# Print the result
-echo "$result"
diff --git a/stuff/scripts/system/neoboot.sh b/stuff/scripts/system/neoboot.sh
deleted file mode 100755
index ed57d19..0000000
--- a/stuff/scripts/system/neoboot.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-normal_old() {
- randnum=$(($RANDOM % 2))
-
- if [ "$randnum" == "1" ]; then
- fastfetch --localip-show-ipv4 0 | lolcat -S 100 # | lolcat -as 10000 -S 100
- # fortune | cowsay -f fox | lolcat
- else
- # fortune | cowsay -f dragon | lolcat
- uwufetch | lolcat
- fi
- printf "\n--------------------------------------------------------\n" | lolcat
- lsblk --filter 'NAME=~"sd[abcde]"' -o NAME,MOUNTPOINTS | lolcat
-}
-
-normal() {
- fastfetch -c $HOME/.config/fastfetch/compact.jsonc
- printf "\n"
-}
-
-laptop() {
- if [ "$(($RANDOM % 2))" == "1" ]; then
- fastfetch --localip-show-ipv4 0 | lolcat -as 10000 -S 100
- else
- # uwufetch | lolcat -as 10000 -S 100
- fastfetch --localip-show-ipv4 0 | lolcat -as 10000 -S 100
- fi
- printf "\n--------------------------------------------------------\n" | lolcat -S 100
- lsblk --filter 'NAME=~"sd[abcde]"' -o NAME,MOUNTPOINTS | lolcat -as 10000 -S 100
-}
-
-if [[ "$(cat /etc/hostname)" == "Witchen" ]]; then
- normal
-else
- normal
-fi
diff --git a/stuff/scripts/system/restart-pipe.sh b/stuff/scripts/system/restart-pipe.sh
deleted file mode 100755
index ec693dc..0000000
--- a/stuff/scripts/system/restart-pipe.sh
+++ /dev/null
@@ -1 +0,0 @@
-systemctl --user restart wireplumber pipewire pipewire-pulse
diff --git a/stuff/scripts/system/set-pri-java.sh b/stuff/scripts/system/set-pri-java.sh
deleted file mode 100755
index 35a9769..0000000
--- a/stuff/scripts/system/set-pri-java.sh
+++ /dev/null
@@ -1 +0,0 @@
-sudo renice -20 -p $(sudo pidof java)
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
diff --git a/stuff/scripts/system/url-handler.sh b/stuff/scripts/system/url-handler.sh
deleted file mode 100755
index 30d7548..0000000
--- a/stuff/scripts/system/url-handler.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-
-url=$@
-prompt_message="Open with:"
-
-echo $url
-
-choices="
-clipboard
-zen
-"
-
-choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message")
-
-if [ "$choice" == "clipboard" ]; then
- if [ -z $WAYLAND_DISPLAY ]; then
- printf "$url" | xclip -selection clipboard
- else
- printf "$url" | wl-copy
- fi
-else
- $choice "$url"
-fi