From 424f233a504495ddf1bb80cbfdc8021bab531b57 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 17 Jul 2020 13:49:06 +0400 Subject: Added openbox config and changed .profile to load window manager when sourced on tty1 --- .xprofile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to '.xprofile') 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 & -- cgit v1.2.3