Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
364 B

  1. void
  2. shiftview(const Arg *arg)
  3. {
  4. Arg shifted;
  5. unsigned int seltagset = selmon->tagset[selmon->seltags] & ~SPTAGMASK;
  6. if (arg->i > 0) // left circular shift
  7. shifted.ui = (seltagset << arg->i)
  8. | (seltagset >> (NUMTAGS - arg->i));
  9. else // right circular shift
  10. shifted.ui = seltagset >> -arg->i
  11. | seltagset << (NUMTAGS + arg->i);
  12. view(&shifted);
  13. }