made minimal dev deployer, moved script sudo calls to doas

This commit is contained in:
2025-05-30 10:27:44 -05:00
parent b40f652968
commit 1796c3f769
10 changed files with 81 additions and 33 deletions

29
runs-all/env.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
echo RUNNING ENV ALL
cp -r $script_dir/../env/. "$DEV_ENV"
[ -d "$script_dir/../env_private/env/" ] && cp -r $script_dir/../env_private/env/. "$DEV_ENV"
path_dirs="$(find $DEV_ENV/.local/bin/scripts -type d)"
if [ ! -f "/etc/profile" ]; then
echo NO /etc/profile
echo SKIPPING SETTING \$PATH
else
export PATH=""
source /etc/profile
paths="$PATH"
path_dirs="$path_dirs
$(find ~/stuff/scripts/**/theme-setter -maxdepth 0 -type d)
$(find ~/stuff/scripts/**/youtube-playlist-cli -maxdepth 0 -type d)
$(find ~/stuff/scripts/system -maxdepth 2 -type d)"
for s in $path_dirs; do
echo "adding $s to path"
paths="$paths:$s"
done
echo "export PATH=\"$paths:\"" > "$DEV_ENV/.local/bin/system/paths.sh"
chmod u+x "$DEV_ENV/.local/bin/system/paths.sh"
fi
echo -----------------

24
runs-all/get-reqs-arch.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
arch="$(uname -r | grep arch)"
artix="$(uname -r | grep artix)"
if [ $artix ] || [ $arch ]; then
sudo="sudo"
[ doas ] && sudo="doas"
echo GETTING CURRENT REQS ARCH
$sudo pacman -S xorg-server libxft libxinerama pipewire-pulse pipewire-alsa pipewire-jack qpwgraph wezterm ttf-inconsolata sddm wayland hyprland waybar xdg-desktop-portal xdg-desktop-portal-hyprland xdg-desktop-portal-gtk zsh vlc v4l2loopback-dkms qt6-wayland qt5-wayland ntfs-3g gnome-keyring inetutils doas cowsay fastfetch yt-dlp ttf-jetbrains-mono ttf-jetbrains-mono-nerd noto-fonts-emoji font-manager atuin gvfs-mtp bat lxappearance cmus grim btop htop rxvt-unicode lf inetutils openrgb reflector steam rofi-wayland
$sudo pacman -S fcitx5-im fcitx5-mozc networkmanager openvpn networkmanager-openvpn openresolv
# for vr
$sudo pacman -S cli11 eigen glib2 glib2-devel nlohmann-json patch fcitx5-im-emoji-picker-git
# git clone https://aur.archlinux.org/paru.git
# cd paru
# makepkg -si
paru -S dunst-git ttf-b612 sddm-theme-tokyo-night-git obs-studio-git gpu-screen-recorder gpu-screen-recorder-gtk urlview
echo ---------------
fi

10
runs-all/mimes.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
echo SETTING MIMES
unset BROWSER
xdg-mime default zen.desktop application/pdf
xdg-mime default pinta.desktop image/jpeg
xdg-mime default pinta.desktop image/png
xdg-mime default pinta.desktop image/webp
xdg-settings set default-web-browser custom-zen.desktop
echo --------