summaryrefslogtreecommitdiff
path: root/desktop/.xsession
blob: 401c53e403773bbec56c6c87395a6ffce5a15826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set -euo pipefail

SETUP_MARKER=$HOME/.local/share/__kj.dotfiles__
if [[ ! -e "$SETUP_MARKER" ]]; then
    echo running setup
    urxvt -e sh -c "$HOME/dotfiles/setup.sh"
    touch "$SETUP_MARKER"
fi

export TERMINAL=urxvt
xrdb -merge $HOME/.Xresources
setxkbmap us -variant dvorak -option compose:ralt -option caps:ctrl_modifier
xsetroot -solid "#2A3462"
pasystray &
xss-lock -- /usr/bin/env xscreensaver-command --lock &
xset -b
dzen2 -dock -x 0 -h 24 -e 'onstart=lower' -bg '#252526' -p &
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 100 --widthtype pixel --transparent true --height 24 --tint 0x252526  --alpha 0 &
[[ -f /etc/nixos/configuration.nix ]] || \
  redshift -l 40:-70 -r -t 5500:3700 &

if which autorandr >/dev/null; then
  autorandr --change
fi

exec xmonad