summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-10-10 05:32:34 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-10-10 05:32:34 +0530
commit49949cd1f28137be1b0b3ea229cbc52024cdeed5 (patch)
tree76ccc97f913b5f9df644fdc4cf118feda8cf6bf4
parentb3cb38f84d323d7562f0b4092c203f3374aa4200 (diff)
renaming tab functions
-rw-r--r--config.h4
-rw-r--r--dwm.c16
2 files changed, 10 insertions, 10 deletions
diff --git a/config.h b/config.h
index 927aecc..6607c3b 100644
--- a/config.h
+++ b/config.h
@@ -112,8 +112,8 @@ static const Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { ALTKEY, XK_Tab, viewnext, {0} },
- { ALTKEY|ShiftMask, XK_Tab, viewnextnoskip, {0} },
+ { ALTKEY, XK_Tab, viewnextskipvac,{0} },
+ { ALTKEY|ShiftMask, XK_Tab, viewprevskipvac,{0} },
{ MODKEY|ShiftMask, XK_Right, tagtonext, {0} },
{ MODKEY|ShiftMask, XK_Left, tagtoprev, {0} },
{ MODKEY, XK_minus, setgaps, {.i = -1 } },
diff --git a/dwm.c b/dwm.c
index 4e5f723..0585444 100644
--- a/dwm.c
+++ b/dwm.c
@@ -238,7 +238,7 @@ static void movemouse(const Arg *arg);
static unsigned int nexttag(void);
static Client *nexttiled(Client *c);
static void pop(Client *c);
-static unsigned int nexttagnoskip(void);
+static unsigned int prevtagskip(void);
static void propertynotify(XEvent *e);
static void quit(const Arg *arg);
static Monitor *recttomon(int x, int y, int w, int h);
@@ -294,8 +294,8 @@ static void updatetitle(Client *c);
static void updatewindowtype(Client *c);
static void updatewmhints(Client *c);
static void view(const Arg *arg);
-static void viewnext(const Arg *arg);
-static void viewnextnoskip(const Arg *arg);
+static void viewnextskipvac(const Arg *arg);
+static void viewprevskipvac(const Arg *arg);
static Client *wintoclient(Window w);
static Monitor *wintomon(Window w);
static Client *wintosystrayicon(Window w);
@@ -1526,7 +1526,7 @@ pop(Client *c)
}
unsigned int
-nexttagnoskip(void)
+prevtagskip(void)
{
unsigned int seltag = selmon->tagset[selmon->seltags];
unsigned int usedtags = 0;
@@ -2120,7 +2120,7 @@ tagtoprev(const Arg *arg)
if (selmon->sel == NULL)
return;
- if ((tmp = nexttagnoskip()) == selmon->tagset[selmon->seltags])
+ if ((tmp = prevtagskip()) == selmon->tagset[selmon->seltags])
return;
tag(&(const Arg){.ui = tmp });
@@ -2815,15 +2815,15 @@ swallowingclient(Window w)
}
void
-viewnext(const Arg *arg)
+viewnextskipvac(const Arg *arg)
{
view(&(const Arg){.ui = nexttag()});
}
void
-viewnextnoskip(const Arg *arg)
+viewprevskipvac(const Arg *arg)
{
- view(&(const Arg){.ui = nexttagnoskip()});
+ view(&(const Arg){.ui = prevtagskip()});
}
Client *