-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
40 lines (31 loc) · 1.04 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
if [ "$DESKTOP_SESSION" = "openbox-session" ] || \
[ "$DESKTOP_SESSION" = "xmonad" ] || \
[ "$DESKTOP_SESSION" = "bspwm" ] || \
[ "$DESKTOP_SESSION" = "dwm" ]; then
setxkbmap -layout us,ru -option "grp:caps_toggle"
dunst &
xss-lock -v -- slock -m "$(cowsay 'You shall not pass!')" &
if [ "$DESKTOP_SESSION" = "dwm" ] || \
[ "$DESKTOP_SESSION" = "xmonad" ] || \
[ "$DESKTOP_SESSION" = "bspwm" ]; then
compositor_args="-o 0"
fi
compositor_args="$compositor_args --backend glx --vsync"
# Setup wallpaper
WP_DIR="$HOME/Pictures/Wallpapers/"
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
if [ "$DESKTOP_SESSION" = "openbox-session" ] || \
[ "$DESKTOP_SESSION" = "dwm" ]; then
compton -c --config $XDG_CONFIG_HOME/compton/compton.conf $compositor_args &
fi
fi
export TERMINAL="x-terminal-emulator"
export BROWSER="firefox"