https://github.com/baskerville/xtitle
Outputs X window titles
https://github.com/baskerville/xtitle
Last synced: 11 months ago
JSON representation
Outputs X window titles
- Host: GitHub
- URL: https://github.com/baskerville/xtitle
- Owner: baskerville
- License: unlicense
- Created: 2013-03-04T11:26:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T01:48:25.000Z (over 5 years ago)
- Last Synced: 2025-07-27T15:54:37.733Z (about 1 year ago)
- Language: C
- Size: 35.2 KB
- Stars: 121
- Watchers: 9
- Forks: 17
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
If arguments are given, outputs the title of each arguments, otherwise outputs the title of the active window and continue to output it as it changes if the *snoop* mode is on.
# Synopsis
xtitle [-h|-v|-s|-e|-i|-f FORMAT|-t NUMBER] [WID ...]
# Options
- `-h` — Print the synopsis to standard output and exit.
- `-v` — Print the version to standard output and exit.
- `-s` — Activate the *snoop* mode.
- `-e` — Escape the following characters: ', " and \\.
- `-i` — Try to retrieve the title from the `_NET_WM_VISIBLE_NAME` atom.
- `-f FORMAT` — Use the given `printf`-style format. The only supported sequences are `%s` (for title), `%u` (for window id) and `\n`.
- `-t NUMBER` — Truncate the title after |*NUMBER*| characters starting at the first (or the last if *NUMBER* is negative) character.