bcadf64031
Show application icon when using sway window module
...
Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de >
2022-01-24 17:37:51 +01:00
9972384597
sway/window: include floating_nodes when considering window count for class
2021-10-02 18:35:38 +02:00
a03283d65f
rewriteTitle: allow multiple sequential rewrites
2021-04-26 20:26:43 +02:00
af3c868a5b
Catch exception on erroneous rules
...
std::regex and std::regex_replace may throw an std::regex_error if the
expression or replacement contain errors.
Log this error and carry on with the next rule, so that the title is
shown even if the config contains errors.
2021-04-21 12:24:47 +02:00
b16c8972c7
Add option to rewrite sway/window title
...
Rewrites window title according to config option "rewrite".
"rewrite" is an object where keys are regular expressions and values are
rewrite rules if the expression matches. Rules may contain references to
captures of the expression. Regex and replacement follow ECMA-script
rules. If no regex matches, the title is left unchanged.
example:
"sway/window": {
"rewrite": {
"(.*) - Mozilla Firefox": " $1",
"(.*) - zsh": " $1",
}
}
2021-04-21 12:24:47 +02:00
e19aa1d43a
[sway/window] Add app_id to usable fields in title
2021-01-30 01:41:45 +01:00
cb7baee045
Fixed compile error
2020-12-18 18:17:17 -05:00
85ca5027f4
Fix Sway #waybar.solo CSS rule applying on split
...
This error occurs because of an incorrect assumption that the size of
the list of nodes that contains the focused window is the number of
windows in a workspace.
The windows in a workspace are stored as a tree by Sway, rather than a
list, so the number of windows has to be found by counting the leaves of
a workspace tree.
2020-12-18 18:14:14 -05:00
4a7dd400fe
Merge branch 'master' into on-update
2020-04-12 18:32:19 +02:00
b40cdcb5bd
refactor: call parent update
2020-04-12 18:30:21 +02:00
ae6ca36fa7
fix(sway): resolve destruction dependency between Ipc and SleeperThread
...
Ipc destructor closes socket and thus wakes up SleeperThread which was
waiting for socket data in Ipc::handleEvent.
Ipc::handleEvent then proceeds with sending signal to already destroyed
object, causing heap-use-after-free Address Sanitizer error.
2020-02-04 23:22:43 -08:00
66f2cbed51
Fix typo
...
ouput -> output
2019-08-31 17:50:56 +00:00
a6980fca7f
feat: ellipsize modules
2019-06-28 14:16:09 +02:00
bd5146fdcf
fix(Label): ELLIPSIZE all label modules
2019-06-28 13:49:04 +02:00
ff9d598c16
fix: add proper mutex
2019-06-17 11:39:45 +02:00
340ec7be91
refactor: AModule
2019-06-15 14:57:52 +02:00
dabe2bebbb
feat(sway/window): handle floating nodes
2019-06-14 11:27:40 +02:00
486b5a5d38
fix(sway/window): check output recursively
2019-06-14 10:57:22 +02:00
3c9b533997
fix(window): avoid hexpand
2019-06-11 17:57:17 +02:00
a37b4687ff
Revert "refactor(window): we don't need to subscribe workspace events"
...
This reverts commit 648eecdd83
.
2019-06-11 14:06:31 +02:00
648eecdd83
refactor(window): we don't need to subscribe workspace events
2019-06-07 15:08:33 +02:00
1962caf144
refactor(window): gtk stuff in update method
2019-06-04 17:34:00 +02:00
d24d85bebf
refactor: move label name and id to label contructor
2019-05-22 12:06:24 +02:00
51be97f9aa
Adding spdlog
2019-05-18 19:44:45 -04:00
0c3c548bc0
fix(Window): avoid concurrency
2019-05-13 14:35:45 +02:00
62f8af8a39
fix(Window): avoid multiple same classes
2019-05-13 10:56:48 +02:00
7cdde05568
remove empty and solo classes when they do not apply
2019-05-11 20:36:10 +02:00
5bf0ca85ac
refactor: try/catch around json parse
2019-05-09 10:30:54 +02:00
5a44c8c6de
refactor: avoid unneeded json parsing
2019-05-07 13:43:48 +02:00
74137befba
fix(window): title flickers
2019-05-07 13:31:41 +02:00
717a07d584
refactor(Window): simpler conditions
2019-04-26 15:29:54 +02:00
bb8ff5a99f
feat(Bar): add class depend of window in the workspace
2019-04-25 16:47:51 +02:00
311c34ecbc
feat(Bar): handle widget size changes
2019-04-24 12:37:24 +02:00
cccf60c30e
fix(Workspaces): fix concurrence and move json parser to ipc client
2019-04-23 11:42:08 +02:00
bb1cf7570e
refactor(IPC): use sigc signal
2019-04-19 11:09:06 +02:00
6ed8f94dab
refactor: format code
2019-04-18 17:52:00 +02:00
83a6475510
feat: can disable tooltip
2019-02-22 11:35:47 +01:00
6d03d9f6a9
fix(window): Fix #154
2019-01-27 11:59:07 +01:00
ce6816737c
fix(window): Ignore waybar
...
With this, the window title waybar will be ignored so it wont flicker as decribed in #148
2019-01-26 19:02:11 +01:00
399f61df98
refactor: proper modules destruction
2019-01-13 22:22:22 +01:00
b554094c7e
feat: args && class id
2018-12-18 17:30:54 +01:00
c7b0639f32
fix(workspaces): check thread is running
2018-12-09 10:49:28 +01:00
691fb88057
refactor(modules): const bar
2018-12-01 00:10:41 +01:00
391a7de94a
fix(window): escape window name
2018-11-25 15:21:00 +01:00
bd62c4cbc5
feat(Label): use set_markup
2018-11-21 20:49:09 +01:00
b3559328f1
fix(window): ellipsize
2018-11-20 23:24:33 +01:00
c9a8a07976
fix(window): title on new workspace
2018-10-29 21:52:53 +01:00
9a333088e5
Merge branch 'tray-gdbus' of github.com:topisani/Waybar into tray-gdbus
2018-10-04 18:47:06 +02:00
d5d620e72d
feat(Window): handle closed window
2018-09-18 21:16:35 +02:00
20ff2cab9e
feat(Tray): handle item unregister
2018-09-15 19:01:28 +02:00