summaryrefslogtreecommitdiff
path: root/.xprofile
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-07-17 13:49:06 +0400
committerAndrew <saintruler@gmail.com>2020-07-17 13:49:06 +0400
commit424f233a504495ddf1bb80cbfdc8021bab531b57 (patch)
tree162891fadc7930ae2e30bbf4d342d2b238924321 /.xprofile
parent9183013b850a4807e37576e7949ab77f4ef64c6e (diff)
Added openbox config and changed .profile to load window manager when sourced on tty1
Diffstat (limited to '.xprofile')
-rw-r--r--.xprofile19
1 files changed, 16 insertions, 3 deletions
diff --git a/.xprofile b/.xprofile
index 648d3d0..52fbe9f 100644
--- a/.xprofile
+++ b/.xprofile
@@ -1,9 +1,15 @@
#!/bin/sh
-xcompmgr -c -o 0 &
-setxkbmap -layout us,ru -option "grp:alt_shift_toggle"
+setxkbmap -layout us,ru -option "grp:alt_shift_toggle,grp:caps_toggle"
dunst &
-dwmblocks &
+
+# Window manager specific config
+if [ "$DISPLAY_SESSION" = "dwm" ]; then
+ compositor_args="-o 0"
+ dwmblocks &
+fi
+
+# Host specific config
if [ "$(hostname -s)" = "laptop1" ]; then
fusuma &
fi
@@ -14,3 +20,10 @@ if [ -d "$WP_DIR" ]; then
WP=$( ls -l "$WP_DIR" | tail -n +2 | awk '{ print $9 }' | shuf | tail -n -1 )
xwallpaper --zoom "$WP_DIR/$WP"
fi
+
+# On archlinux there is only picom fork
+if ! [ $(command -v compton) ]; then
+ alias compton="picom"
+fi
+
+compton -c --config $XDG_CONFIG_HOME/compton/compton.conf $compositor_args &