Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Conversation

@qsmodo
Copy link

@qsmodo qsmodo commented May 30, 2021

For those who use window managers (e.g. dwm, icewm) that show window titles, it may be useful to show the current file name in the title. This PR breaks the title in a string literal prefix and a suffix that shows a file path component, both X-resources configurable.

sxiv - fileInView.png
^^^^^^^
prefix ^^^^^^^^^^^^^^
           suffix

The suffix can be the filename, its full path, its directory name, its directory full path, or, to keep backwards compatibility, nothing. Please see the manual for more detailed information.

The title is broken in a literal prefix and in a path suffix.
Both can be configured via X-resources.
@bakkeby
Copy link

bakkeby commented Jun 9, 2021

Thanks, this works great! Added to my own build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants