diff options
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) - }, - }, } |