diff options
Diffstat (limited to '.xprofile')
-rwxr-xr-x | .xprofile | 43 |
1 files changed, 21 insertions, 22 deletions
@@ -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 |