aboutsummaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
Diffstat (limited to '.xprofile')
-rwxr-xr-x.xprofile43
1 files changed, 21 insertions, 22 deletions
diff --git a/.xprofile b/.xprofile
index 0ad8de4..d3db31c 100755
--- a/.xprofile
+++ b/.xprofile
@@ -1,31 +1,30 @@
#!/bin/zsh
-# zprofile contents
+# set .zshenv
[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
-if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
- exec startx
-fi
-# 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 1920x749 --rotate normal
+# keyboard layout
+xmodmap /home/zt/.Xmodmap &
# makes gnome-keyring work
dbus-update-activation-environment --all
-# keyboard layout
-xmodmap /home/zt/.Xmodmap &
-
-# autostart apps
-blueman-applet &
-picom &
-dunst &
+# autostart apps for both xmonad and any other DE
emacs --daemon &
-# udiskie messes up something in my system
-# idk what it is but it's pretty bad
-# basically it's temporarily disabled
-# until I decide to troubleshoot it (I'm lazy)
-# udiskie &
-nitrogen --restore &
-polystart &
+
+# 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 1920x749 --rotate normal
+
+ # autostart apps
+ blueman-applet &
+ picom &
+ dunst &
+ udiskie &
+ nitrogen --restore &
+ polystart &
+
+fi