aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
blob: 7d06ef2932e872e9d2a6432ca4ac5908ea15d13f (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
28
29
30
31
32
33
#!/bin/zsh

# set .zshenv
[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv

# keyboard layout
xmodmap /home/zt/.Xmodmap &

# makes gnome-keyring work
dbus-update-activation-environment --all &

# autostart apps for both xmonad and any other DE
emacs --daemon &
mpd &

# autostart apps for xmonad
if [[ $DESKTOP_SESSION = "xmonad" ]]; then
  # set screen layout
  # this would fail when on integrated graphics
  # that's the desired behaviour
  xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x926 --rotate normal

  # autostart apps
  nitrogen --restore &
  picom &
  dunst &
  udiskie &
  nm-applet &
  blueman-applet &
  polystart &

  # glava -dm radial &
fi