aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorcrecher <crecher@crecher.net>2026-10-21 22:32:22 +0000
committercrecher <crecher@crecher.net>2026-10-21 22:32:22 +0000
commit119f15531c28531ff879a5c532f4a44b04a19398 (patch)
tree30c5fae117523c68c4f240cf4b12fc948ba3e20a /config.go
parent5f2faec53cd88d723d8e7572e2f2a73949d6025a (diff)
downloadwm-119f15531c28531ff879a5c532f4a44b04a19398.tar.gz
wm-119f15531c28531ff879a5c532f4a44b04a19398.zip
fixes
Signed-off-by: crecher <crecher@crecher.net>
Diffstat (limited to 'config.go')
-rw-r--r--config.go14
1 files changed, 4 insertions, 10 deletions
diff --git a/config.go b/config.go
index 67ef920..daa6b45 100644
--- a/config.go
+++ b/config.go
@@ -20,7 +20,9 @@ var tagCount = 9
// shows focused window title
var windowTitle = 0
-var mod = uint16(xproto.ModMask1)
+// xproto.ModMask1 = Alt
+// xproto.ModMask4 = Super / Win
+var mod = uint16(xproto.ModMask4)
// commands that get executed on startup
var startup = []string{"notify-send hello world!"}
@@ -96,7 +98,7 @@ var keys = []Key{
Mod: mod,
Sym: keysym.XK_0,
Fn: func(conn *xgb.Conn) {
- var tags BitMask = 2 ^ 32 - 1
+ var tags BitMask = 1<<tagCount - 1
switchTags(conn, tags)
},
},
@@ -172,12 +174,4 @@ var keys = []Key{
switchTags(conn, tags)
},
},
- {
- Mod: mod,
- Sym: keysym.XK_0,
- Fn: func(conn *xgb.Conn) {
- var tags BitMask = 511
- switchTags(conn, tags)
- },
- },
}