sxiv icon indicating copy to clipboard operation
sxiv copied to clipboard

Add currently viewed file information to the window title

Open qsmodo opened this issue 3 years ago • 1 comments

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 avatar May 30 '21 13:05 qsmodo

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

bakkeby avatar Jun 09 '21 14:06 bakkeby