commit 94ee0936a403174b07e119b11346fefc8f2f61f2 parent 75052cc45ef9f9798700e2a3527bca68e60e7c31 Author: Jacob R. Edwards <jacobouno@protonmail.com> Date: Thu, 2 Sep 2021 21:12:29 -0700 Convert xsession script to rc(1) While sh did fine, I stopped updating my ksh (and therefor sh) profile so the environment would be outdated. Soon I'll devise a shell agnostic method of setting up the environment. As an additional benifit, functions are loaded into the environment so the 9term script is no longer necessary. Diffstat:
| M | local/xenodm/config/xsession | | | 21 | ++++++++++----------- |
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/local/xenodm/config/xsession b/local/xenodm/config/xsession @@ -1,14 +1,13 @@ -#!/bin/sh +#!/usr/local/plan9/bin/rc -l # Initialize X -bg() { "$@" & } +if (~ $#XDG_CONFIG_HOME 0) + XDG_CONFIG_HOME = $home/.config -test -f ~/.profile && . ~/.profile - -bg setbg -bg slstatus -bg xbanish -bg xmodmap "${XDG_CONFIG_HOME:-$HOME/.config}/xmodmaprc" -bg xrdb -load "${XDG_CONFIG_HOME:-$HOME/.config}/Xresources" -bg xset dpms 360 600 960 r rate 250 30 s 0 b 0 0 0 m 3 1 -exec dwm 1>&2 >"${XDG_DATA_HOME:-$HOME/.local/share}/dwm" +setbg & +slstatus & +xbanish & +xmodmap $XDG_CONFIG_HOME/xmodmap & +xrdb -load $XDG_CONFIG_HOME/Xresources & +xset dpms 360 600 960 r rate 250 30 s 0 b 0 0 0 m 3 1 & +exec dwm