Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.2 KiB

#!/bin/bash
# This can go in /usr/local/bin and, at least on Ubuntu or Debian systems,
# should be pointed at by /usr/share/xsessions/xmonad.desktop. Lately I have
# just been keeping it in ~/bin.
# Set up $PATH, etc. - also invoked by regular bash/zsh:
if [ -f "$HOME/.sh_common" ]; then
# following directive just silences a warning:
# shellcheck source=/dev/null
. "$HOME/.sh_common"
fi
# gnome-settings-daemon &
# .screenlayout/screenparity.sh
# Load resources
xrdb -merge .Xresources
# This may now be handled by /etc/defaults/keyboard:
# xmodmap ~/.xmodmap
xsettingsd &
# Start dunst for notifications:
dunst &
# Set up an icon tray
trayer --SetDockType true --SetPartialStrut true --edge bottom --align right --widthtype percent --width 10 --height 25 --alpha 10 --tint "0x00ff00" &
# Set the background color
xsetroot -solid midnightblue
eval "$(ssh-agent)"
# Fire up apps
volumeicon &
redshift-gtk &
clipit &
gpg-agent --daemon
xautolock -time 15 -locker "phoonlock" -notify 15 -notifier "notify-send -t 5000 'Locking in 15 seconds'" &
# --sm-disable is apparently "session manager disable".
# I don't really know what that means in practice.
if [ -x /usr/bin/nm-applet ]; then
nm-applet --sm-disable &
fi
# compton -b
exec xmonad-session