blob: 0f8407ddb0a04bab6faa30ac1bfbaf587e8389fb (
plain) (
blame)
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
|
#!/bin/sh
set -e
main() {
export MOZ_ACCELERATED=1
export MOZ_WEBRENDER=1
xrdb -merge ~/.Xresources
setxkbmap -option caps:ctrl_modifier
setxkbmap -option altwin:swap_lalt_lwin
xinput set-prop /dev/wsmouse "Device Accel Constant Deceleration" 1.0
~/.fehbg &
start_lemonbar
~/.local/bin/sct-daemon &
exec cwm
}
start_lemonbar() {
_lemonbar_fontsize="10"
_lemonbar_width="48"
if is_laptop; then
_lemonbar_fontsize="12"
_lemonbar_width="24"
fi
~/.config/lemonbar-xft/bar.sh |
lemonbar-xft \
-f "Hack:size=${_lemonbar_fontsize}" \
-g x${_lemonbar_width} \
-B "#1c1c1c" -F "#d0d0d0" &
}
is_laptop() {
[ "$(hostname -s)" = "openbsd-laptop" ]
}
main
|