aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
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)
- },
- },
}