Arch Linux | DWM | How to Rice Linux (DWM) Like a Boss
In this video, I show you how to rice DWM in seconds.
Highly recommended you watch these:
pywal video:
feh video:
1.
Ensure in your start up script for DWM you have one of the methods to reload the dwm binary instead of terminating on the mod+:shift+q command
My chosen method:
relaunch DWM if the binary changes, otherwise bail
csum=””
new_csum=$(sha1sum $(which dwm))
while true
do
if [ “$csum” != “$new_csum” ]
then
csum=$new_csum
dwm
else
exit 0
fi
new_csum=$(sha1sum $(which dwm))
sleep 0.5
done
2.
Follow my video on pywal setup.
2.5
**** If you dont have the dwm urgency patch ****
create the template to ignore urgency
.config/wal/templates/colors-wal-dwm.h
fill and save with
static const char norm_fg[] = “{color15}”;
static const char norm_bg[] = “{color0}”;
static const char norm_border[] = “{color8}”;
static const char sel_fg[] = “{color15}”;
static const char sel_bg[] = “{color2}”;
static const char sel_border[] = “{color15}”;
//static const char urg_fg[] = “{color15}”;
//static const char urg_bg[] = “{color1}”;
//static const char urg_border[] = “{color1}”;
static const char *colors[][3] = {{
/* fg bg border */
[SchemeNorm] = {{ norm_fg, norm_bg, norm_border }}, // unfocused wins
[SchemeSel] = {{ sel_fg, sel_bg, sel_border }}, // the focused win
// [SchemeUrg] = {{ urg_fg, urg_bg, urg_border }},
}};
3.
Create a new file for the script ie auto_rice:
#!/bin/bash
[ “$UID” -eq 0 ] || exec sudo bash “$0” “$@”
sudo -u $SUDO_USER wal -i $1 ⋗/dev/null
USER_HOME=$(getent passwd $SUDO_USER | cut -d: -f6)
cd $USER_HOME/Sources/st-0.9 || exit 1
make ⋗/dev/null 2⋗&1 && make clean install ⋗/dev/null 2⋗&1
cd $USER_HOME/Sources/dmenu || exit 1
make ⋗/dev/null 2⋗&1 && make clean install ⋗/dev/null 2⋗&1
cd $USER_HOME/Sources/dwm || exit 1
make ⋗/dev/null 2⋗&1 && make clean install ⋗/dev/null 2⋗&1
xdotool key alt+shift+q
save and close
chmod +x the script ie
chmod +x auto_rice.sh
Step 4:
Run: ./auto_rice.sh path/to/wallpaper
Step 5:
LIKE + SUB PLS ;)))))))))))))
Discord:
[ad_2]
source