-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.go
30 lines (28 loc) · 946 Bytes
/
config.go
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
package marwind
import (
"github.com/BurntSushi/xgb/xproto"
"github.com/patrislav/marwind/keysym"
"github.com/patrislav/marwind/wm"
)
var Config = wm.Config{
InnerGap: 4,
OuterGap: 4,
Shell: "/bin/sh",
LauncherCommand: "rofi -show drun",
TerminalCommand: "alacritty",
BorderWidth: 0,
BorderColor: 0xffa1d1cf,
TitleBarHeight: 18,
TitleBarBgColor: 0xffa1d1cf,
TitleBarFontColorActive: 0xff000000,
TitleBarFontSize: 12,
Keybindings: map[xproto.Keysym]string{
// Brightness control
keysym.XF86MonBrightnessDown: "light -U 5",
keysym.XF86MonBrightnessUp: "light -A 5",
// Volume control
keysym.XF86AudioMute: "pactl set-sink-mute @DEFAULT_SINK@ toggle",
keysym.XF86AudioLowerVolume: "pactl set-sink-volume @DEFAULT_SINK@ -5%",
keysym.XF86AudioRaiseVolume: "pactl set-sink-volume @DEFAULT_SINK@ +5%",
},
}