made minimal dev deployer, moved script sudo calls to doas
This commit is contained in:
35
runs/env.sh
35
runs/env.sh
@@ -1,29 +1,18 @@
|
||||
#!/bin/bash
|
||||
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
echo DEPLOYING FILES
|
||||
cp -r $script_dir/../env/. "$DEV_ENV"
|
||||
[ -d "$script_dir/../env_private/env/" ] && cp -r $script_dir/../env_private/env/. "$DEV_ENV"
|
||||
echo RUNNING ENV
|
||||
|
||||
path_dirs="$(find $DEV_ENV/.local/bin/scripts -type d)"
|
||||
cp -r $script_dir/../env/.bashrc "$DEV_ENV"
|
||||
cp -r $script_dir/../env/.bash_profile "$DEV_ENV"
|
||||
cp -r $script_dir/../env/.vimrc "$DEV_ENV"
|
||||
mkdir "$DEV_ENV/.config"
|
||||
cp -r $script_dir/../env/.config/.profile "$DEV_ENV/.config"
|
||||
mkdir "$DEV_ENV/.config/nvim"
|
||||
cp -r $script_dir/../env/.config/nvim "$DEV_ENV/.config/nvim"
|
||||
mkdir "$DEV_ENV/.config/tmux"
|
||||
cp -r $script_dir/../env/.config/tmux "$DEV_ENV/.config/tmux"
|
||||
mkdir "$DEV_ENV/.config/wezterm"
|
||||
cp -r $script_dir/../env/.config/wezterm "$DEV_ENV/.config/wezterm"
|
||||
|
||||
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 -----------------
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/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
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
echo ---------------
|
||||
fi
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/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 --------
|
||||
Reference in New Issue
Block a user