sudo apt install bspwm rofi dunst vim ranger htop compton feh xclip install xfce4-settings \
xsettingsd pavucontrol ncmpcpp mpd
From existing installation, copy the following files and directories to user home:
- /etc/skel/.Xresources
- /etc/skel/.Xresources.d
- /etc/skel/.config/bspwm
- /etc/skel/.config/sxhkd
In /home/${USER}/.fonts copy the contents of these directories:
- /usr/share/fonts/archcraft/bitmap-fonts
- /usr/share/fonts/archcraft/icons-fonts
- /usr/share/fonts/archcraft/nerd-fonts
- /usr/share/fonts/archcraft/normal-fonts
At /home/${USER}/.config/bspwm/rofi/bin edit all scripts at every line matching "echo -e". Remove the "-e" after the echo command. These are the files and the edited lines:
powermenu chosen="$(echo -e "$options" | $rofi_command -p "UP - $uptime" -dmenu -selected-row 2)"
mpd chosen="$(echo -e "$options" | $rofi_command -p "$current" -dmenu $active $urgent -selected-row 0)"
asroot chosen="$(echo -e "$options" | $rofi_command -p "Run apps as root" -dmenu -selected-row 0)"
screenshot chosen="$(echo -e "$options" | $rofi_command -p 'Take Screenshot' -dmenu -selected-row 0)"
themes chosen="$(echo -e "$options" | $rofi_command -p "Available themes : (20)" -dmenu -selected-row 0)"
Change /home/${USER}/.config/bspwm/rofi/bin/asroot to reflect these changes:
#!/usr/bin/env bash
## Copyright (C) 2020-2022 Aditya Shakya <[email protected]>
## Everyone is permitted to copy and distribute copies of this file under GNU-G\
PL3
DIR="$HOME/.config/bspwm"
rofi_command="rofi -theme $DIR/rofi/themes/asroot.rasi"
# Apps
terminal=" Terminal"
files=" Files"
editor=" Editor"
clifm=" Ranger"
lpad=" Leafpad"
vim=" Vim"
# Variable passed to rofi
options="$terminal\n$files\n$editor\n$clifm\n$vim"
# Functions
chosen="$(echo "$options" | $rofi_command -p "Run apps as root" -dmenu -selecte\
d-row 0)"
case $chosen in
$terminal)
apps_as_root 'gnome-terminal'
;;
$files)
apps_as_root 'nautilus'
;;
$editor)
apps_as_root 'gedit'
;;
$clifm)
apps_as_root 'gnome-terminal -- ranger'
;;
$vim)
apps_as_root 'gnome-terminal -- vim'
;;
esac
Follow instructions at https://linuxhint.com/status-bars-polybar-linux/
Apart from the package dependecies suggestions at the previous URL, install these packages too before executing build.sh
sudo apt install git g++ python3-sphinx libuv1-dev
Then, you are ready to execute build.sh. When the script finishes its work, log out and log into i3 session to see polybar running with the same aspect of ArchCraft.