Update for fedora atomic
This commit is contained in:
parent
f5b7c87428
commit
3110da2e40
2 changed files with 39 additions and 29 deletions
39
distro-specific-scripts/fedora-sway.sh
Executable file
39
distro-specific-scripts/fedora-sway.sh
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/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
|
||||
|
||||
command_exists() { type "$1" &>/dev/null; }
|
||||
|
||||
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
|
||||
if command_exists "dnf"; then
|
||||
sudo dnf install clipman swaybg swaylock slurp grim zenity wdisplays eom nemo pavucontrol brightnessctl gnome-calculator wl-clipboard gedit kanshi wireguard-tools iperf3 zstd network-manager-applet -y
|
||||
sudo usermod -aG input $(whoami) # so that waybar's keyboard-state works
|
||||
sudo dnf copr enable erikreider/SwayNotificationCenter
|
||||
sudo dnf install SwayNotificationCenter
|
||||
|
||||
sudo dnf remove Thunar imw foot mpv dunst
|
||||
sudo dnf autoremove
|
||||
elif command_exists "rpm-ostree"; then
|
||||
rpm-ostree install clipman zenity wdisplays eom nemo gnome-calculator gedit wireguard-tools -y
|
||||
sudo usermod -aG input $(whoami)
|
||||
sudo wget https://copr.fedorainfracloud.org/coprs/erikreider/SwayNotificationCenter/repo/fedora-$(rpm -E %fedora)/erikreider-SwayNotificationCenter-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/erikreider-SwayNotificationCenter.repo
|
||||
rpm-ostree install SwayNotificationCenter
|
||||
fi
|
||||
|
||||
# Install catppuccin grub theme
|
||||
#git clone --depth=1 https://github.com/catppuccin/grub
|
||||
#sudo mkdir /etc/grub-themes/
|
||||
#sudo cp -r ./grub/src/* /etc/grub-themes/
|
||||
#rm -rf grub/
|
||||
#echo 'GRUB_THEME=/etc/grub-themes/catppuccin-mocha-grub-theme/theme.txt' | sudo tee /etc/default/grub
|
||||
#sudo grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
# greetd
|
||||
#sudo dnf install tuigreet -y
|
||||
#sudo cp $GIT_DIR/greetd/config.toml /etc/greetd/config.toml
|
||||
#sudo systemctl disable lightdm.service
|
||||
#sudo systemctl enable greetd.service
|
|
@ -1,29 +0,0 @@
|
|||
#!/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 dnf install clipman swaybg swaylock slurp grim zenity wdisplays eom nemo pavucontrol brightnessctl gnome-calculator wl-clipboard gedit kanshi wireguard-tools iperf3 zstd network-manager-applet -y
|
||||
sudo usermod -aG input $(whoami) # so that waybar's keyboard-state works
|
||||
sudo dnf copr enable erikreider/SwayNotificationCenter
|
||||
sudo dnf install SwayNotificationCenter
|
||||
|
||||
sudo dnf remove Thunar imw unst foot mpv dunst
|
||||
sudo dnf autoremove
|
||||
|
||||
# Install catppuccin grub theme
|
||||
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 grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
|
||||
# greetd
|
||||
#sudo dnf install tuigreet -y
|
||||
#sudo cp $GIT_DIR/greetd/config.toml /etc/greetd/config.toml
|
||||
#sudo systemctl disable lightdm.service
|
||||
#sudo systemctl enable greetd.service
|
Loading…
Reference in a new issue