diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2025-06-30 00:05:45 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2025-06-30 00:05:45 -0500 |
| commit | b95ae4c5c9ff4d693d6424cce8a0d579754c4202 (patch) | |
| tree | aa6385301fc4dce26d70bc473fd876c794fc5f74 /env | |
| parent | 22b2eb9a952bf252af29eb5ed905de4bb62386a2 (diff) | |
- moved system scripts to here
- config changes
- fixed my backup scripts. rsync -a
- added dmenu script
- fixed finds in env.sh
Diffstat (limited to 'env')
| -rwxr-xr-x | env/.config/.profile | 3 | ||||
| -rw-r--r-- | env/.config/hypr/hyprland.conf | 2 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/backup/backup-flash | 4 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/backup/backup-tol | 4 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/backup/backup-tol2 | 4 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/backup/bbackup | 12 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/dmount | 35 |
7 files changed, 46 insertions, 18 deletions
diff --git a/env/.config/.profile b/env/.config/.profile index 86d11d9..4dd36b5 100755 --- a/env/.config/.profile +++ b/env/.config/.profile @@ -61,9 +61,8 @@ alias lfk=~/.local/bin/lf-gadgets/lf-kitty/lf-kitty alias ovim=/usr/bin/vim alias vim=nvim alias notes="cd ~/stuff/notes && vim notes.md && cd ~" -alias ts="~/stuff/scripts/system/tmux-sessionizer.sh" +alias ts="tmux-sessionizer.sh" alias fman="bash -c 'compgen -c' | fzf | xargs man" -alias etask="$EDITOR ~/stuff/scripts/system/task.sh" alias LC="fukn loadkeys ~/.config/swapscape.map" diff --git a/env/.config/hypr/hyprland.conf b/env/.config/hypr/hyprland.conf index b352a52..884247d 100644 --- a/env/.config/hypr/hyprland.conf +++ b/env/.config/hypr/hyprland.conf @@ -298,7 +298,7 @@ bind = $mainMod SHIFT, Q, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, space, togglefloating, bind = $mainMod, D, exec, $menu -bind = $mainMod SHIFT, D, exec, $HOME/stuff/scripts/system/rofi-search-web.sh +bind = $mainMod SHIFT, D, exec, $HOME/.local/bin/system/rofi-search-web.sh bind = $mainMod, P, pseudo, # dwindle bind = $mainMod SHIFT, i, togglesplit, # dwindle bind = $mainMod, f, fullscreen, 0 diff --git a/env/.local/bin/scripts/backup/backup-flash b/env/.local/bin/scripts/backup/backup-flash index c9ad023..732d191 100755 --- a/env/.local/bin/scripts/backup/backup-flash +++ b/env/.local/bin/scripts/backup/backup-flash @@ -2,12 +2,12 @@ cd ~/stuff/scripts fsync () { # t? - rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target" + rsync -RUuavn --delete-after $exclude $syncfile "$target" printf "===commit these changes?\n" read - "y/n: " uinput if [ "$uinput" != "n" ] && [ "$uinput" != "N" ]; then printf "\n\n\n" - rsync -RUurv --progress --size-only --delete-after $exclude $syncfile "$target" + rsync -RUuav --progress --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } diff --git a/env/.local/bin/scripts/backup/backup-tol b/env/.local/bin/scripts/backup/backup-tol index d065b08..49e73aa 100755 --- a/env/.local/bin/scripts/backup/backup-tol +++ b/env/.local/bin/scripts/backup/backup-tol @@ -2,7 +2,7 @@ cd ~/ fsynca () { # t? - rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target" + rsync -RUuavn --delete-after $exclude $syncfile "$target" } fsyncb () { @@ -10,7 +10,7 @@ fsyncb () { 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" + rsync -RUuav --progress --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } diff --git a/env/.local/bin/scripts/backup/backup-tol2 b/env/.local/bin/scripts/backup/backup-tol2 index 1f0a66d..18dd1c7 100755 --- a/env/.local/bin/scripts/backup/backup-tol2 +++ b/env/.local/bin/scripts/backup/backup-tol2 @@ -2,7 +2,7 @@ cd ~/ fsynca () { # t? - rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target" + rsync -RUuavn --delete-after $exclude $syncfile "$target" } fsyncb () { @@ -10,7 +10,7 @@ fsyncb () { 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" + rsync -RUuav --progress --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } diff --git a/env/.local/bin/scripts/backup/bbackup b/env/.local/bin/scripts/backup/bbackup index 0401eed..f5674f0 100755 --- a/env/.local/bin/scripts/backup/bbackup +++ b/env/.local/bin/scripts/backup/bbackup @@ -2,7 +2,7 @@ cd ~/ fsynca () { # t? - rsync -RUurvn --size-only --delete-after $exclude $syncfile "$target" + rsync -RUuavn --delete-after $exclude $syncfile "$target" } fsyncb () { @@ -10,22 +10,16 @@ fsyncb () { 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" + rsync -RUuav --progress --delete-after $exclude $syncfile "$target" printf "\n===end sync\n---------\n\n" fi } syncfile="stuff .surf/styles .config/eDEX-UI/ .gnupg .ssh .local/bin/lf-gadgets .config/FreeTube .config/wlxoverlay .config/newsboat .config/zsh .config/vesktop/themes .keepass .config/Pinta .config/cmus .config/cava .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 **/target --exclude LinVAM/pyenv" +exclude="--exclude node_modules --exclude node_modules_23 --exclude **/target --exclude LinVAM/pyenv" fsynca -printf "==CC-survival unsynced?\n\n" -printf "==osu unsynced\n\n" - fsyncb diff --git a/env/.local/bin/scripts/dmount b/env/.local/bin/scripts/dmount new file mode 100755 index 0000000..6a3415c --- /dev/null +++ b/env/.local/bin/scripts/dmount @@ -0,0 +1,35 @@ +#!/bin/bash +sudo="sudo" +[ doas ] && sudo="doas" + +umo=0 + +while getopts "u" opt; do + case "$opt" in + u) umo=1 + ;; + esac +done + +shift $((OPTIND-1)) +[ "${1:-}" = "--" ] && shift + +if [ $umo == 1 ]; then + nf=4 +else + nf=3 +fi + + +parts="$(lsblk -rno path,size,type,mountpoint | grep -e part -e lvm | awk "NF==$nf {print \$1, \$2, \$3, \$4}")" + +# choice="$(printf "$parts" | rofi -dmenu "beans" | sed 's/ .*//')" +choice="$(printf "$parts" | fzf | sed 's/ .*//')" + +[ "$choice" == "" ] && exit 0 + +if [ $umo == 1 ]; then + $sudo umount $choice +else + $sudo mount $choice ~/u +fi |
