Commit Graph

2128 Commits

Author SHA1 Message Date
patrick96
3c51a1d955 cmake: Remove empty files 2020-12-24 02:20:38 +01:00
patrick96
74903d49a7 cmake: Mark checklib variables as advanced 2020-12-24 02:20:38 +01:00
patrick96
64e246e734 cmake: Add option to enable/disable shell files 2020-12-24 02:20:38 +01:00
patrick96
9d47b83697 cmake: Add option to enable/disable sample config 2020-12-24 02:20:38 +01:00
patrick96
ddfec6fc8f build: Add option to enable/disable html/manpages 2020-12-24 02:20:38 +01:00
patrick96
c3fbd1e3e8 ci: Add job for polybar-msg 2020-12-24 02:20:38 +01:00
patrick96
923d9ae061 Add cmake files for configuring individual targets
This makes the code a bit less messy. We barely need if(BUILD_...)
guards inside the cmake files, just the root CMakeLists.txt.
2020-12-24 02:20:38 +01:00
patrick96
20c88ca977 ci: Use libnl 2020-12-24 02:20:38 +01:00
patrick96
c24a6999a4 refactor(cmake): Allow targets to be enabled individually
Each major target of polybar can now be enabled/disabled while
configuring (even polybar itself).

The cmake code specific to each target will only run if the target is
enabled.

This allows us to for example just build the documentation without
having to run all the cmake code related to compilation or having the
polybar dependencies installed (other than sphinx).
2020-12-24 02:20:38 +01:00
patrick96
771154742c cmake: Use CMAKE_CXX_COMPILER_LAUNCHER for ccache 2020-12-24 02:20:38 +01:00
patrick96
16b2970bd7 build: Bump cmake version to 3.5.0
This includes the changes from polybar/xpp#30 which also updates the
minimum cmake version in the xpp submodule
2020-12-24 02:20:38 +01:00
Patrick Ziegler
7d1b265ef4
Update PKGBUILD for 3.5.3 (#2327) 2020-12-23 17:56:48 +01:00
Kamui
89a723a4d9
feat(config): Try to load config.ini (#2324)
* Added .ini extension check to default config

* Added change to changelog and man page

* Added change to changelog and man page

* removed .vscode folder

* removed new lines in changelog
2020-12-23 17:52:30 +01:00
patrick96
218911c463
Merge remote-tracking branch 'origin/hotfix/3.5.3' 2020-12-23 17:42:12 +01:00
patrick96
64649a1e47
Release 3.5.3 2020-12-23 17:36:20 +01:00
Patrick Ziegler
eee22cb351 Create FUNDING.yml 2020-12-23 17:27:36 +01:00
patrick96
1dc8d2f30e cmake: Make xrandr and xcomposite required
They were required before, but could technically be deactived (the
compilation would fail, but configuration was possible).

The WITH_XRANDR and WITH_XCOMPOSITE now no longer appear in the cmake
part. It still appears in the source code, but is always set to 1

Fixes #1536
2020-12-22 00:37:07 +01:00
patrick96
374716d329 cmake: Remove unused variables 2020-12-22 00:37:07 +01:00
patrick96
dc8d7fd0e0 Add documentation 2020-12-22 00:37:07 +01:00
patrick96
fd2edfdc08 cmake: Display package versions in summary 2020-12-22 00:37:07 +01:00
patrick96
84da909b47 Fix FindXcb not doing version checks for components
Version checks for FindXcb only make sense if all components have the
same version or only a single component is specified
2020-12-22 00:37:07 +01:00
patrick96
ade8b40b36 cmake: Fix find_package_handle_standard_args warning 2020-12-22 00:37:07 +01:00
patrick96
4f2a145f4f cmake: Update list of source files 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
cb0aeacbf2 refactoring find packages 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
b143e43491 enhancement(cmake): remove all mentions of "dirs" variable 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
cb47512871 feat(cmake): removing warnings in dependencies. 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
cb728ac7c4 fix(cmake): restoring output directory 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
bb5cf0113e fix(x11): Don't include composite when disabled 2020-12-22 00:37:07 +01:00
Jérôme BOULMIER
31fafa86f7 feat(cmake): removing globs and using imported targets 2020-12-22 00:37:07 +01:00
Patrick Ziegler
9d52408cad
Add links to polybar collective (#2318) 2020-12-21 16:27:04 +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