From 1796c3f76900cde8a5b25f93e87d73946bf5e8b2 Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Fri, 30 May 2025 10:27:44 -0500 Subject: made minimal dev deployer, moved script sudo calls to doas --- runs-all/env.sh | 29 +++++++++++++++++++++++++++++ runs-all/get-reqs-arch.sh | 24 ++++++++++++++++++++++++ runs-all/mimes.sh | 10 ++++++++++ 3 files changed, 63 insertions(+) create mode 100755 runs-all/env.sh create mode 100755 runs-all/get-reqs-arch.sh create mode 100755 runs-all/mimes.sh (limited to 'runs-all') diff --git a/runs-all/env.sh b/runs-all/env.sh new file mode 100755 index 0000000..22f3138 --- /dev/null +++ b/runs-all/env.sh @@ -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 ----------------- diff --git a/runs-all/get-reqs-arch.sh b/runs-all/get-reqs-arch.sh new file mode 100755 index 0000000..6ad86be --- /dev/null +++ b/runs-all/get-reqs-arch.sh @@ -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 diff --git a/runs-all/mimes.sh b/runs-all/mimes.sh new file mode 100755 index 0000000..76f0f6c --- /dev/null +++ b/runs-all/mimes.sh @@ -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 -------- -- cgit v1.3