diff options
| author | Andrew <saintruler@gmail.com> | 2020-07-17 13:49:06 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-07-17 13:49:06 +0400 |
| commit | 424f233a504495ddf1bb80cbfdc8021bab531b57 (patch) | |
| tree | 162891fadc7930ae2e30bbf4d342d2b238924321 /.xprofile | |
| parent | 9183013b850a4807e37576e7949ab77f4ef64c6e (diff) | |
Added openbox config and changed .profile to load window manager when sourced on tty1
Diffstat (limited to '.xprofile')
| -rw-r--r-- | .xprofile | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -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 & |