Skip to content
PINUX

Herbstluftwm Turbo

Yojee

By Yojee

post cover

[!TIP] Polybar is visible > gaps in 40 > normal mode
Polybar is hide > super + b > gaps in 0 > working mode

Window Manager Herbstluftwm
Status bar polybar
Terminal alacritty
Launcher rofi
Wallpaper feh
Compositor picom
Screenshot maim
Viewer imv
hlwm-turbohlwm-turbo

Fonts

Symbols Nerd Font - icons, interface, development.
JetBrains Mono - system font and interface.

Clear Sans 10 - System Font
Kanagawa - Theme
Gruvbox - Icons

๐Ÿงผ Installation

1. Boot to the Arch iso

archinstall

on the step - profile - select > desktop > minimal

2. After installing - Reboot and update system

sudo pacman -Syu

sudo pacman -S \
    xorg-server \
    xorg-xinit \
    xorg-xrandr \
    xorg-xset \
    xorg-xsetroot

3. Installing Herbstluftwm

sudo pacman -S \
herbstluftwm \
    alacritty \
    polybar \
    rofi \
    picom \
    feh \
    maim \
    slop \
    xclip \
    dunst \
    i3lock

[!IMPORTANT] Give execution rights to configuration scripts

chmod +x ~/.config/herbsluftwm/autostart
chmod +x ~/.config/polybar/launch.sh
chmod +x ~/.config/polybar/hlwm-polybar/hlwm-tags.sh

4. Installing Pkgs

sudo pacman -S \

alacritty \
   micro \
   mousepad \
   firefox

thunar \
   thunar-archive-plugin \
   thunar-volman

fastfetch \
   mc \
   xarchiver \
   tumbler \
   btop

p7zip \
   unzip \
   zip \
   tar \
   atool

wget \
   git \
   curl \
   gvfs \
   udisks2 \
   ntfs-3g

xdg-utils \
   ripgrep \
   zoxide \
   xfce4-screenshooter

imv \
   celluloid \
   rhythmbox \
   imagemagick \
   ffmpeg \
   lxappearance

5. Installing FISH

sudo pacman -S \
fish \
   eza \
   fzf \
   fd

chsh -s $(command -v fish)

Home Structure

~/
โ”œโ”€โ”€ Pictures/
โ”œโ”€โ”€ Screen/
โ”œโ”€โ”€ icons/
โ”œโ”€โ”€ themes/
โ”œโ”€โ”€ .local/share/fonts/
โ””โ”€โ”€ .config/
    โ”œโ”€โ”€ herbstluftwm/
    โ”œโ”€โ”€ polybar/
    โ”œโ”€โ”€ rofi/
    โ””โ”€โ”€ picom/

Used Dots, Icons, Themes, Wallpapers

[!NOTE] yojeero/config_linux

Folder for screenshots

[!NOTE] Create folder Screen for saving screenshots via maim.

Login TTY

x11 wm

.xinitrc

[!TIP] at the end > insert

exec herbstluftwm

config.fish

at the end > insert

if status is-login
    if test -z "$DISPLAY" -a (tty) = "/dev/tty1"
        exec startx
    end
end

Login x11 wm

[!TIP] Arch Linux > login > pass

x11/wayland wm

.xinitrc

[!TIP] at the end > insert

if [ -n "$1" ]; then
    exec "$1"
else
    exec herbstluftwm
fi

config.fish

[!TIP] Interactive session selection when logging into TTY1

if status is-interactive; and test (tty) = "/dev/tty1"
    echo "==================================="
    echo " Run HLWM or Sway:   "
    echo " [1] herbstluftwm (X11)           "
    echo " [2] Sway (Wayland)              "
    echo " [3] Stay in TTY      "
    echo "==================================="

    # Read the user's choice
    read -P "Select [1-3]: " choice

    switch $choice
        case 1
            echo "Start herbstluftwm (X11)..."
            exec startx (which herbstluftwm)

        case 2
            echo "Start Sway (Wayland)..."
            set -gx XDG_CURRENT_DESKTOP sway
            set -gx XDG_SESSION_DESKTOP sway
            set -gx XDG_SESSION_TYPE wayland
            set -gx MOZ_ENABLE_WAYLAND 1
            set -gx QT_QPA_PLATFORM wayland

            exec sway

        case 3
            echo "Enter to TTY!"

        case '*'
            echo "Bad step. Stay in TTY."
    end
end

Login x11/wayland wm

โ”œโ”€โ”€ [1] herbstluftwm (X11)
โ”œโ”€โ”€ [2] Sway (Wayland)
โ””โ”€โ”€ [3] Stay in TTY


HLWM Turbo download from the GitHub.