A small program to get the tags currently focused in the River Wayland compositor
Go to file
tarneo b4295fb03a
Add config info to README.md
2023-12-05 19:24:49 +01:00
.clang-format fix for multiple displays 2022-08-20 22:31:56 +05:30
.gitignore Initial commit for tarneaux/river-get-tags 2023-12-05 19:06:10 +01:00
LICENSE initial commit 2021-10-24 17:09:27 +05:30
Makefile Make Makefile shorter 2023-12-05 19:08:48 +01:00
README.md Add config info to README.md 2023-12-05 19:24:49 +01:00
river-control-unstable-v1.xml initial commit 2021-10-24 17:09:27 +05:30
river-get-tags.c Initial commit for tarneaux/river-get-tags 2023-12-05 19:06:10 +01:00
river-status-unstable-v1.xml Updated protocol version file 2023-07-21 23:39:28 +05:30

README.md

river-list-tags

A small utility to get the currently focused and occupied tags in the River compositor on Wayland.

This will most likely be used for scripting. I used for the my eww (Elkowar's Wacky Widgets) bar.

To configure the number of printed bits, change the 5 value (6 tags minus one for me) in river-list-tags.c

void printbits(unsigned int v) {
  int i; // for C89 compatability
  for(i = 0; i <= 5; i++) putchar('0' + ((v >> i) & 1));
}

Installation

make
sudo make install

Usage

Just run the tool:

river-list-tags

Credits & License

This tool is heavily based on Adithya Kumar's river-shifttags. I basically just removed some of the functionality and adjusted the prints.

License: GPL version 3