move distro/de-specific stuff to its own folder
This commit is contained in:
parent
3110da2e40
commit
6bd1edfd47
5 changed files with 23 additions and 19 deletions
26
distro-specific-scripts/arch-i3.sh
Executable file
26
distro-specific-scripts/arch-i3.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ $(whoami) == "root" ]; then
|
||||
echo "Run as a normal user, not root"
|
||||
exit 1
|
||||
fi
|
||||
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
# gnome-keyring for VS Code
|
||||
yay -S gnome-keyring --noconfirm --needed
|
||||
|
||||
sed '/Identifier "libinput touchpad catchall"/a \ \ \ \ \ \ \ \ Option "NaturalScrolling" "True"' /usr/share/X11/xorg.conf.d/40-libinput.conf | sudo tee /usr/share/X11/xorg.conf.d/40-libinput.conf
|
||||
sed '/Identifier "libinput touchpad catchall"/a \ \ \ \ \ \ \ \ Option "Tapping" "on"' /usr/share/X11/xorg.conf.d/40-libinput.conf | sudo tee /usr/share/X11/xorg.conf.d/40-libinput.conf
|
||||
sed '/Identifier "libinput touchpad catchall"/a \ \ \ \ \ \ \ \ Option "TappingButtonMap" "lrm"' /usr/share/X11/xorg.conf.d/40-libinput.conf | sudo tee /usr/share/X11/xorg.conf.d/40-libinput.conf
|
||||
|
||||
yay -S feh --noconfirm --needed
|
||||
|
||||
# Install catppuccin grub theme
|
||||
git clone --depth=1 https://github.com/catppuccin/grub
|
||||
sudo cp -r ./grub/src/* /usr/share/grub/themes/
|
||||
rm -rf grub/
|
||||
sudo sed -i 's/#GRUB_THEME="\/path\/to\/gfxtheme"/GRUB_THEME=\/usr\/share\/grub\/themes\/catppuccin-mocha-grub-theme\/theme.txt/g' /etc/default/grub
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
# doesn't work
|
||||
#sudo cp $GIT_DIR/other-files/suspend@.service /etc/systemd/system/
|
||||
#sudo systemctl enable suspend@$(whoami).service
|
38
distro-specific-scripts/arch-sway.sh
Executable file
38
distro-specific-scripts/arch-sway.sh
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ $(whoami) == "root" ]; then
|
||||
echo "Run as a normal user, not root"
|
||||
exit 1
|
||||
fi
|
||||
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
# gnome-keyring is for VS Code
|
||||
yay -S gnome-keyring lxqt-policykit --noconfirm --needed
|
||||
yay -S waybar rofi swaylock swaybg swaync clipman wdisplays kanshi --noconfirm --needed
|
||||
yay -S pipewire-pulse pavucontrol blueman bluetooth-support qpwgraph --noconfirm --needed
|
||||
yay -S brightnessctl wl-clipboard --noconfirm --needed
|
||||
yay -S eom nemo gnome-calculator gedit wireguard-tools iperf3 zstd network-manager-applet gparted --noconfirm --needed
|
||||
# for screenshots and color picker
|
||||
yay -S slurp grim zenity imagemagick --noconfirm --needed
|
||||
|
||||
sudo systemctl enable --now NetworkManager
|
||||
|
||||
# Install catppuccin grub theme
|
||||
git clone --depth=1 https://github.com/catppuccin/grub
|
||||
sudo cp -r ./grub/src/* /usr/share/grub/themes/
|
||||
rm -rf grub/
|
||||
sudo sed -i 's/#GRUB_THEME="\/path\/to\/gfxtheme"/GRUB_THEME=\/usr\/share\/grub\/themes\/catppuccin-mocha-grub-theme\/theme.txt/g' /etc/default/grub
|
||||
sudo sed -i 's/#GRUB_DISABLE_OS_PROBER=false/GRUB_DISABLE_OS_PROBER=false/g' /etc/default/grub
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
# greetd, replaced by ly which should be preinstalled
|
||||
#yay -S greetd --noconfirm --needed
|
||||
#sudo cp $GIT_DIR/greetd/config.toml /etc/greetd/config.toml
|
||||
#sudo systemctl enable greetd.service
|
||||
|
||||
# make GUI stuff work when running as root (e.g. gparted)
|
||||
yay -S xorg-xhost --noconfirm --needed
|
||||
xhost +SI:localuser:root
|
||||
|
||||
# Enable MultiProfile for bluetooth (enables more than just headset-quality support on thing that support many audio profiles)
|
||||
sudo sed -i 's/#MultiProfile = off/MultiProfile = multiple/g' /etc/bluetooth/main.conf
|
||||
sudo systemctl restart bluetooth.service
|
40
distro-specific-scripts/void-sway.sh
Executable file
40
distro-specific-scripts/void-sway.sh
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env bash
|
||||
# assumes a Fedora Sway base with askiiart/configs/do-everything.bash already run
|
||||
if [ $(whoami) == "root" ]; then
|
||||
echo "Run as a normal user, not root"
|
||||
exit 1
|
||||
fi
|
||||
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
sudo xbps-install sway Waybar rofi clipman swaybg swaylock slurp grim zenity wdisplays eom nemo pavucontrol brightnessctl gnome-calculator wl-clipboard gedit kanshi wireguard-tools network-manager-applet SwayNotificationCenter
|
||||
|
||||
git clone --depth=1 https://github.com/catppuccin/grub
|
||||
sudo mkdir /usr/share/grub/themes/
|
||||
sudo cp -r ./grub/src/* /usr/share/grub/themes/
|
||||
rm -rf grub/
|
||||
echo 'GRUB_THEME=/usr/share/grub/themes/catppuccin-mocha-grub-theme/theme.txt' | sudo tee /etc/default/grub
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
echo -e '#!/bin/sh\nfstrim /' | sudo tee /etc/cron.weekly/fstrim
|
||||
|
||||
sudo xbps-install dbus mesa mesa-intel-dri seatd greetd tuigreet
|
||||
sudo ln -s /etc/sv/NetworkManager/ /var/service/
|
||||
sudo ln -s /etc/sv/seatd/ /var/service/
|
||||
sudo usermod -aG _seatd _greeter
|
||||
sudo ln -s /etc/sv/greetd/ /var/service/
|
||||
|
||||
# pipewire setup
|
||||
sudo xbps-install pipewire wireplumber pipewire-pulse
|
||||
sudo usermod -aG audio $(whoami)
|
||||
sudo usermod -aG video $(whoami)
|
||||
sudo mkdir -p /etc/pipewire/pipewire.conf.d
|
||||
sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/
|
||||
sudo ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/
|
||||
|
||||
# bluetooth setup
|
||||
sudo xbps-install bluez bluez-alsa libspa-bluetooth alsa-pipewire
|
||||
sudo ln -s /etc/sv/bluetoothd/ /var/service/
|
||||
mkdir -p /etc/alsa/conf.d
|
||||
sudo ln -s /usr/share/alsa/alsa.conf.d/50-pipewire.conf /etc/alsa/conf.d
|
||||
sudo ln -s /usr/share/alsa/alsa.conf.d/99-pipewire-default.conf /etc/alsa/conf.d
|
||||
read -p "Set \`MultiProfile = multiple\` in /etc/bluetooth/main.conf" </dev/tty
|
Loading…
Add table
Add a link
Reference in a new issue