From 5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 30 Nov 2020 20:02:27 +0400 Subject: Changes to autostart of X11 session * Removed autostarting of X11 from .profile * Moved variables used in graphical session to .xprofile * Removed junk from .xinitrc * Added xmonad configurations --- .xprofile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to '.xprofile') diff --git a/.xprofile b/.xprofile index f178ec3..27818db 100644 --- a/.xprofile +++ b/.xprofile @@ -1,18 +1,18 @@ #!/bin/sh -if [ "$DISPLAY_SESSION" != "openbox" ] && \ - [ "$DISPLAY_SESSION" != "xmonad" ] && \ - [ "$DISPLAY_SESSION" != "dwm" ]; then - exit 0 -fi +if [ "$DESKTOP_SESSION" = "openbox-session" ] || \ + [ "$DESKTOP_SESSION" = "xmonad" ] || \ + [ "$DESKTOP_SESSION" = "dwm" ]; then setxkbmap -layout us,ru -option "grp:alt_shift_toggle" dunst & # Window manager specific config -if [ "$DISPLAY_SESSION" = "dwm" ]; then +if [ "$DESKTOP_SESSION" = "dwm" ]; then compositor_args="-o 0" dwmblocks & +elif [ "$DESKTOP_SESSION" = "xmonad" ]; then + compositor_args="-o 0" fi # Host specific config @@ -33,3 +33,9 @@ if ! [ $(command -v compton) ]; then fi compton -c --config $XDG_CONFIG_HOME/compton/compton.conf $compositor_args & + +fi + +export TERMINAL="st" +export EDITOR="nvim" +export BROWSER="qutebrowser" -- cgit v1.2.3