From 34ed301bedc854db6c63dc2379d3cf29db92898f Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Tue, 11 Feb 2025 15:48:30 -0600 Subject: typical update of files --- stuff/scripts/system/backup/backup.sh | 9 +++++---- stuff/scripts/system/backup/copy-to-git.sh | 8 ++++---- stuff/scripts/system/neoboot.sh | 3 ++- stuff/scripts/system/stbar/stbar-awesome.sh | 20 +++++++++++++------- stuff/scripts/system/url-handler.sh | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) (limited to 'stuff/scripts/system') diff --git a/stuff/scripts/system/backup/backup.sh b/stuff/scripts/system/backup/backup.sh index 16559d1..3391ec6 100755 --- a/stuff/scripts/system/backup/backup.sh +++ b/stuff/scripts/system/backup/backup.sh @@ -15,11 +15,13 @@ fsyncb () { fi } -syncfile="stuff .bash_profile .bashrc .surf .wezterm.lua .tmux.conf .gtkrc-2.0 .profile .urlview .vimrc .xinitrc .Xresources .zshrc .newsboat .gnupg .ssh .local/bin/lf-gadgets .config/dwm .config/awesome .config/gtk-3.0 .config/rofi .config/lf .config/picom.conf .config/nvim .config/screenkey.json .config/vesktop/themes .keepass .config/Pinta" +syncfile="stuff .bash_profile .bashrc .surf/styles .wezterm.lua .tmux.conf .gtkrc-2.0 .profile .urlview .vimrc .xinitrc .Xresources .zshrc .p10k.zsh .newsboat .gnupg .ssh .local/bin/lf-gadgets .config/dwm .config/awesome .config/wlxoverlay .config/vesktop/themes .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 .local/share/applications/custom" + +# 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" -#sync game stuff target="/home/iceyrazor/mnt-backups/LINUX FILES/home/iceyrazor" -exclude="--exclude **/cc-survival --exclude node_modules --exclude dontsync --exclude **/iceys-linux-stuffs" +exclude="--exclude node_modules --exclude node_modules_23 --exclude dontsync --exclude **/iceys-linux-stuffs --exclude **/target --exclude LinVAM/pyenv" fsynca @@ -27,4 +29,3 @@ fsynca printf "==CC-survival unsynced\n\n" fsyncb - diff --git a/stuff/scripts/system/backup/copy-to-git.sh b/stuff/scripts/system/backup/copy-to-git.sh index ad2a42d..921c051 100755 --- a/stuff/scripts/system/backup/copy-to-git.sh +++ b/stuff/scripts/system/backup/copy-to-git.sh @@ -1,21 +1,21 @@ cd ~/ fsync () { - rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target" + 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 -PRUurv --size-only --delete-after $exclude $syncfile "$target" + rsync -PRUurv --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } -syncfile=".bash_profile .bashrc .gtkrc-2.0 .wezterm.lua .profile .urlview .vimrc .Xresources .zshrc .config/dwm .config/awesome .config/rofi .config/lf .config/picom.conf .config/nvim .config/screenkey.json stuff/manual-programs/suckless" +syncfile=".bash_profile .bashrc .gtkrc-2.0 .tmux.conf .wezterm.lua .profile .urlview .vimrc .Xresources .zshrc .p10k.zsh .config/dwm .config/awesome .config/rofi .config/lf .config/picom.conf .config/nvim .config/atuin .config/screenkey.json 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 lua-ls-cc-tweaked --exclude .config/nvim/plugin" +exclude="--exclude check_weth.sh --exclude awesome/default --exclude lua-ls-cc-tweaked --exclude .config/nvim/plugin" fsync diff --git a/stuff/scripts/system/neoboot.sh b/stuff/scripts/system/neoboot.sh index 2df07de..9c64015 100755 --- a/stuff/scripts/system/neoboot.sh +++ b/stuff/scripts/system/neoboot.sh @@ -1,3 +1,4 @@ +#!/bin/bash normal() { randnum=$(($RANDOM % 2)) @@ -21,7 +22,7 @@ laptop() { lsblk --filter 'NAME=~"sd[abcde]"' -o NAME,MOUNTPOINTS | lolcat -as 10000 -S 100 } -if [[ "$(cat /etc/hostname)" == "iceynethp1" ]]; then +if [[ "$(cat /etc/hostname)" == "Witchen" ]]; then laptop else normal diff --git a/stuff/scripts/system/stbar/stbar-awesome.sh b/stuff/scripts/system/stbar/stbar-awesome.sh index 84c1894..ef9ecca 100755 --- a/stuff/scripts/system/stbar/stbar-awesome.sh +++ b/stuff/scripts/system/stbar/stbar-awesome.sh @@ -3,7 +3,7 @@ delim='|' curr_dir="$(cd "$(dirname "$0")" && pwd)" #wifi_device=$(cat $curr_dir/config.txt | grep wifi_device | sed 's/wifi_device://') -wifi_device="wlp4s0" +wifi_device="wlan0" # curr_dir/check_weth.sh "$cur_dir" & @@ -32,28 +32,34 @@ if [ "$(ls /sys/class/power_supply/BAT0/)" ]; then echo "$delim" fi +#mic + +[ "$(pactl get-source-mute @DEFAULT_SOURCE@)" == "Mute: no" ] && echo  || echo 󰍭 + +echo "$delim" + #rss -echo RSS:$(newsboat -x print-unread|sed "s/\s.*//; s/Error:/IA/") +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 CPU:$(ps axch -o cmd:15,%cpu --sort=-%cpu | sed "1q")% + echo  $(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  $(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/.* //')% + echo  $(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/ .*//") + echo  $(free -mlw | grep Mem: | sed "s/Mem\:\W*[0-9]*\W*//; s/ .*//") fi echo "$delim" @@ -62,7 +68,7 @@ echo "$delim" #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/system-root | sed '1d' | awk '{print $4}') +echo  $(df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g') echo "$delim" diff --git a/stuff/scripts/system/url-handler.sh b/stuff/scripts/system/url-handler.sh index b5a1a3a..5f626ce 100755 --- a/stuff/scripts/system/url-handler.sh +++ b/stuff/scripts/system/url-handler.sh @@ -9,7 +9,7 @@ clipboard firefox " -choice=$(echo "$choices" | sed /^$/d | dmenu -i -p "$prompt_message") +choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message") if [ "$choice" == "clipboard" ]; then printf "$url" | xclip -selection clipboard -- cgit v1.3