aboutsummaryrefslogtreecommitdiffstats

Installation

Hit command below in the root dir

    make clean install

Or if you use arch-based distro and like pacman

    makepkg -si

Execution

Probably the best way is to use your xinitrc config file and do something like

    dbus-run-session dwm

If you fancy having system stuff in your status bar you need to do something like this or use your own better statusbar.

while
    mem_used=$(free -h | awk '/^Mem:/ {print $3}')
    cpu_load=$(top -bn1 | grep "Cpu(s)" | awk '{print $2 + $4"%"}')
    battery_capacity=$(cat /sys/class/power_supply/BAT0/capacity)
    volume_level=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
    disk_usage=$(df -h / | awk 'NR==2 {print $3 "/" $2}')

    xsetroot -name "$volume_level | Btr: $battery_capacity% | RAM: $mem_used | CPU: $cpu_load | Disk: $disk_usage | $(date '+%d.%m.%Y (%a) %T')"
do
    sleep 5
done &

Configuration

You can customize looks via Xresources and keybindings via config.h. After you’re done hit super + r to restart the dwm process.

Additional resources

Swallow, Xresources, Gaps, Systray pulled from suckless.org