From 8d6ea799eb455c93e81feb719997f12e325494a2 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 25 Jan 2020 16:52:26 -0800 Subject: [PATCH] first draft of a new post --- prebuild/post/pop-dwm.md | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 prebuild/post/pop-dwm.md diff --git a/prebuild/post/pop-dwm.md b/prebuild/post/pop-dwm.md new file mode 100644 index 0000000..da3c22b --- /dev/null +++ b/prebuild/post/pop-dwm.md @@ -0,0 +1,60 @@ +# DWM and POP!\_OS + + +## tl;dr + +Make a `/usr/share/xsessions/dwm.desktop` file with contents listed below and a /comfy/ script. + +## Doing the thing tho + +1. We need a `/usr/share/xsession/dwm.desktop` file. Mine looks like this: + + +``` +[Desktop Entry] +Name=DWM +Comment=This session logs in to DWM +Exec=/home/shockrah/Rice/dwm-launcher.sh +Type=Application +``` + +Nothing to crazy its basically a `toml` config with an executable as the entry point of the DE. +For reference here's the official Pop OS config: + +``` +[Desktop Entry] +Name=Pop +Comment=This session logs you into Pop +Exec=env GNOME_SHELL_SESSION_MODE=pop /usr/bin/gnome-session --systemd --session=pop +TryExec=/usr/bin/gnome-shell +Type=Application +DesktopNames=pop:GNOME +X-GDM-SessionRegisters=true +X-Ubuntu-Gettext-Domain=gnome-session-3.0 +``` + +This time there's more fluff but you can ignore it for the most part(I think). + +2. Now let's look at that script I have have [/home/shockrah/Rice/dwm-launcher.sh]: + +```sh +#!/bin/sh +# This script is used to mimic an xinitrc to some degree + +set -x +eval `ssh-agent` + +compton --backend glx --xrender-sync --xrender-sync-fence -b +bright 50 DWM# custom brightness script + +feh --randomize --bg-fill ~/Pictures/Papes/* & + +statline & +exec dwm +``` + +Nothing crazy right? Yeap that's it really to setup DWM with any changes you might have easily with Pop OS. + +In case you're wondering here's what my setup currently looks like: + +![Background Images I found on /wg/](/img/desktop/dwm-pop.png)