summaryrefslogtreecommitdiff
path: root/dwm/patch/shiftswaptags.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm/patch/shiftswaptags.c')
-rwxr-xr-xdwm/patch/shiftswaptags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dwm/patch/shiftswaptags.c b/dwm/patch/shiftswaptags.c
new file mode 100755
index 0000000..abf6047
--- /dev/null
+++ b/dwm/patch/shiftswaptags.c
@@ -0,0 +1,7 @@
+/* swaps "tags" (all the clients) with the next/prev tag. */
+void
+shiftswaptags(const Arg *arg)
+{
+ Arg shifted = shift(arg, 0);
+ swaptags(&shifted);
+}