aboutsummaryrefslogtreecommitdiff
path: root/x/xsession.sh
diff options
context:
space:
mode:
Diffstat (limited to 'x/xsession.sh')
-rw-r--r--x/xsession.sh33
1 files changed, 12 insertions, 21 deletions
diff --git a/x/xsession.sh b/x/xsession.sh
index 3475c0bd..483707e6 100644
--- a/x/xsession.sh
+++ b/x/xsession.sh
@@ -1,5 +1,9 @@
# Custom X session to fit into Debian's way of doing things
+# Update browser, since .profile set this to a curses browser on login
+# shellcheck disable=SC2034
+BROWSER=x-www-browser
+
# Monitor and wallpaper setup is very machine-specific, and isn't versioned in
# here. Neither xrandr(1) nor xwallpaper(1) have config files, so we fake it
# with xargs and looking for a file with argument tokens to read in
@@ -8,25 +12,10 @@
# - ~/.config/xrandr/config
# - ~/.config/xwallpaper/config
#
-# We wait for the monitor setup to finish before proceeding, but we can do
-# other things while we wait for the wallpaper to be drawn thereon.
-#
xargs xrandr \
< "${XDG_CONFIG_HOME:-"$HOME"/.config}"/xrandr/config
xargs xwallpaper \
- < "${XDG_CONFIG_HOME:-"$HOME"/.config}"/xwallpaper/config &
-
-# Set a few keyboard map options:
-#
-# - Remap Caps Lock as another Control key.
-# - Remap right Alt as a Compose key.
-# - Kill X server with Ctrl+Alt+Backspace.
-#
-setxkbmap \
- -option caps:ctrl_modifier \
- -option compose:ralt \
- -option terminate:ctrl_alt_bksp \
- &
+ < "${XDG_CONFIG_HOME:-"$HOME"/.config}"/xwallpaper/config
# Set a few X user preferences:
#
@@ -39,12 +28,14 @@ xset \
b off \
-dpms \
mouse 5/2 0 \
- s off \
- &
+ s off
-# Update browser, since .profile set this to a curses browser on login
-# shellcheck disable=SC2034
-BROWSER=x-www-browser
+# Start a couple of daemons if we can; it's OK if they don't exist, but log
+# the failed attempt to start them to the errors file.
+## compton: Display compositor
+compton -b &
+## dunst: Message display (libnotify)
+dunst &
# Load all supplementary scripts in ~/.xsession.d
for sh in "$HOME"/.xsession.d/*.sh ; do