CSx
Github Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

đŸ’ģ Dynamic Window Manager (DWM)


Compile

config.def.h

  • Fonts

    • static const char *fonts[] = "hack:size=10";

    • static const char dmenufont[] = "hack:size=10";

  • default terminal

    • static const char *termcmd[] = { "terminal-name", NULL };
  • Fix window gaps

    • -- static cont int resizehints = 1;

    • ++ static cont int resizehints = 0;

No ~/.xinitrc

  • cp /etc/X11/xinit/xinitrc-common ~/.xinitrc

    Recommended

  • cp /etc/X11/xinit/xinitrc ~/.xinitrc

    Not recommended

Status bar

  • Add to ~/.xinitrc

    while true
    while true; do
        xsetroot -name " CentOS 8.1 | $USER@$HOSTNAME | $(hostname -I| awk '{print $1}') | $(date "+%F %R") "
        sleep 1m
    done &
    

    Status line output = CentOS 8.1 | chris@c1n1 | [IP ADDRESS] | 2023-02-05 18:28 (See below for date scripting)

Wallpaper

  • Add to ~/.xinitrc

  • feh --bg-scale ~/Pictures/backgrounds/789948.jpg

  • feh --bg-scale ~/Pictures/backgrounds/789948.jpg

    Twice because that was the only way it would work for sone reason

startx

  • Add to ~/.xinitrc

  • exec dwm

Display

  • Save layout from arandr

  • cat that layout to whatever dwm autostart script

Resources