my configuration for stumpwm, my window manager of choice.
to install, do:
git clone git@github.com:gefjon/stumpwm-init.git ~/quicklisp/local-projects/stumpwm-init
mkdir -p ~/.stumpwm.d
ln -s ~/quicklisp/local-projects/stumpwm-init/init.lisp ~/.stumpwm.d/init.lisp
i use the colors defined by dracula. i also use their themes for emacs and
xresources. i used to use base16 to manage my themes, but found it overkill;
i replaced it with a small macro called DEFTHEME
(defined in
deftheme.lisp); i pasted the dracula colors into a DEFTHEME
form, and then
selected them in theme.lisp.
clone the dracula xresources repo:
git clone https://github.com/dracula/xresources.git ~/dracula-xresources
and symlink it in place:
ln -s ~/dracula-xresources/Xresources ~/.Xresources
load it into your current session:
xrdb -load ~/.Xresources
once that works, it goes into your userinit, like:
(stumpwm:run-shell-command "xrdb -load ~/.Xresources")
setting the background uses xsetroot
, which for some reason isn’t
preinstalled on manjaro. install it with:
sudo pacman -Syu xorg-xsetroot
i’m back to using systemd to run emacs. this time, my emacs.service is:
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=notify
ExecStart=emacs --fg-daemon
ExecStop=emacsclient --eval "(kill-emacs)"
Restart=on-failure
TimeoutStartSec=infinity
[Install]
WantedBy=default.target
note that TimeoutStartSec=infinity
disables systemd’s startup timer
mechanism, because for some reason on my machine emacs does not signal when
it’s initialized.
if you’re installing fresh, just edit the above directly into the emacs source tree & then install & reload with
sudo make install
systemctl --user daemon-reload
systemctl --user enable emacs.service
i use brightnessctl
to manage my laptop’s screen brightness. to install
it:
sudo pacman -Syu brightnessctl
you’ll need to reboot to make the udev
rules take effect.