minor script refractor

This commit is contained in:
2024-02-23 11:23:24 +01:00
parent d17d91bbd2
commit e5b075b36e
4 changed files with 2 additions and 0 deletions

2
scripts/.local/bin/pasend Executable file
View File

@@ -0,0 +1,2 @@
pactl load-module module-rtp-send source=rtp.monitor destination_ip=192.168.0.11
pactl load-module module-null-sink sink_name=rtp sink_properties="device.description='RTP'"

17
scripts/.local/bin/rmount Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/zsh
remote="dummy"
case $1 in
"c2yz.com") remote="c2yz";;
"eu.c2yz.com") remote="c2yz-eu";;
"thor.c2yz.com" || "192.168.0.11" || "192.168.0.12") remote="thor";;
"home.c2yz.com" || "192.168.0.200") remote "home";;
*) remote=$(echo $1 | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')
esac
echo "Mounting $1 to: $HOME/remotes/$remote";
mkdir -p $HOME/remotes/$remote;
sshfs -o idmap=user $USER@$1:/home/$USER $HOME/remotes/$remote

15
scripts/.local/bin/urmount Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/zsh
remote="dummy"
case $1 in
"c2yz.com") remote="c2yz";;
"eu.c2yz.com") remote="c2yz-eu";;
"thor.c2yz.com" || "192.168.0.11" || "192.168.0.12") remote="thor";;
"home.c2yz.com" || "192.168.0.200") remote "home";;
*) remote=$(echo $1 | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')
esac
echo "Unmounting $1 from: $HOME/remotes/$remote";
fusermount -u $HOME/remotes/$remote

View File

@@ -1,215 +0,0 @@
#!/bin/bash
if [ "$EUID" -eq 0 ]
then echo "Please do not run as root!"
exit
fi
echo "=== Lazarus Ressurection Script ==="
echo "Note: This script is semi-automatic. User interaction may be required to continue!"
sleep 5
# working dir
mkdir -pv ~/lazarus-tmp
cd ~/lazarus-tmp
# paru package manager setup
echo "Installing paru"
sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
# system update
echo "Preparing system update"
paru -Syyu
# installing all programs
echo "Installing additional software (this may take a long time!)"
paru -S \
adobe-source-code-pro-fonts \
bat \
betterlockscreen \
calf \
cantarell-fonts \
catppuccin-gtk-theme-frappe \
catppuccin-gtk-theme-latte \
catppuccin-gtk-theme-macchiato \
catppuccin-gtk-theme-mocha \
cjson \
clight \
clightd \
discord \
dunst \
easyeffects \
emacs \
eza \
fd \
feh \
firefox \
flameshot \
fzf \
geoclue \
gnome-keyring \
gnupg \
handbrake \
helvum \
jq \
json-c \
json-glib \
kitty \
kleopatra \
kvantum \
less \
lib32-json-c \
linux-zen \
linux-zen-headers \
lsof \
lsp-plugins \
lsp-plugins-clap \
lsp-plugins-ladspa \
lsp-plugins-lv2 \
lsp-plugins-standalone \
lsp-plugins-vst \
lxappearance \
mate-polkit \
nemo \
neofetch \
nitrogen \
noto-fonts \
noto-fonts-cjk \
noto-fonts-emoji \
noto-fonts-extra \
obs-studio \
okular \
os-prober \
otf-aurulent-nerd \
otf-codenewroman-nerd \
otf-comicshanns-nerd \
otf-droid-nerd \
otf-firamono-nerd \
otf-hasklig-nerd \
otf-hermit-nerd \
otf-opendyslexic-nerd \
otf-overpass-nerd \
p7zip \
papirus-icon-theme \
python-pywal \
rofi \
rofi-calc \
seahorse \
stow \
telegram-desktop-bin \
ttf-3270-nerd \
ttf-agave-nerd \
ttf-anonymouspro-nerd \
ttf-arimo-nerd \
ttf-bigblueterminal-nerd \
ttf-bitstream-vera-mono-nerd \
ttf-cascadia-code-nerd \
ttf-cousine-nerd \
ttf-daddytime-mono-nerd \
ttf-dejavu-nerd \
ttf-fantasque-nerd \
ttf-firacode-nerd \
ttf-go-nerd \
ttf-hack-nerd \
ttf-heavydata-nerd \
ttf-iawriter-nerd \
ttf-ibmplex-mono-nerd \
ttf-inconsolata-go-nerd \
ttf-inconsolata-lgc-nerd \
ttf-inconsolata-nerd \
ttf-iosevka-nerd \
ttf-iosevkaterm-nerd \
ttf-jetbrains-mono-nerd \
ttf-lekton-nerd \
ttf-liberation-mono-nerd \
ttf-lilex-nerd \
ttf-meslo-nerd \
ttf-monofur-nerd \
ttf-monoid-nerd \
ttf-mononoki-nerd \
ttf-mplus-nerd \
ttf-nerd-fonts-symbols \
ttf-nerd-fonts-symbols-common \
ttf-nerd-fonts-symbols-mono \
ttf-noto-nerd \
ttf-profont-nerd \
ttf-proggyclean-nerd \
ttf-roboto-mono-nerd \
ttf-sharetech-mono-nerd \
ttf-sourcecodepro-nerd \
ttf-space-mono-nerd \
ttf-terminus-nerd \
ttf-tinos-nerd \
ttf-ubuntu-mono-nerd \
ttf-ubuntu-nerd \
ttf-victor-mono-nerd \
visual-studio-code-bin \
vlc \
xcape \
xdg-desktop-portal-gtk \
xorg-setxkbmap \
xorg-xinit \
xorg-xkbcomp \
xorg-xmessage \
xorg-xmodmap \
xorg-xprop \
xorg-xrandr \
xorg-xrdb \
xorg-xset \
xorg-xsetroot \
xsettingsd \
xss-lock \
zoxide \
zsh
# stowing
echo "Stowing dotfiles"
cd $HOME/.dots
stow alacritty
stow bash
stow bat
stow common
stow desktop
stow dunst
stow feh
stow gtk
stow htop
stow kitty
stow kvantum
stow libvirt
stow neofetch
stow nitrogen
stow picom
stow rofi
stow wal
stow zsh
# compiling desktop environment
echo "Compiling desktop environment"
cd $HOME/.dwm
sudo make clean install
cd $HOME/.dmenu
sudo make clean install
cd $HOME/.st
sudo make clean install
# disable lightdm
echo "Disable lightdm (setup uses .xinitrc)"
sudo systemctl disable lightdm.service
echo "Setup complete!"
echo "Please reboot your computer for changes to apply"