Setting up DWM and Suckless tools

Da Window Manager aka the Dynamic one

Install

either go for sources or with binaries

apt install suckless-tools
apt install stterm
apt install dwm

update-alternatives --config x-terminal-emulator
--> /usr/bin/st

as for slstatus, you still need to proceed from source.

Ready go to

enable for both X and Xsession

as root

vi /usr/share/xsessions/custom.desktop

[Desktop Entry]
Name=Xsession
Exec=/etc/X11/Xsession

^D

as user

vi ~/.xinitrc

#!/bin/bash

#xrandr --output HDMI-A-1-0 --mode 2560x1440 --right-of eDP
xrandr --output HDMI-A-1-0 --auto --right-of eDP-1-0

mate-settings-daemon &
xsetroot -solid black

#conky -d
#gnubiff --systemtray &
#xautolock -notify 10 -notifier 'notify-send "Screen will lock in 10 seconds"' \
    #       -time 5 -locker "xtrlock" &
    #       -time 5 -locker "xlock" &

slstatus &
exec dwm

ln -s .xinitrc .xsession

Additional notes

handle brightness

# let DWM handle brightness
elge    ALL = NOPASSWD:/usr/bin/brightnessctl

multiple displays

see video

Resources

https://wiki.ubuntu.com/CustomXSession

https://medium.com/hacker-toolbelt/dwm-windows-manager-in-ubuntu-14958224a782

https://github.com/algiuxass/dwm-dotfiles

layout state

https://unix.stackexchange.com/questions/12072/how-do-i-get-current-keyboard-layout https://github.com/grwlf/xkb-switch https://github.com/nonpop/xkblayout-state

https://gist.github.com/sergeykish/765118/017d4d7d31d0be5d26cfd67a976a8e874171016d

https://bbs.archlinux.org/viewtopic.php?id=46581 http://members.dslextreme.com/users/jbromley/files/ruby-xkb.tar.bz2 https://sourceforge.net/projects/xxkb/

got showlayout.sh from there! https://superuser.com/questions/1300091/show-current-keyboard-layout


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun