cb4111383f
fix(github): libcurl stuck at curl_easy_perform
...
Signed-off-by: kokan <peter.kokai@balabit.com >
2018-02-15 10:50:05 +01:00
482876b63a
refactor(config): Print filename at very beginning
...
There have now been several instances of people reporting that their
bars are not found and polybar not printing the config file name because
the error is thrown first, making it very difficult to debug
2018-02-15 08:43:19 +01:00
d2a7b0269c
refactor(mpd): Print error on mpd_exception
2018-02-14 14:27:25 -08:00
81d2d09ba9
fix(mpd): Clear mpd error after getting error info
...
Before, polybar would crash, trying to throw a server error because
mpd_connection_get_server_error asserts that the error is of type server
error, but it isn't because it was cleared
2018-02-14 14:27:25 -08:00
f531613723
fix(alsa): Use proper speaker mixer name and soundcard
...
The old code causes a segmentation fault, if the speaker and headphone
soundcards differ.
2018-02-13 09:44:16 -08:00
4d48ffed83
fix(battery): check without using path_battery
2018-02-11 20:21:43 +01:00
539e2e09cf
fix(cmake): look for and remove alsa.cpp if not used
2018-02-11 17:25:21 +01:00
1ac5c23fd2
fix(xbacklight): respect enable-scroll
2018-02-11 17:22:44 +01:00
a5b310872c
Respect 'enable-scroll' setting for xworkspaces module
2018-02-03 14:43:34 -08:00
2f113446c0
fix(battery): capture path_battery by copy ( #992 )
...
path_battery goes out of scope, so the stack reference becomes garbage
Fixes #985
2018-02-02 10:42:20 +01:00
26abd0f6c4
fix(mpd): Check m_status before dereferencing it
...
This bug was introduced in 645a3142a1
Fixes #979
2018-01-31 22:17:25 -08:00
2a056d5b23
fix(power): add comments to explain current/power_now
2018-01-30 21:24:51 +01:00
95d3b4f1eb
fix(battery): use power_now correctly
2018-01-30 21:24:51 +01:00
5c7ff09ed6
fix(config): Use proper token object
...
When using the same token multiple times in the same label with
different length properties, polybar would always use the settings for
the first token. This now replaces the tokens one by one, so that a new
token object is used for the length settings each time a token is used
again. Because the token objects are added in order, the replacement
always uses the right token object for the token that is replaced.
Fixes #971
2018-01-27 23:40:19 -08:00
06dee3dedd
fix(volume): Warn instead of throw
2018-01-23 14:33:11 +01:00
e16227ca43
refactor(alsa): rename and move volume -> alsa
2018-01-23 14:33:11 +01:00
1d9dd719bc
refactor(script): Loop over buttons and replace tokens
2018-01-21 14:41:52 -08:00
f79aeac872
feat(script): Add %pid% token for tail commands
...
Is replaced with the pid of the exec command
2018-01-21 14:41:52 -08:00
3af3aea534
fix(pulseaudio): warn only if default sink is not same as specified sink
2018-01-20 12:37:41 -08:00
10656a94cb
fix(pulseaudio): prevent nonresponsiveness and remove redundant getters
2018-01-20 12:37:41 -08:00
1f35b9dc89
fix(pulseaudio): Add logging
2018-01-20 12:37:41 -08:00
0eac7f5d04
fix(pulseaudio): use PA_VOLUME_UI_MAX
2018-01-20 12:37:41 -08:00
8be5427c33
refactor(pulseaudio): remove headphone ramp
2018-01-20 12:37:41 -08:00
1792090d66
refactor(pulseaudio): remove wait timeout, fix indents
2018-01-20 12:37:41 -08:00
6e8b9dea29
fix(pulseaudio): Move pulseaudio to separate module
2018-01-20 12:37:41 -08:00
a08c5c710a
fix(pulseaudio): fix get_name(), cleanup
2018-01-20 12:37:41 -08:00
5c6b56614e
fix(pulseaudio): Rewrite error checking
2018-01-20 12:37:41 -08:00
916c7b6852
refactor(pulseaudio): Use index instead of name to track sinks
2018-01-20 12:37:41 -08:00
23ee9afb6f
fix(pulseaudio): Use inc_volume() instead of set_volume()
2018-01-20 12:37:41 -08:00
318a6d83cf
refactor(pulseaudio): Move loop to inline function
2018-01-20 12:37:41 -08:00
4f15f42f2c
fix(build): Only use one volume backend
2018-01-20 12:37:41 -08:00
81913cf181
wip(pulseaudio): create pulseaudio backend
2018-01-20 12:37:41 -08:00
6ed4838738
fix(mpd): Update on MPD_IDLE_QUEUE events
...
MPD_IDLE_PLAYLIST is deprecated since 2009, it has the same value as
MPD_IDLE_QUEUE, so we are now using that
2018-01-15 19:32:02 +01:00
645a3142a1
fix(mpd): Always update mpd data
...
Only updating when an mpd event occurred would cause issues when mpd was
playing and the machine was put to sleep because the elapsed time was
calculated by taking the time difference of the last update and now
which would give you wrong numbers, if the machine was in standby in
between.
Since the update function on the module is only called once a second (or
when an event happens), we can just update the data every time without a
huge performance hit.
Fixes #915
2018-01-15 19:32:02 +01:00
d8414c6ec5
feat(i3): Add workspace separator ( #938 )
...
Puts a label-separator node between workspaces on the bar. Since the
separator uses a label it can be configured like any other label
Closes : #929
2018-01-06 16:19:02 -08:00
a7eb7b3576
feat(bspwm): Add workspace separator ( #942 )
...
Same as the i3 workspace separator
2018-01-06 16:18:09 -08:00
d3abcc97f6
feat(mpd): Add support for icon-consume ( #861 )
2017-12-04 11:38:17 -08:00
c348c3e917
fix(mpd): get format-online options for format-{playing,paused,stopped} ( #868 )
2017-11-30 21:58:34 +01:00
5d2deb1a99
fix(renderer): Only draw text bg if color differs from bar bg ( #831 )
...
Fixes #759 by only drawing text background when its color is different from the background color of the bar itself.
Explicitly setting a module's background to `background-0` now stops working.
2017-11-12 09:53:54 +01:00
3092a1b18f
feat(mpd): Get name and/or uri if title not found ( #823 )
2017-11-08 21:12:44 -08:00
3f9f2dc37f
fix(github): Handle curl exceptions and bad status codes ( #811 )
...
If any error occurs, a warning is logged and -1
is displayed as the number of notifications
2017-11-07 23:29:44 +01:00
dc0edfb994
fix(i3): Check whether current ws is found ( #826 )
...
Fixes dereference of end() iterator in case current workspace is not found (#824 ).
Fixes #824
2017-11-01 16:47:07 +01:00
d4d571425d
refactor(mpd): Keep tag getters consistent
2017-10-23 15:07:03 -07:00
5737156ae5
feat(temperature): Fahrenheit and Celsius tokens ( #804 )
...
%temperature-f% and %temperature-c%
2017-10-18 22:29:53 +02:00
cbd87efc64
fix(build): pow10 not defined on Fedora Rawhide ( #807 )
...
pow10 is a GNU extension and not available everywhere
2017-10-15 19:16:07 +02:00
5b7d7b8232
Merge pull request #729 from NBonaparte/fix-prefix-suffix
...
fix(modules): Separate prefix/suffix tags, revert tag stack
2017-09-24 14:00:34 -07:00
c7cb5ebf94
fix(renderer): Handle nested actions events properly
...
For nested actions, the inner action should override the outer action.
But because the list of actions was not iterated in reverse the outer
action was matched first.
Fixes #760
2017-09-23 16:53:04 +02:00
251c3e874a
fix(renderer): Only close a single action
...
Before the renderer would close all active matching actions. That way
nested actions would also close their surrounding action block
2017-09-23 16:49:39 +02:00
89fccde765
fix(modules): Apply format settings to pre/suffix
2017-09-22 23:40:31 -07:00
4663d01a51
Merge pull request #727 from NBonaparte/change-cursor
...
feat: Change cursors over clickable/scrollable areas
2017-09-17 22:33:32 +02:00