#!/bin/bash # Must be logged in as Root echo "Updating system" dnf upgrade --refresh echo "Installing pakages and dependencies" dnf install -y xorg-x11-server-Xorg xorg-x11-drv-{evdev,intel,synaptics} xorg-x11-xinit xbacklight i3lock psmisc feh terminus-fonts wget libxcb-devel xcb-util-keysyms-devel xcb-util-devel xcb-util-wm-devel xcb-util-xrm-devel yajl-devel libXrandr-devel startup-notification-devel libev-devel xcb-util-cursor-devel libXinerama-devel libxkbcommon-devel libxkbcommon-x11-devel pcre-devel pango-devel gcc automake tar libXcomposite libXcomposite-devel libXdamage libXdamage-devel libconfig libconfig-devel dbus dbus-devel libdrm-devel libglvnd libglvnd-devel mesa-libGL-devel asciidoc redshift bison bison-devel flex flex-devel librsvg2-devel check-devel xcb-proto jsoncpp jsoncpp-devel wireless-tools wireless-tools-devel cmake @development-tools gcc-c++ i3-ipc alsa-lib-devel pulseaudio-libs-devel libmpdclient-devel libcurl-devel plymouth-theme-spinfinity htop git echo "Change to the user home" cd $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $6}') echo "Clone the fedora-minimal installation repo" runuser -l $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $1}') -c 'git init' runuser -l $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $1}') -c 'git pull https://github.com/zerofoolcoder/fedora-minimal' cd bin cp * /usr/local/bin chown -R root:root /usr/local/bin cd .. echo "Installing i3-gaps" mkdir -p github cd github git clone https://www.github.com/Airblader/i3 i3-gaps cd i3-gaps autoreconf --force --install rm -rf build/ mkdir -p build && cd build/ ../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers make sudo make install echo "Installing compton" cd $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $6}') cd github git clone https://github.com/chjj/compton compton cd compton make make docs make install echo "Installing rofi" cd $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $6}') cd github git clone https://github.com/DaveDavenport/rofi rofi cd rofi/ git submodule update --init autoreconf -i mkdir build cd build ../configure make make install echo "Installing polybar" cd $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $6}') cd github git clone --recursive https://github.com/jaagr/polybar polybar mkdir polybar/build cd polybar/build cmake .. sudo make install echo "Deleting installation files" cd $(cat /etc/passwd | grep 1000:1000 | awk -F":" '{print $6}') rm -rf github echo "change bootup theme" plymouth-set-default-theme spinfinity -R echo "Setting up Grub" cp bin/kdmansion.png /boot/grub2/themes/system chown root:root /boot/grub2/themes/system/kdmansion.png chmod 644 /boot/grub2/themes/system/kdmansion.png sed -i '/GRUB_TERMINAL_OUTPUT/s/^/#/' /etc/default/grub echo "GRUB_BACKGROUND=\"/boot/grub2/themes/system/kdmansion.png\"" >> /etc/default/grub echo "GRUB_GFXMODE=\"800x600\"" >> /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg echo "Done. restarting now, login with your user and type startx" read -p "Press enter to continue" shutdown -r now