Adds more window title options (#169)

* Adds options for windowtitle to toggle: custom title, icon and truncation

* Implements window title toggles: showIcon and showCustomTitle; Adds a new default title function and truncates it if specified

* incorporate new show label option into window title

* fix window title spacing to work with new styles

* allows truncation for custom window titles

* allows custom window title icon with default window title

* add option to show the window class name or title; refactor for consistency and easier readability

* remove redundant custom window title check
This commit is contained in:
painerp
2024-09-08 22:09:13 +02:00
committed by GitHub
parent 4f91bb8b8f
commit 1aed9f51f9
4 changed files with 95 additions and 27 deletions

View File

@@ -814,8 +814,13 @@ const options = mkOptions(OPTIONS, {
icon: opt("󰣇"),
},
windowtitle: {
custom_title: opt(true),
title_map: opt([]),
class_name: opt(true),
label: opt(true),
icon: opt(true),
truncation: opt(true),
truncation_size: opt(50),
},
workspaces: {
show_icons: opt(false),