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

Add currently viewed file information to the window title#453

Open
qsmodo wants to merge 1 commit into
xyb3rt:masterfrom
qsmodo:title
Open

Add currently viewed file information to the window title#453
qsmodo wants to merge 1 commit into
xyb3rt:masterfrom
qsmodo:title

Conversation

@qsmodo

@qsmodo qsmodo commented May 30, 2021

Copy link
Copy Markdown

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

bakkeby commented Jun 9, 2021

Copy link
Copy Markdown

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