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 dwm stterm alsa-utils brightnessctl

make it the default editor

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

handle brightness

cp -pi /etc/sudoers /etc/sudoers.dist
vi /etc/sudoers

# DWM
elge    ALL = NOPASSWD:/usr/bin/brightnessctl

as for slstatus, you still need to proceed from sources anyhow

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

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

xsetroot -solid black

slstatus &
exec dwm

ln -s .xinitrc .xsession

Additional notes

#mate-settings-daemon &

#conky -d

#gnubiff --systemtray &

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

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