2023-11-19 14:34:47 -06:00
|
|
|
#!/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
|
|
|
|
|
2023-11-20 00:48:36 -06:00
|
|
|
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
|
2023-11-19 14:34:47 -06:00
|
|
|
|
2023-11-20 00:48:36 -06:00
|
|
|
yay -S feh --noconfirm --needed
|
2023-11-19 14:34:47 -06:00
|
|
|
|
|
|
|
# Install catppuccin grub theme
|
2023-11-20 00:48:36 -06:00
|
|
|
git clone --depth=1 https://github.com/catppuccin/grub
|
2023-11-19 14:34:47 -06:00
|
|
|
sudo cp -r ./grub/src/* /usr/share/grub/themes/
|
|
|
|
rm -rf grub/
|
2023-11-20 00:48:36 -06:00
|
|
|
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
|
2023-11-19 14:34:47 -06:00
|
|
|
|
2023-11-20 00:48:36 -06:00
|
|
|
# doesn't work
|
|
|
|
#sudo cp $GIT_DIR/other-files/suspend@.service /etc/systemd/system/
|
|
|
|
#sudo systemctl enable suspend@$(whoami).service
|