diff options
| author | crecher <crecher@crecher.net> | 2026-10-21 22:32:22 +0000 |
|---|---|---|
| committer | crecher <crecher@crecher.net> | 2026-10-21 22:32:22 +0000 |
| commit | 119f15531c28531ff879a5c532f4a44b04a19398 (patch) | |
| tree | 30c5fae117523c68c4f240cf4b12fc948ba3e20a /config.go | |
| parent | 5f2faec53cd88d723d8e7572e2f2a73949d6025a (diff) | |
| download | wm-119f15531c28531ff879a5c532f4a44b04a19398.tar.gz wm-119f15531c28531ff879a5c532f4a44b04a19398.zip | |
fixes
Signed-off-by: crecher <crecher@crecher.net>
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -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) - }, - }, } |