-
Notifications
You must be signed in to change notification settings - Fork 24
/
rc
43 lines (37 loc) · 1.49 KB
/
rc
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
41
42
43
#!/usr/bin/env bash
# | NOTE | NOTE | NOTE | NOTE |
# if you use this configuration, make sure that the paths are all right for the configuration file. this is just an example!!!
# you would also need things like nitrogen and polybar installed.
exec nitrogen --restore &
exec polybar top -q -c ~/.config/worm/polybar/config.ini &
exec mpd &
exec sxhkd -c ~/.config/worm/sxhkdrc &
wormc border-width 6
## pywal support
# # CONFIGURE
# pywal_active_index="3" # color3
# pywal_inactive_index="4" # color4
#
# # CODE
# contrast_text_for () {
# # Formula from:
# # https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color
# # https://www.w3.org/TR/AERT/#color-contrast
# if perl -e "exit ((1 - (0.299 * $((16#${1:0:2})) + 0.587 * $((16#${1:2:2})) + 0.114 * $((16#${1:4:2}))) / 255) > 0.5)"; then
# echo $((16#FF000000))
# else
# echo $((16#FFFFFFFF))
# fi
# }
# pywal_active="$(sed -n $(($pywal_active_index + 1))p ~/.cache/wal/colors | tail -c +2)"
# pywal_inactive="$(sed -n $(($pywal_inactive_index + 1))p ~/.cache/wal/colors | tail -c +2)"
# wormc border-active-pixel $((16#FF$pywal_active))
# wormc border-inactive-pixel $((16#FF$pywal_inactive))
# wormc frame-active-pixel $((16#FF$pywal_active))
# wormc frame-inactive-pixel $((16#FF$pywal_inactive))
# wormc text-active-pixel $(contrast_text_for $pywal_active)
# wormc text-inactive-pixel $(contrast_text_for $pywal_inactive)
wormc layout tiling
wormc struts 75 20 20 20
wormc gaps 20
wormc frame-height 0