Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Last active July 9, 2022 21:03
Show Gist options
  • Save yordanoweb/e332508dca4863e558df673ed1e5374a to your computer and use it in GitHub Desktop.
Save yordanoweb/e332508dca4863e558df673ed1e5374a to your computer and use it in GitHub Desktop.
Trying to replicate ArchCraft visuals on Ubuntu 20.04

Install required packages

sudo apt install bspwm rofi dunst vim ranger htop compton feh xclip install xfce4-settings \
 xsettingsd pavucontrol ncmpcpp mpd

Copy .Xresources, BSPWM, Rofi and Sxhkd configs

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

Copy fonts to user home:

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

Fix "-e" text appearing at some menus

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)"

Modify "Run as Root" menu

Change /home/${USER}/.config/bspwm/rofi/bin/asroot to reflect these changes:

#!/usr/bin/env bash                                                             

## Copyright (C) 2020-2022 Aditya Shakya <adi1090x@gmail.com>                   
## 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

The polybar mistery

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment