aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorcrecher <crecher@crecher.net>2026-10-21 22:16:49 +0000
committercrecher <crecher@crecher.net>2026-10-21 22:16:49 +0000
commit5f2faec53cd88d723d8e7572e2f2a73949d6025a (patch)
treee7d5402a51cdac1262d843088067ef2a0e7e4268 /config.go
parent4539e476b6644e961a4a96e3253c615bc4673b0c (diff)
downloadwm-5f2faec53cd88d723d8e7572e2f2a73949d6025a.tar.gz
wm-5f2faec53cd88d723d8e7572e2f2a73949d6025a.zip
fix: crash on startup, feat: hot reload
Signed-off-by: crecher <crecher@onyx.home>
Diffstat (limited to 'config.go')
-rw-r--r--config.go22
1 files changed, 18 insertions, 4 deletions
diff --git a/config.go b/config.go
index 5f8c4e2..67ef920 100644
--- a/config.go
+++ b/config.go
@@ -10,9 +10,9 @@ import (
// appearance
var barHeight uint16 = 20
var gapSize int = 10
-var barColor uint32 = 0x222222
-var barFg uint32 = 0xBBBBBB
-var selBg uint32 = 0x005577
+var barColor uint32 = 0x000000
+var barFg uint32 = 0x888888
+var selBg uint32 = 0x285577
var selFg uint32 = 0xEEEEEE
var fontName = "JetBrainsMono Nerd Font:size=16"
var tagCount = 9
@@ -30,7 +30,14 @@ var keys = []Key{
Mod: mod,
Sym: keysym.XK_Return,
Fn: func(conn *xgb.Conn) {
- spawn("kitty")
+ spawn("st")
+ },
+ },
+ {
+ Mod: mod,
+ Sym: keysym.XK_w,
+ Fn: func(conn *xgb.Conn) {
+ spawn("qutebrowser")
},
},
{
@@ -41,6 +48,13 @@ var keys = []Key{
},
},
{
+ Mod: mod | xproto.ModMaskShift,
+ Sym: keysym.XK_r,
+ Fn: func(conn *xgb.Conn) {
+ restart()
+ },
+ },
+ {
Mod: mod,
Sym: keysym.XK_q,
Fn: func(conn *xgb.Conn) {