From 9fd8d16f6004c14c86a28b5f7cecc50da1ba27ad Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Tue, 14 May 2019 20:41:26 -0700 Subject: [PATCH] Added more tags with Super_L (Mod4) key --- config.h | 16 +++++++++++----- config.mk | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/config.h b/config.h index 29028d4..aa44fe9 100644 --- a/config.h +++ b/config.h @@ -23,7 +23,8 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "Media", "Remote", "Root" }; +static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", \ + "1r", "2r", "3r", "4r", "5r", "6r", "7r", "8r", "9r" }; static const Rule rules[] = { /* xprop(1): @@ -49,11 +50,16 @@ static const Layout layouts[] = { /* key definitions */ #define MODKEY Mod1Mask +#define EXTMODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, + { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ + { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ + { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, \ + { EXTMODKEY, KEY, view, {.ui = 1 << (TAG+9)} }, \ + { EXTMODKEY|ControlMask, KEY, toggleview, {.ui = 1 << (TAG+9)} }, \ + { EXTMODKEY|ShiftMask, KEY, tag, {.ui = 1 << (TAG+9)} }, \ + { EXTMODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << (TAG+9)} }, /* helper for spawning shell commands in the pre dwm-5.0 fashion */ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } diff --git a/config.mk b/config.mk index a022c0a..2bf7815 100644 --- a/config.mk +++ b/config.mk @@ -5,7 +5,7 @@ VERSION = 6.1 # paths # PREFIX = /usr/local -PREFIX = /home/mahesh/apps +PREFIX = /home/mahesh/apps/install MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include