Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Add path information to the window title #6

Merged
merged 2 commits into from
Aug 23, 2021
Merged

Add path information to the window title #6

merged 2 commits into from
Aug 23, 2021

Conversation

GRFreire
Copy link
Owner

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

xyb3rt#453 (comment)
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.

qsmodo and others added 2 commits May 30, 2021 23:20
The title is broken in a literal prefix and in a path suffix.
Both can be configured via X-resources.
@GRFreire GRFreire merged commit 640b81c into master Aug 23, 2021
@GRFreire GRFreire deleted the title branch August 23, 2021 18:38
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