yea
This commit is contained in:
parent
9c3a4eb77c
commit
52b5cc6262
17
debian.sh
17
debian.sh
@ -29,7 +29,7 @@ confirm() {
|
|||||||
# call with a prompt string or use a default
|
# call with a prompt string or use a default
|
||||||
read -r -p "${fg_yellow}${1:-Are you sure? [y/N]}${reset} " response
|
read -r -p "${fg_yellow}${1:-Are you sure? [y/N]}${reset} " response
|
||||||
case "$response" in
|
case "$response" in
|
||||||
[yY][eE][sS]|[yY])
|
[yY][eE][sS] | [yY])
|
||||||
true
|
true
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -38,7 +38,6 @@ confirm() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
check_dir_exists() {
|
check_dir_exists() {
|
||||||
dir=$1
|
dir=$1
|
||||||
if [ -d dir ]; then
|
if [ -d dir ]; then
|
||||||
@ -76,9 +75,9 @@ cecho "Purging yucky packages" fg_cyan
|
|||||||
sudo apt purge nano evolution
|
sudo apt purge nano evolution
|
||||||
cecho "Installing yummy packages" fg_cyan
|
cecho "Installing yummy packages" fg_cyan
|
||||||
if $is_server; then
|
if $is_server; then
|
||||||
sudo apt install vim neovim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop python3-venv curl
|
sudo apt install vim neovim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop python3-venv curl rsync
|
||||||
else
|
else
|
||||||
sudo apt install vim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop libfuse-dev nemo python3-venv curl irssi qpwgraph steam-installer protontricks zathura
|
sudo apt install vim git cifs-utils nfs-common ripgrep stow virtualenv wget zip unzip kitty python3-pip ncdu htop libfuse-dev nemo python3-venv curl irssi qpwgraph steam-installer protontricks zathura rsync
|
||||||
# librewolf
|
# librewolf
|
||||||
sudo apt install extrepo -y
|
sudo apt install extrepo -y
|
||||||
sudo extrepo enable librewolf
|
sudo extrepo enable librewolf
|
||||||
@ -125,6 +124,10 @@ fi
|
|||||||
xdg-mime default pcmanfm.desktop inode/directory
|
xdg-mime default pcmanfm.desktop inode/directory
|
||||||
xdg-mime default nvim.desktop text/plain
|
xdg-mime default nvim.desktop text/plain
|
||||||
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
||||||
|
xdg-mime default mpv.desktop video/mp4
|
||||||
|
xdg-mime default mpv.desktop video/webm
|
||||||
|
xdg-mime default mpv.desktop video/x-matroska
|
||||||
|
xdg-mime default mpv.desktop video/quicktime
|
||||||
# This command installs kitty as an option for the default terminal emulator within the alternatives system, assigning it a priority of 50
|
# This command installs kitty as an option for the default terminal emulator within the alternatives system, assigning it a priority of 50
|
||||||
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 50
|
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/bin/kitty 50
|
||||||
|
|
||||||
@ -159,7 +162,6 @@ sed -i 's/^XDG_VIDEOS_DIR=.*/XDG_VIDEOS_DIR="$HOME\/videos"/' ~/.config/user-dir
|
|||||||
# super click move
|
# super click move
|
||||||
# tiling manager
|
# tiling manager
|
||||||
|
|
||||||
|
|
||||||
# install my dotfiles
|
# install my dotfiles
|
||||||
if $install_dotfiles; then
|
if $install_dotfiles; then
|
||||||
cecho "Installing billypom dotfiles" fg_cyan
|
cecho "Installing billypom dotfiles" fg_cyan
|
||||||
@ -179,12 +181,11 @@ if $install_rtaudio; then
|
|||||||
# sudo systemctl enable rtaudio-setup
|
# sudo systemctl enable rtaudio-setup
|
||||||
# sudo systemctl start rtaudio-setup
|
# sudo systemctl start rtaudio-setup
|
||||||
# https://wiki.linuxaudio.org/wiki/system_configuration#limitsconfaudioconf
|
# https://wiki.linuxaudio.org/wiki/system_configuration#limitsconfaudioconf
|
||||||
printf '@audio - rtprio 90 # maximum realtime priority\n@audio - memlock unlimited # maximum locked-in-memory address space (KB)' > /etc/security/limits.d/rtaudio.conf
|
printf '@audio - rtprio 90 # maximum realtime priority\n@audio - memlock unlimited # maximum locked-in-memory address space (KB)' >/etc/security/limits.d/rtaudio.conf
|
||||||
echo "vm.swappiness=10" > /etc/sysctl.d/99-sysctl.conf
|
echo "vm.swappiness=10" >/etc/sysctl.d/99-sysctl.conf
|
||||||
# echo "blacklist snd_hda_intel" >> /etc/modprobe.d/blacklist.conf
|
# echo "blacklist snd_hda_intel" >> /etc/modprobe.d/blacklist.conf
|
||||||
cecho "DO THIS STUFF MANUALLY BCUS IDK" fg_red
|
cecho "DO THIS STUFF MANUALLY BCUS IDK" fg_red
|
||||||
printf 'In the file `/etc/default/grub` change this line:\nGRUB_CMDLINE_LINUX="preempt=full threadirqs cpufreq.default_governor=performance"\n\nThen reboot\n\n'
|
printf 'In the file `/etc/default/grub` change this line:\nGRUB_CMDLINE_LINUX="preempt=full threadirqs cpufreq.default_governor=performance"\n\nThen reboot\n\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "\e[0;32m--- debian install script finished running ---\e[0m"
|
echo "\e[0;32m--- debian install script finished running ---\e[0m"
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
xdg-mime default nvim.desktop text/plain
|
|
||||||
xdg-mime default pcmanfm.desktop inode/directory
|
|
||||||
98
gentoo/pom.sh
Normal file
98
gentoo/pom.sh
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
usermod -aG plugdev billy
|
||||||
|
usermod -aG seat billy
|
||||||
|
usermod -aG pipewire billy
|
||||||
|
usermod -aG input billy
|
||||||
|
usermod -aG wheel billy
|
||||||
|
usermod -aG audio billy
|
||||||
|
usermod -aG video billy
|
||||||
|
usermod -aG usb billy
|
||||||
|
usermod -aG cron billy
|
||||||
|
usermod -aG cdrom billy
|
||||||
|
emerge --ask seatd
|
||||||
|
emerge --ask xdg-desktop-portal-wlr wofi wl-clipboard # wayland stuff
|
||||||
|
emerge --ask networkmanager # network...obv
|
||||||
|
emerge --ask app-admin/sysklogd # system logs
|
||||||
|
emerge --ask sys-process/cronie # cron
|
||||||
|
emerge --ask sys-apps/mlocate # idk
|
||||||
|
emerge --ask app-shells/bash-completion # autocomplete in terminal
|
||||||
|
emerge --ask net-misc/chrony # time syncing
|
||||||
|
emerge --ask sys-fs/xfsprogs # root partition is xfs not ext4
|
||||||
|
emerge --ask sys-block/io-scheduler-udev-rules # idk
|
||||||
|
emerge --ask net-analyzer/openbsd-netcat stow app-editors/vim app-admin/sudo ffmpeg dev-vcs/git mpv kitty neovim fastfetch grim slurp nodejs openvpn hyprland waybar app-text/zathura app-text/zathura-meta mumble app-misc/screen fzf ripgrep pavucontrol htop nvtop btop gimp dev-python/virtualenv
|
||||||
|
|
||||||
|
# gentoo-zh overlay for nerd-fonts
|
||||||
|
emerge --ask app-eselect/eselect-repository
|
||||||
|
eselect repository enable gentoo-zh
|
||||||
|
emerge --ask media-fonts/nerd-fonts # in gentoo-zh overlay
|
||||||
|
emerge --ask sys-fs/fuse:0 # for appimages
|
||||||
|
emerge --ask qt6ct # for librewolf dark mode, gtk theme dark mode w/e
|
||||||
|
emerge --ask sshfs # sftp access
|
||||||
|
emerge --ask lxappearance # gtk theme picker
|
||||||
|
emerge --ask x11-themes/arc-theme # gtk dark theme good enough
|
||||||
|
emerge --ask pcmanfm
|
||||||
|
emerge --ask net-im/dino
|
||||||
|
emerge --ask gst-plugins-srtp gst-plugins-dtls gst-plugins-libnice gst-plugins-gtk gst-plugins-x264 gst-plugins-good gst-plugins-speex gst-plugins-opus
|
||||||
|
emerge --ask xterm # for pia
|
||||||
|
emerge --ask gammastep # night light
|
||||||
|
emerge --ask media-fonts/noto media-fonts/noto-cjk media-fonts/noto-emoji
|
||||||
|
emerge --ask obs-studio v4l2loopback
|
||||||
|
emerge --ask net-p2p/nicotine+
|
||||||
|
emerge --ask net-p2p/deluge
|
||||||
|
emerge --ask mail-client/claws-mail
|
||||||
|
emerge --ask x11-themes/claws-mail-themes
|
||||||
|
emerge --ask mail-client/clawsker
|
||||||
|
emerge --ask app-text/tldr # alt man pages
|
||||||
|
emerge --ask app-text/pandoc
|
||||||
|
emerge --ask dev-python/weasyprint # pandoc pdfs
|
||||||
|
emerge --ask app-admin/bitwarden-desktop-bin
|
||||||
|
emerge --ask xfce-base/thunar xfce-base/tumbler
|
||||||
|
emerge --ask net-misc/socat # mpv ipc scripting
|
||||||
|
|
||||||
|
# Wine Staging 9.21
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# https://wiki.gentoo.org/wiki/Downgrading_a_package_to_removed_version
|
||||||
|
cd ~/applications/
|
||||||
|
git clone https://github.com/gentoo/gentoo.git
|
||||||
|
cd ~/applications/gentoo/
|
||||||
|
git log -- app-emulation/wine-staging
|
||||||
|
git checkout 83cbaf0e5e894de967231d9ad221d6f860ceac66~1 app-emulation/wine-staging/wine-staging-9.21.ebuild
|
||||||
|
# now the ebuild should exist
|
||||||
|
mkdir -p /var/db/repos/local/app-emulation/wine-staging/
|
||||||
|
cp -rv app-emulation/wine-staging/* /var/db/repos/local/app-emulation/wine-staging
|
||||||
|
ebuild /var/db/repos/local/app-emulation/wine-staging/wine-staging-9.21.ebuild manifest
|
||||||
|
# now install wine and yabridge
|
||||||
|
emerge --ask wine-staging:9.21 # slotted wine version, with colon
|
||||||
|
eselect repository enable megacoffee # overlay has yabridge
|
||||||
|
emerge --ask yabridge-bin # version 5.1.1
|
||||||
|
|
||||||
|
# mimetypes
|
||||||
|
#
|
||||||
|
#
|
||||||
|
xdg-mime default pcmanfm.desktop inode/directory
|
||||||
|
xdg-mime default thunar.desktop inode/directory
|
||||||
|
xdg-mime default nvim.desktop text/plain
|
||||||
|
xdg-mime default org.pwmt.zathura.desktop application/pdf
|
||||||
|
|
||||||
|
xdg-mime default imv-dir.desktop image/jpeg
|
||||||
|
xdg-mime default imv-dir.desktop image/png
|
||||||
|
xdg-mime default imv-dir.desktop image/webp
|
||||||
|
xdg-mime default imv-dir.desktop image/gif
|
||||||
|
xdg-mime default imv-dir.desktop image/heic
|
||||||
|
|
||||||
|
xdg-mime default mpv.desktop video/mp4
|
||||||
|
xdg-mime default mpv.desktop video/webm
|
||||||
|
xdg-mime default mpv.desktop video/x-matroska
|
||||||
|
xdg-mime default mpv.desktop video/quicktime
|
||||||
|
|
||||||
|
# screenrecording
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# https://github.com/russelltg/wl-screenrec
|
||||||
|
sudo setcap cap_sys_admin+ep /usr/bin/ffmpeg
|
||||||
|
sudo emerge --ask wl-screenrec
|
||||||
|
wl-screenrec -g "$(slurp)" --audio
|
||||||
|
# capture to v4l2loopback (for zoom etc)
|
||||||
|
sudo modprobe v4l2loopback
|
||||||
|
v4l2-ctl --list-devices # find "Dummy video device" device. /dev/video6 in my case.
|
||||||
|
wl-screenrec --ffmpeg-muxer v4l2 -f /dev/video6
|
||||||
@ -59,9 +59,9 @@ pipx ensurepath
|
|||||||
# https://github.com/essembeh/gnome-extensions-cli
|
# https://github.com/essembeh/gnome-extensions-cli
|
||||||
pipx install gnome-extensions-cli --system-site-packages
|
pipx install gnome-extensions-cli --system-site-packages
|
||||||
# install gnome extensions
|
# install gnome extensions
|
||||||
gext install dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com emoji-copy@felipeftn tiling-assistant@leleat-on-github Vitals@CoreCoding.com
|
gext install dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com emoji-copy@felipeftn tiling-assistant@leleat-on-github
|
||||||
# enable gnome extensions
|
# enable gnome extensions
|
||||||
gext enable dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com emoji-copy@felipeftn tiling-assistant@leleat-on-github Vitals@CoreCoding.com
|
gext enable dash-to-dock@micxgx.gmail.com user-theme@gnome-shell-extensions.gcampax.github.com emoji-copy@felipeftn tiling-assistant@leleat-on-github
|
||||||
# wobbly windows
|
# wobbly windows
|
||||||
# gext install compiz-windows-effect@hermes83.github.com
|
# gext install compiz-windows-effect@hermes83.github.com
|
||||||
# gext enable compiz-windows-effect@hermes83.github.com
|
# gext enable compiz-windows-effect@hermes83.github.com
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Running: [sudo apt install gtk2-engines-murrine]"
|
# echo "Running: [sudo apt install gtk2-engines-murrine]"
|
||||||
sudo apt install gtk2-engines-murrine
|
# sudo apt install gtk2-engines-murrine
|
||||||
|
|
||||||
# Function to check if a directory exists
|
# Function to check if a directory exists
|
||||||
check_directory() {
|
check_directory() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user