Commit Graph

1867 Commits

Author SHA1 Message Date
771cd1fd98 Merge tag '3.5.7' 2023-08-05 17:26:56 +02:00
patrick96
92722e05c2
Release 3.5.7 2021-09-21 18:12:57 +02:00
patrick96
a8cba9c43c fix(ipc): Replace all %pid% tokens
Fixes #2500
2021-09-13 14:18:18 +02:00
patrick96
6136c08d42 tray: Properly handle missing _XEMBED_INFO
The icon not supporting XEMBED is not fatal, we just treat is as always
mapped.

Fixes #2479
Fixes #2442
2021-09-13 00:12:33 +02:00
Mihir Lad
0c3e139ac5 Merge branch 'dwm-develop' 2021-07-19 23:35:42 -04:00
Mihir Lad
6b93544b47 contrib: Bump PKGBUILD version 2021-07-19 23:35:18 -04:00
Mihir Lad
a0e9d48d77
Merge pull request #29 from Zaedus/master
Add default option for title label
2021-07-19 23:16:22 -04:00
Zaedus
e4bd04f5ae Update README 2021-07-15 20:01:17 -05:00
Zaedus
66cd4cd08f Implement title default value 2021-07-15 19:24:16 -05:00
patrick96
eb9c192d04
Release 3.5.6 2021-05-24 01:00:50 +02:00
patrick96
d8f4d56a95 Fix i3 module assertion failure
This brings #2417 into the hotfix release

Ref #2417
2021-05-24 00:57:57 +02:00
patrick96
cbe4521737 tray: Do not swallow clear_window exceptions 2021-05-24 00:47:22 +02:00
patrick96
ad987098ff fix(tray): Support clients with different depths
XCB_BACK_PIXMAP_PARENT_RELATIVE requires that the client has the same
depth as the tray window.

There was an issue with dropbox having a depth of 32 and the tray window
having a depth of 24 that caused the configuration of the icon to fail.
It would then be displayed outside of the bar because the catch block
was not hit (different exception).

We now just don't configure XCB_CW_BACK_PIXMAP. This seems to work and
is also what stalonetray does.

This does not fix the issue with dropbox having an arbitrary background.

Fixes #1679
Fixes #2430
2021-05-24 00:47:22 +02:00
patrick96
1ddd8bd1e1 fix(build): Disable sphinx manpage section dirs
Before sphinx 4.0, this was the default but was changed in 4.0.
Now by default the folder structure looks like this:

man
├── 1
│   └── polybar.1
└── 5
    └── polybar.5

This restores the old behavior where there weren't individual folders
for the different sections.

Fixes #2424
Ref: https://www.sphinx-doc.org/en/master/changes.html#id14
2021-05-09 21:28:22 +02:00
patrick96
1d033edaae
Release 3.5.5 2021-03-01 21:33:03 +01:00
patrick96
6b1c5489a2 fix(build): Only change VersionDirective if supported
The VersionChange class is not available in older versions of sphinx, so
we just disable it

Fixes #2356
2021-03-01 21:27:59 +01:00
patrick96
fdc670a9dd
Release 3.5.4 2021-01-07 13:44:30 +01:00
Mihir Lad
bb94e184b1 README.md: Add link to personal bar config 2021-01-06 14:37:16 -05:00
patrick96
e30d2c4c1f Remove tag compaction "optimizations"
The intention was to remove tags that won't have an effect and join
together consecutive tags.
However the patterns used can just as well appear in regular text, so
this can replace characters inside user defined text and not just
formatting tags.

Fixes #2331
2020-12-25 00:33:32 +01:00
patrick96
64649a1e47
Release 3.5.3 2020-12-23 17:36:20 +01:00
Mihir Lad
6b54ea2773 contrib: Add polybar-dwm-module PKGBUILD
Also remove other PKGBUILDs and rpm
2020-12-19 20:45:02 -05:00
Mihir Lad
56619b94a4 README.md: Replace with info about fork 2020-12-19 20:20:36 -05:00
Mihir Lad
78475b7806 dwm: Refactor code for new action handling
This is since the polybar 3.5.0 release
2020-12-19 19:53:00 -05:00
brendo
254a23344a proper wrap in prev_scrollable_tag 2020-12-19 19:50:15 -05:00
brendo
e107a510e8 tag scroll wrap and reverse 2020-12-19 19:50:15 -05:00
brendo
6cbe60be3a scrollable tags with m_tags_scroll_empty 2020-12-19 19:50:15 -05:00
brendo
44d5b81d5d default to false 2020-12-19 19:50:15 -05:00
brendo
b49b3ae613 Enable scrolling through available tags by scrolling on the window title bar 2020-12-19 19:50:15 -05:00
Mihir Lad
6648f5d8d0 settings.cpp.cmake: Remove DWM_SOCKET_PATH
Should have been removed in 416bb9888ce9387bdef4a0fe46b62a569db062b6
2020-12-19 19:50:15 -05:00
Mihir Lad
81b569f912 dwm: Throw module_error if reconnect fails
If reconnect fails, the rest of the module is useless. Better to throw a
module_error in case of any predictable dwmipc errors.
2020-12-19 19:50:15 -05:00
Mihir Lad
81349d657d dwm: Don't swallow exceptions in stop()
Don't want to mask any nasty bugs.
2020-12-19 19:50:15 -05:00
Mihir Lad
6584710b1e dwm: Close commands in reverse order of opening
Just for consistency and style. Doesn't actually affect behavior at the moment.
2020-12-19 19:50:15 -05:00
Mihir Lad
7e78844a8f dwm: Use m_state_labels.emplace instead of .insert
Looks cleaner.
2020-12-19 19:50:15 -05:00
Mihir Lad
fbe05890e0 dwm: Don't use trailing return types
Keep it consistent with the rest of the code.
2020-12-19 19:50:15 -05:00
Mihir Lad
803fe549c6 dwm: Make urgent tag state override focused state
A window can have the urgent hint set while being in a focused tag if that
window is not in focus. As a result, the urgent state should overrule the
focused state.

I also added a pretty truth table.
2020-12-19 19:50:15 -05:00
Mihir Lad
567b31bcc6 Remove dwm make dependency
dwm is not required to compile; it is only required to run the module, so
there's no reason to add it as a hard dependency.
2020-12-19 19:50:12 -05:00
Mihir Lad
de3748122f dwm: Get socket path from config, not env or cmake
Don't get the socket path from cmake or from an environment variable. Instead,
get it from the polybar config. If it's not specified, the default is
/tmp/dwm.sock which is default for the IPC patch.

This way is easier for the user to configure.
2020-12-19 19:48:48 -05:00
Mihir Lad
a0fa04d6a6 dwm: Fix log typo
Co-authored-by: Patrick Ziegler <p.ziegler96@gmail.com>
2020-12-19 19:48:48 -05:00
Mihir Lad
f17aef943c src/CMakeLists.txt: Remove dwm.cpp if dwm disabled 2020-12-19 19:48:48 -05:00
Mihir Lad
56135fbf62 dwm: Make compatible with jsoncpp v1.7.4
This version of jsoncpp requires a cast when calling run_command to disambiguate
the function call.
2020-12-19 19:48:48 -05:00
Mihir Lad
48aede9f63 README.md: Add dwm module 2020-12-19 19:48:26 -05:00
Mihir Lad
30e5008450 Fix build fail when xcb-util-xrm not installed
When this package is not installed, the struct randr type never gets fully
defined because randr.hpp never gets included. This causes the build to fail in
update_monitor_ref.

See issue mihirlad55/polybar-dwm-module#10.
2020-12-19 19:46:47 -05:00
Mihir Lad
feadaecf88 build.sh: Add -d to all features echo 2020-12-19 19:46:47 -05:00
Mihir Lad
e60f8f6dc7 config.cmake: Imporove dwm module comments 2020-12-19 19:43:05 -05:00
Mihir Lad
d1cdd70dd8 dwmipcpp: Update submodule 2020-12-19 19:43:05 -05:00
Mihir Lad
8c1085d6bd dwm: Only find secondary_layout if m_layout_click
Secondary layout would not be used otherwise.
2020-12-19 19:43:05 -05:00
Mihir Lad
7342b03240 dwm: Remove duplicate get_layouts 2020-12-19 19:43:05 -05:00
Mihir Lad
7b1a384c22 dwm: Add more info logging
To help with debugging.
2020-12-19 19:43:05 -05:00
Mihir Lad
48d661d51a dwm: Remove duplicate update_floating_label
This already exists further down in the constructor
2020-12-19 19:43:05 -05:00
Mihir Lad
8e205eeb15 dwm: Connect to socket in try-catch
Catch dwmipc errors and throw a module error if connecting to the socket fails.
2020-12-19 19:43:05 -05:00