Reply To: Split: antiX Core Plus Just Enough X – user help

Forum › Forums › New users › New Users and General Questions › Split: antiX Core Plus Just Enough X – user help › Reply To: Split: antiX Core Plus Just Enough X – user help

#192500
UffePuffe_74
Member

    This is what I did to get dwm working with Antix core. Based on Christopher’s description.
    And some extra configurations.

    The process to install Xorg and DWM in AntiX Core.

    Install Anti-X Core 23.2

    sudo dpkg-reconfigure -plow locales # Just update the language you want to use. Can be configured during installation.

    sudo apt-get update
    sudo apt-get purge vim-tiny # remove vim.tiny
    sudo apt-get install vim # default text editor.
    sudo apt-get upgrade
    sudo apt-get autoremove

    # to get xwin
    # Install these packages with sudo apt-get install:
    xserver-xorg-legacy # base x package for antiX
    xserver-xorg-video-intel # my specific video server
    xserver-xorg-video-vesa # generic fall-back video server
    xserver-xorg-input-all # input for all mouse, keyboard, etc
    pmount # mounts usb drives, etc by normal user
    xinit # starts X window system

    # to get gcc
    # Install neaded packages with sudo apt-get install
    build-essential # gcc packages
    git # to download dwm
    patch # used to patch dwm with diff files
    libx11-dev
    libxft-dev
    libxinerama-dev

    # Download dwm
    cd /usr/src/
    sudo git clone http://git.suckless.org/dwm # window manager
    sudo git clone http://git.suckless.org/st # st – terminal emulator
    sudo git clone http://git.suckless.org/dmenu # dmenu – to start programs
    sudo git clone http://git.suckless.org/slstatus# slstatus – info on status bar

    # build and install
    cd /usr/src/dwm && sudo make clean install
    cd /usr/src/dmenu && sudo make clean install
    cd /usr/src/st && sudo make clean install
    cd /usr/src/slstatus && sudo make clean install

    cd ~
    echo “exec dwm” > .xinitrc # to start dwm with xwin

    startx # to start your xwin

    # Extra configure and program install

    sudo apt-get install qutebrowser # mini browser
    sudo apt-get install neofetch # inxi and neofetch show system info

    # config dwm/config.h
    replace Mod1Mask with Mod4Mask # use Win-key(Super) instead of Alt
    static const char dmenufont… size=12 # change font size

    # config st/config.h
    static char pixelsize=18 # change font size

    # Install a new font to solve problem with st-teminal font
    https://sourcefoundry.org/hack/
    cp Hack*.ttf /usr/share/fonts/ # copy all fonts to default dir
    fc-cache -fv # update font list
    in st/config.h change
    (static char *font = “Liberation Mono:….) to (static char *font = “Hack-Regular:….)

    # Auto hide mouse pointer. I don’t have any mouse installed.
    sudo apt install unclutter
    sudo apt install unclutter-startup # dont know if i need this file
    cd /usr/src/dwm
    # download autostart patch for dwm
    https://dwm.suckless.org/patches/autostart/dwm-autostart-20210120-cb3f58a.diff
    sudo patch < dwm-autostart-20210120-cb3f58a.diff # install autostart patch to dwm
    sudo make clean install
    # Make sure you have the path to ~/.local/bin
    echo $PATH
    # if not pressent
    cd ~ && echo “export PATH=$PATH:$HOME/.local/bin” >> .profile # to add path
    # if bin directory dont exist
    cd ~/.local/ && mkdir bin && cd ~/.local/bin
    echo “unclutter -idle 0.1 -root” > autostart.sh # hides mouse pointer i 0.1sec
    chmod +x autostart.sh

    # add new keybinds to dwm. Press super+u to run launcher.sh
    vim /usr/src/dwm/config.h
    /* commands */
    static const char *dm_launcher[] = { “dm_launcher.sh”, NULL };
    { MODKEY, XK_u, spawn, {.v = dm_launcher } },

    # script file dm_launcher.sh looks like this
    #!/bin/bash
    # dmenu dm_launcher.sh
    options=”QuteBrowser
    Terminal”

    choice=$(printf “%s” “$options” | dmenu -i -p “Menu:”)

    case “$choice” in
    QuteBrowser) qutebrowser ;;
    Terminal) st ;;

    This has become my manual for installing new systems.

    The first Linux dist i used was Slackware 3.1.
    Today i use Debian & AntiX