scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8946a793a74c2f8b1d1aa4e1fdd8e6ef349f0057
parent ef8544bcc6a4be012d3b742dba92b9c6ffadb1da
Author: andrew.laack <andrew.laack@imbue.com>
Date:   Thu, 28 Aug 2025 08:45:57 -0500

Updated scripts

Diffstat:
Mabduco.sh | 69+++++++++++++++++++++++++++++++++++++--------------------------------
March-install.sh | 38+++++++++++++++++++++++++++++++++++++-
Medit-tmux-output.sh | 2+-
Minit-screen.sh | 8+++++++-
Mzathura.sh | 2+-
5 files changed, 83 insertions(+), 36 deletions(-)

diff --git a/abduco.sh b/abduco.sh @@ -1,37 +1,42 @@ #!/bin/bash -background=$1 -foreground=$2 -highlight=$3 -prompt="abduco dir:" - -# exclude git repos which have lots of sub-dirs, -# .cache which has a ton of firefox crap -# .local because I never really go there and lots -# of crap there too, and finally .firefox. - -directory=$(find ~ -type d \ - ! -path '*/.local/*' \ - ! -path '*/.cache/*' \ - ! -path '*/.firefox/*' \ - ! -path '*/.mozilla/*' \ - ! -path '*/.git/*' \ - | dmenu -l 15 -i -p "$prompt" -nb "$background" -nf "$foreground" -sb "$highlight" -sf "$foreground") - -# Check if a directory was selected -if [ -z "$directory" ]; then - echo "No directory selected." - exit 1 -fi +if [ -n "$1" ]; then + background=$1 + foreground=$2 + highlight=$3 + prompt="abduco dir:" -# Check if the directory exists -if [ ! -d "$directory" ]; then - echo "Directory not found!" - exit 1 -fi + # exclude git repos which have lots of sub-dirs, + # .cache which has a ton of firefox crap + # .local because I never really go there and lots + # of crap there too, and finally .firefox. + + directory=$(find ~ -type d \ + ! -path '*/.local/*' \ + ! -path '*/.cache/*' \ + ! -path '*/.firefox/*' \ + ! -path '*/.mozilla/*' \ + ! -path '*/.git/*' \ + | dmenu -l 15 -i -p "$prompt" -nb "$background" -nf "$foreground" -sb "$highlight" -sf "$foreground") + + # Check if a directory was selected + if [ -z "$directory" ]; then + echo "No directory selected." + exit 1 + fi -cd $directory + # Check if the directory exists + if [ ! -d "$directory" ]; then + echo "Directory not found!" + exit 1 + fi -# directory name w/o full path -dirWO=$(echo $directory | sed "s/\// /g"| cut -c 2- | awk '{print $NF}') -st -e abduco -A "$dirWO" dvtm + cd $directory + + # directory name w/o full path + dirWO=$(echo $directory | sed "s/\// /g"| cut -c 2- | awk '{print $NF}') + st -e abduco -A "$dirWO" dvtm +else + res=$(abduco | tail -n +2 | tr '*' ' ' | awk '{print $5}' | fzf) + +fi diff --git a/arch-install.sh b/arch-install.sh @@ -44,13 +44,48 @@ cd git clone ssh://brgr/home/shared/git/private-repos/keys.git sudo pacman -Sy neovim -sudo pacman -Sy install sudo pacman -Sy qutebrowser +sudo pacman -Sy open-ssh sudo pacman -Sy zoxide sudo pacman -Sy mpv sudo pacman -Sy fzf +sudo pacman -Sy ripgrep sudo pacman -Sy xclip sudo pacman -Sy zathura +sudo pacman -Sy tmux +sudo pacman -Sy zathura-pdf-mupdf +sudo pacman -Sy uv +sudo pacman -Sy wget +sudo pacman -Sy lsof +sudo pacman -Sy btop +sudo pacman -Sy pandoc +sudo pacman -Sy texlive +sudo pacman -Sy entr + +# Yay + +cd +sudo pacman -S --needed base-devel git +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg -si +cd +rm -rf yay + +# this might only be necessary because I'm using arm... + +yay -S pandoc-bin + + + +cd ~/gitRepos +git clone ssh://brgr/home/shared/git/private-repos/dvtm.git +git clone ssh://brgr/home/shared/git/private-repos/abduco.git +cd dvtm +sudo make install +cd ../abduco +sudo make install +cd git config --global user.email "andrew@laack.co" git config --global user.name "Andrew Laack" @@ -63,6 +98,7 @@ mv nvim .config rm -rf .local/share/nvim/site/pack/packer git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim +sudo ln compile.sh /usr/local/bin/compile gpg --import keys/passwords/private-key.asc diff --git a/edit-tmux-output.sh b/edit-tmux-output.sh @@ -3,4 +3,4 @@ file=`mktemp`.sh tmux capture-pane -pS -32768 > $file -tmux new-window -n vim "vim '+ normal G $' $file" +tmux new-window -n vim "nvim '+ normal G $' $file" diff --git a/init-screen.sh b/init-screen.sh @@ -6,18 +6,24 @@ prompt="init dir:" +background=$1 +foreground=$2 +highlight=$3 + # exclude git repos which have lots of sub-dirs, # .cache which has a ton of firefox crap # .local because I never really go there and lots # of crap there too, and finally .firefox. +dmenu_cmd="dmenu -l 15 -i -nb \"$background\" -nf \"$foreground\" -sb \"$highlight\" -sf \"$foreground\" -p \"$prompt\"" + directory=$(find ~ -type d \ ! -path '*/.local/*' \ ! -path '*/.cache/*' \ ! -path '*/.firefox/*' \ ! -path '*/.mozilla/*' \ ! -path '*/.git/*' \ - | dmenu -p "$prompt" -l 15) + | eval $dmenu_cmd) # Check if a directory was selected if [ -z "$directory" ]; then diff --git a/zathura.sh b/zathura.sh @@ -1,6 +1,6 @@ #!/bin/bash -pdfs=$(find ~ -type f -iname '*.pdf') +pdfs=$(find ~ /home/serverBackup/fileSharing -type f -iname '*.pdf') background=$1