summaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-11-30 20:02:27 +0400
committerAndrew <saintruler@gmail.com>2020-11-30 20:02:27 +0400
commit5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 (patch)
tree642bac10a424b63d73ec0f88e9cadcb71d298323 /.xprofile
parent2ffe1d22e9ab40f205f0cfa70ebb0712bb36c115 (diff)
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
Diffstat (limited to '.xprofile')
-rw-r--r--.xprofile18
1 files changed, 12 insertions, 6 deletions
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"