From f6fc388e2ecf413543c3f6f4a623c530dd954973 Mon Sep 17 00:00:00 2001 From: Karl Is Wright Date: Sun, 19 Mar 2023 21:23:53 -0700 Subject: [PATCH 1/3] Create install_script_fedora.sh This is a script which is designed to install chadwm and it's requirements on Fedora Linux. Following the provided vanilla instructions doesn't fully lead one to a working chadwm install. For example, eww was not listed as requirement and I personally had never heard of it before. Another example being the installation of the necessary nerd fonts needed to show both text and icons (icons do not work with the tff file in vanilla instructions). What follows is a script which is intended to both automate and inform the user as to the proper installation instructions for this distro. --- install_scripts | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 install_scripts diff --git a/install_scripts b/install_scripts new file mode 100644 index 00000000..c8a8782f --- /dev/null +++ b/install_scripts @@ -0,0 +1,99 @@ +#!/bin/sh + +################################################################################## +## This is a script which is designed to install chadwm and it's requirements on Fedora Linux +## By KarlISWright +################################################################################## + +# Declar the only var +WORKING_DIR=~/.config/chadwm/ + +# Create the working dir +# I intend to keep everything in this one directory as much as possible +mkdir -p $WORKING_DIR +cd $WORKING_DIR + +## Install Requirements +sudo dnf install -y neovim dash imlib2 imlib2-devel xsetroot picom feh acpi rofi unzip wget + +## Install fonts +mkdir -p ~/.fonts/ +cd ~/.fonts +wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/Iosevka.zip +wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/JetBrainsMono.zip +wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/NerdFontsSymbolsOnly.zip + +unzip -o Iosevka.zip -d ./Iosevka +unzip -o JetBrainsMono.zip -d ./JetBrainsMono +unzip -o NerdFontsSymbolsOnly.zip -d ./NerdFontsSymbolsOnly + +# update the font cache +fc-cache -f + + +# fetch the wallpapers +mkdir -p $WORKING_DIR/wall/ +curl -o $WORKING_DIR/wall/chad.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/screenshots/chad.png +curl -o $WORKING_DIR/wall/gruv.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/gruv.png +curl -o $WORKING_DIR/wall/gruvchad.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/gruvchad.png +curl -o $WORKING_DIR/wall/onedark.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/onedark.png + +## chose: +## 2) customie +## default host triple (go with default for your system) +## installation profile: minmal +## modify PATH var: yes + +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh + +## Install Elkowars Wacky Widgets +git clone https://github.com/elkowar/eww +cd eww +cargo build --release +cd target/release +chmod +x ./eww +cp -vf eww ~/.local/bin/ + +## Install Chadwm +git clone https://github.com/siduck/chadwm --depth 1 $WORKING_DIR +cd $WORKING_DIR/ +cp -vrf eww ~/.config +cd chadwm +make clean && make +sudo make install + +## Add Chadwm Xresources file +curl -o $WORKING_DIR/.Xresources https://raw.githubusercontent.com/siduck/chadwm/main/.Xresources + +## Create Desktop Session Entry so we can chose chadwm from list of installed desktops +sudo cat < /usr/share/xsessions/chadwm.desktop +[Desktop Entry] +Name=chadwm +Comment=dwm made beautiful +Exec=$HOME/.config/chadwm/scripts/./run.sh +Type=Application +EOF + +## We changed the path to wallpapers and Xresources so we need to change run.sh. +cat < $WORKING_DIR/scripts/run.sh +#!/bin/sh + +xrdb merge $WORKING_DIR/.Xresources & +feh --bg-scale $WORKING_DIR/wall/chad.png & +xset r rate 200 50 & +picom --daemon & +eww daemon & + +$WORKING_DIR/scripts/bar.sh & +while type dwm >/dev/null; do dwm && continue || break; done +EOF + + +################################################################################## +## +## When you want to Change Themes +## config.def.h line 43 +## bar.sh line 9 +## eww.scss line 1 +## config.rasi line 15 +################################################################################## From ce0b3f71814fab3bfec1f88a2075e719d8593a52 Mon Sep 17 00:00:00 2001 From: Karl Is Wright Date: Sun, 19 Mar 2023 21:48:03 -0700 Subject: [PATCH 2/3] Update install_scripts --- install_scripts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/install_scripts b/install_scripts index c8a8782f..e9e0d367 100644 --- a/install_scripts +++ b/install_scripts @@ -37,6 +37,9 @@ curl -o $WORKING_DIR/wall/chad.png https://raw.githubusercontent.com/siduck/chad curl -o $WORKING_DIR/wall/gruv.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/gruv.png curl -o $WORKING_DIR/wall/gruvchad.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/gruvchad.png curl -o $WORKING_DIR/wall/onedark.png https://raw.githubusercontent.com/siduck/chadwm/d3d9f29b0082d0e8d8f3f70bcfec0a7cf227340b/wall/onedark.png +curl -o $WORKING_DIR/wall/magenta-cat.png https://images.pling.com/img/00/00/64/68/85/1707302/magenta-cat.png +curl -o $WORKING_DIR/wall/dark-cat-rosewater.png https://images.pling.com/img/00/00/64/68/85/1707302/dark-cat-rosewater.png +curl -o $WORKING_DIR/wall/nord.jpeg https://i.imgur.com/SBKjnxm.jpeg ## chose: ## 2) customie @@ -79,7 +82,7 @@ cat < $WORKING_DIR/scripts/run.sh #!/bin/sh xrdb merge $WORKING_DIR/.Xresources & -feh --bg-scale $WORKING_DIR/wall/chad.png & +feh --bg-scale $WORKING_DIR/wall/nord.png & xset r rate 200 50 & picom --daemon & eww daemon & @@ -97,3 +100,19 @@ EOF ## eww.scss line 1 ## config.rasi line 15 ################################################################################## + +cd $WORKING_DIR + +## Add the suckless terminal +git clone https://git.suckless.org/st +cd st +make +sudo make install + +cd ../ + +## Add the suckless surf browser +git clone https://git.suckless.org/surf +cd surf +make +sudo make install From 1abfc5fd8f325dc9633d9f7db2983e5d63f9385b Mon Sep 17 00:00:00 2001 From: Karl Is Wright Date: Mon, 20 Mar 2023 01:16:26 -0700 Subject: [PATCH 3/3] Update install_scripts don't overwrite custom eww folder --- install_scripts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install_scripts b/install_scripts index e9e0d367..f6d87cec 100644 --- a/install_scripts +++ b/install_scripts @@ -50,13 +50,16 @@ curl -o $WORKING_DIR/wall/nord.jpeg https://i.imgur.com/SBKjnxm.jpeg curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ## Install Elkowars Wacky Widgets -git clone https://github.com/elkowar/eww -cd eww +git clone https://github.com/elkowar/eww eww-release +cd eww-release cargo build --release cd target/release chmod +x ./eww cp -vf eww ~/.local/bin/ +# Return to working dir +cd $WORKING_DIR/ + ## Install Chadwm git clone https://github.com/siduck/chadwm --depth 1 $WORKING_DIR cd $WORKING_DIR/