Skip to content

Instantly share code, notes, and snippets.

@Delusoire
Last active March 30, 2023 18:00
Show Gist options
  • Select an option

  • Save Delusoire/9eddb254eba1292976461e8dba41ed1d to your computer and use it in GitHub Desktop.

Select an option

Save Delusoire/9eddb254eba1292976461e8dba41ed1d to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Multilib drivers
### lib32-mesa lib32-vulkan-intel
# Audio
### easyeffects realtime-privileges qjackctl
#pro-audio
# Performance deamons
### irqbalance
### cpulimit
### gamemode lib32-gamemode
### cpupower
### ananicy-git
# Desktop
### xdg-user-dirs
### bspwm sxhkd picom-ibhagwan-git polybar python-pywal rofi
# Terminal
### kitty fish
# Cli tools
### duf rsync tealdeer dunst
### ripgrep exa bat starship fd procs skim dust hyperfine
# Security
### proxychains openvpn openvpn-update-resolv-conf-git
# Utility
### reflector cpulimit p7zip b3sum man-db
#syncthing
# Scripts
### yt-dlp translate-shell
### wmname xsel inotify-tools trash-cli jq
### xorg-xinput xorg-xwininfo xdo xdotool
### cmatrix fortune-mod
# Documents & Media
### mpv sxiv okular foliate libreoffice-fresh
# Applications
### screenkey nitrogen flameshot gucharmap
# Maintainance
### testdisk glances bpytop
# Browsers
### vivaldi
# Content Creation
### kdenlive obs-studio audacity gimp inkscape
# Health
### redshift
# Programming languages
### rustup julia jdk-openjdk
# Reverse Engineering
### recaf ghidra
# Editors
### neovim neovim-plug visual-studio-code-bin
### gnome-keyring
# Programming
### gitkraken jetbrains-toolbox ngrok
# Communication
### qbittorrent element-desktop
# Entertainment
### steam polymc-cracked-git lutris
# Virtualization
### virt-manager
# Fonts
### ttf-font-awesome ttf-font-nerd noto-fonts
# Themes
### qt6ct kvantum kvantum-theme-materia
:; # bash part
:; sudo pacman -S --noconfirm --needed fish
:; chsh -s /bin/fish
:; sed -i "1c#!/usr/bin/env fish" "$0"
:; sed -i -r "/^:;/d" "$0"
:; exec "$0"
:; # perhaps fish + here-doc would be wiser?
# sudo loop
fish -c 'while true; sudo -v; sleep 60; end' &
function uncmt
set pattern (string escape --style=regex -- $argv[1])
set -e argv[1]
sudo sed -i -r "s/^\s*#\s*($pattern)/\1/" $argv
end
# pacman optimizations
uncmt Color /etc/pacman.conf
uncmt ParallelDownloads /etc/pacman.conf
# install paru
sudo pacman -S --noconfirm --needed git rustup
git clone https://aur.archlinux.org/paru.git
rustup default stable
cd paru && makepkg -si --noconfirm && cd .. && rm -rf paru
# install pkgs
paru -S --noconfirm --needed jdk8-openjdk
sed -n 's/#\{3\}\s*\(.*\)/\1/p' "$(status -f)" | sed 's/ /\n/g' | sed '/^$/d' | paru -S --noconfirm --needed -
# post-install config
sudo usermod -a -G realtime $USER
uncmt governor /etc/default/cpupower
sudo systemctl enable cpupower
gsettings set org.gnome.desktop.interface toolkit-accessibility true
#!/usr/bin/env sh
# Multilib drivers
# Audio
### easyeffects realtime-privileges qjackctl
#pro-audio
# Performance deamons
### irqbalance
### cpulimit
### gamemode lib32-gamemode
### cpupower
### ananicy-git
# Desktop
### xdg-user-dirs
### gdm hyprland-bin
### polybar python-pywal wofi
# Terminal
### kitty fish
# Cli tools
### duf rsync tealdeer dunst
### ripgrep exa bat starship fd procs skim dust hyperfine
# Security
### proxychains openvpn openvpn-update-resolv-conf-git
# Utility
### reflector cpulimit p7zip b3sum man-db
#syncthing
# Scripts
### yt-dlp translate-shell
### wmname xsel inotify-tools trash-cli jq
### cmatrix fortune-mod
# Documents & Media
### mpv sxiv okular foliate libreoffice-fresh
# Applications
### screenkey nitrogen flameshot gucharmap
# Maintainance
### testdisk glances bpytop
# Browsers
### microsoft-edge-dev-bin
# Content Creation
### kdenlive obs-studio audacity gimp inkscape
# Health
### gammastep
# Programming languages
### rustup julia jdk-openjdk
# Reverse Engineering
### recaf ghidra
# Editors
### neovim neovim-plug visual-studio-code-bin
### gnome-keyring
# Programming
### gitkraken jetbrains-toolbox ngrok
# Communication
### qbittorrent element-desktop
# Entertainment
### steam prismlauncher-git xmcl-launcher-bin ferium-bin lutris
# Virtualization
### virt-manager
# Fonts
### ttf-font-awesome ttf-font-nerd noto-fonts
# Themes
### qt6ct kvantum kvantum-theme-materia
:; # bash part
:; sudo pacman -S --noconfirm --needed fish
:; chsh -s /bin/fish
:; sed -i "1c#!/usr/bin/env fish" "$0"
:; sed -i -r "/^:;/d" "$0"
:; exec "$0"
:; # perhaps fish + here-doc would be wiser?
# sudo loop
fish -c 'while true; sudo -v; sleep 60; end' &
function uncmt
set pattern (string escape --style=regex -- $argv[1])
set -e argv[1]
sudo sed -i -r "s/^\s*#\s*($pattern)/\1/" $argv
end
# pacman optimizations
uncmt Color /etc/pacman.conf
uncmt ParallelDownloads /etc/pacman.conf
# install paru
sudo pacman -S --noconfirm --needed git rustup
git clone https://aur.archlinux.org/paru.git
rustup update stable && rustup self upgrade-data
cd paru && makepkg -si --noconfirm && cd .. && rm -rf paru
# install pkgs
sed -n 's/#\{3\}\s*\(.*\)/\1/p' "$(status -f)" | sed 's/ /\n/g' | sed '/^$/d' | paru -S --noconfirm --needed -
# post-install config
sudo usermod -a -G realtime $USER
uncmt governor /etc/default/cpupower
sudo systemctl enable cpupower
gsettings set org.gnome.desktop.interface toolkit-accessibility true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment