aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
blob: d464d42a636359b4cc44d66927fd9d0bb3c025d5 (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
#!/bin/zsh

# zprofile contents
[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
  exec startx
fi


# makes optimus-manager work (probably)
# xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto

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

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

# autostart apps
blueman-applet &
picom &
dunst &
nitrogen --restore &
emacs --daemon &
udiskie &
polystart &
xrandr | grep "HDMI-0 connected" && secondmonitor.sh