patrick96
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
NBonaparte
3af3aea534
fix(pulseaudio): warn only if default sink is not same as specified sink
2018-01-20 12:37:41 -08:00
NBonaparte
10656a94cb
fix(pulseaudio): prevent nonresponsiveness and remove redundant getters
2018-01-20 12:37:41 -08:00
NBonaparte
1f35b9dc89
fix(pulseaudio): Add logging
2018-01-20 12:37:41 -08:00
NBonaparte
0eac7f5d04
fix(pulseaudio): use PA_VOLUME_UI_MAX
2018-01-20 12:37:41 -08:00
NBonaparte
8be5427c33
refactor(pulseaudio): remove headphone ramp
2018-01-20 12:37:41 -08:00
NBonaparte
1792090d66
refactor(pulseaudio): remove wait timeout, fix indents
2018-01-20 12:37:41 -08:00
NBonaparte
6e8b9dea29
fix(pulseaudio): Move pulseaudio to separate module
2018-01-20 12:37:41 -08:00
NBonaparte
a08c5c710a
fix(pulseaudio): fix get_name(), cleanup
2018-01-20 12:37:41 -08:00
NBonaparte
5c6b56614e
fix(pulseaudio): Rewrite error checking
2018-01-20 12:37:41 -08:00
NBonaparte
916c7b6852
refactor(pulseaudio): Use index instead of name to track sinks
2018-01-20 12:37:41 -08:00
NBonaparte
23ee9afb6f
fix(pulseaudio): Use inc_volume() instead of set_volume()
2018-01-20 12:37:41 -08:00
NBonaparte
318a6d83cf
refactor(pulseaudio): Move loop to inline function
2018-01-20 12:37:41 -08:00
NBonaparte
4f15f42f2c
fix(build): Only use one volume backend
2018-01-20 12:37:41 -08:00
NBonaparte
81913cf181
wip(pulseaudio): create pulseaudio backend
2018-01-20 12:37:41 -08:00
patrick96
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
patrick96
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
Patrick Ziegler
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
Patrick Ziegler
a7eb7b3576
feat(bspwm): Add workspace separator ( #942 )
...
Same as the i3 workspace separator
2018-01-06 16:18:09 -08:00
Jens Henniges
d3abcc97f6
feat(mpd): Add support for icon-consume ( #861 )
2017-12-04 11:38:17 -08:00
NBonaparte
c348c3e917
fix(mpd): get format-online options for format-{playing,paused,stopped} ( #868 )
2017-11-30 21:58:34 +01:00
Vasili Karaev
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
NBonaparte
3092a1b18f
feat(mpd): Get name and/or uri if title not found ( #823 )
2017-11-08 21:12:44 -08:00
Kókai Péter
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
Vasili Karaev
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
NBonaparte
d4d571425d
refactor(mpd): Keep tag getters consistent
2017-10-23 15:07:03 -07:00
Chris Snell
5737156ae5
feat(temperature): Fahrenheit and Celsius tokens ( #804 )
...
%temperature-f% and %temperature-c%
2017-10-18 22:29:53 +02:00
Pier
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
NBonaparte
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
patrick96
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
patrick96
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
NBonaparte
89fccde765
fix(modules): Apply format settings to pre/suffix
2017-09-22 23:40:31 -07:00
Patrick Ziegler
4663d01a51
Merge pull request #727 from NBonaparte/change-cursor
...
feat: Change cursors over clickable/scrollable areas
2017-09-17 22:33:32 +02:00
NBonaparte
27f53eb129
Merge pull request #745 from patrick96/issues/744
...
fix(date): date and time string limited to 63 chars
2017-09-17 13:20:55 -07:00
NBonaparte
70023b07c1
refactor(cursor): Include double clicks and fix scroll to click changes
2017-09-16 19:48:38 -07:00
NBonaparte
e612fe1624
refactor(cursor): use map for cursor list
2017-09-16 15:31:24 -07:00
NBonaparte
b7f1960a0a
fix(cursor): change arrow_names to default_names
2017-09-16 15:31:24 -07:00
NBonaparte
1886cf97a8
fix: pass action by reference
2017-09-16 15:31:24 -07:00
NBonaparte
1dc111c0fa
fix: make xcb-cursor optional for now
2017-09-16 15:31:24 -07:00
NBonaparte
65edba3321
feat: add cursor change
2017-09-16 15:31:24 -07:00
patrick96
b6a2c575fd
refactor(date): Use cpp string comparison
2017-09-16 00:09:26 +02:00
patrick96
0024e1e9e7
refactor(date): Remove obsolescent setlocale call
2017-09-15 14:22:42 +02:00
patrick96
1bc9933a88
refactor(date): Use single stringstream
...
Reduces code repetition and removes the need for setting the locale in
every update
2017-09-15 14:21:38 +02:00
patrick96
6e9e739d81
fix(date): Remove string length limitation
...
Fixes #744
2017-09-15 14:13:35 +02:00
Chase Geigle
a682d2af91
fix(fs): Use f_frsize in filesystem calculations
...
This is consistent with the documentation of
std::experimental::filesystem, so I think it is the more "correct"
thing to be doing here.
2017-09-14 19:02:55 -05:00
NBonaparte
9da06c0ec2
fix(modules): Remove redundant if statement
2017-09-06 20:16:08 -07:00
NBonaparte
3ce06585ab
fix(parser): Revert tag stacks
2017-09-06 20:16:08 -07:00
NBonaparte
f3bddc5af4
fix(modules): Separate prefix and suffix from output
2017-09-06 20:15:28 -07:00
NBonaparte
138f5faed8
fix(fs): Calculate used, percentages according to df
...
Fixes #710 .
2017-09-06 17:20:10 -07:00
Patrick Ziegler
a255a022a7
fix(renderer): Correct center module position ( #673 )
...
The changes introduced in 389bae2669
to
address #551 did not consider the left border
Now center modules are centered regardless of border (left or right)
settings or tray position
Fixes #672
2017-09-04 23:46:47 -07:00
NBonaparte
e329a8150a
fix(config): Expand all environment variables and file references ( #724 )
2017-09-04 14:00:35 -07:00
NBonaparte
ce05aa36a1
feat(temperature): Add hwmon sysfs support ( #688 )
2017-08-29 15:10:28 -07:00
Patrick Ziegler
8c1ba8358d
feat(menu): Add expand-right option ( #658 )
...
expand-right defaults to true to preserve the current functionality
If set to false, the items in the menu will be added to the left of the
toggle label (instead of the right side)
Should resolve the issue discussed in #655
2017-08-29 13:25:41 -07:00
Patrick Ziegler
b0f34c4b55
Reuse caps_str ( #656 )
...
Just to be consistent with the num lock part
2017-08-29 12:06:49 -07:00
patrick96
d35abc7620
Remove curlbuild include
...
Curl removed that header in 73a2fcea0b4adea6ba342cd7ed1149782c214ae3
([1])
http.cpp doesn't use anything from that header and compilation works for
fine with curl 7.54.1
Fixes #647
Ref:
[1]: 73a2fcea0b
2017-07-14 10:12:33 +02:00
Michael Carlberg
d3b0670f30
fix(config): Perform tilde expansion on include-file
#603
2017-06-02 18:34:49 +02:00
rps
f581095cb7
Fixes #535 and #411 .
2017-05-19 18:02:33 +02:00
Michael Carlberg
389bae2669
fix(renderer): Adjust center block position when using tray
...
Fixes #551
2017-05-19 17:25:04 +02:00
Michael Carlberg
2e8cc7f503
fix(parser): Ignore sequential duplicates in color stacks
2017-05-17 23:11:59 +02:00
Michael Carlberg
0bd8f1f69a
fix(parser): Proper handling of %{R} #585
2017-05-17 23:11:06 +02:00
Michael Carlberg
5af5292808
Revert "fix(parser): Use value stacks for %{R} tag #585 "
...
This reverts commit d141d8b5e4
.
2017-05-17 22:20:38 +02:00
Michael Carlberg
d141d8b5e4
fix(parser): Use value stacks for %{R} tag #585
2017-05-17 22:06:12 +02:00
Michael Carlberg
86ff947e38
fix(process_util): Prefix shell env var
...
Fixes #566
2017-05-12 17:55:05 +02:00
Michael Carlberg
b6c5563b0b
feat(ipc): Add visibility commands
2017-05-12 17:55:05 +02:00
Michael Carlberg
23a7717120
fix(controller): Remove unused function
2017-05-12 17:55:05 +02:00
Vasili Karaev
5c41e3d045
feat(mpd): Add state-specific formats #524
2017-05-09 14:56:29 +02:00
Michael Carlberg
b2f00cc08a
feat(parser): Stack font indexes set with %{T}
2017-04-26 19:25:42 +02:00
Michael Carlberg
24b2de5534
refactor(parser): Naming of parse methods
2017-04-26 19:25:02 +02:00
Michael Carlberg
31ba2f38bd
fix(parser): Make the %{U} tag use color stacks #544
2017-04-26 19:01:55 +02:00
Michael Carlberg
5c7e3cbbac
fix(parser): Reset color stacks #544
2017-04-26 18:53:04 +02:00
Michael Carlberg
eebf1055e5
fix(parser): Overline tags
2017-04-25 20:30:21 +02:00
Michael Carlberg
f754fa2710
feat(parser): Keep track of formatting colors #544
2017-04-25 20:26:56 +02:00
Vasili Karaev
863c510903
fix(i3): Use ws name for click handling #520
2017-04-06 06:22:11 +03:00
Michael Carlberg
d6b0c5f003
fix(bspwm): Focus monitor before sending scroll cmd #503
2017-04-02 18:21:09 +02:00
Michael Carlberg
02833b7871
feat(volume): Optional event handling #84
2017-04-02 18:12:07 +02:00
Vasili Karaev
68beb8d744
fix(i3): Check whether current ws is focused before issuing scroll commands #503
2017-03-31 22:26:24 +02:00
Vasili Karaev
db0ab78d62
fix(i3): Handle scrolling internally #503
2017-03-31 22:26:24 +02:00
Vasili Karaev
7bb168679d
fix(mpd): Check state before calling playback controls #500
2017-03-26 11:25:32 +03:00
Michael Carlberg
5c86842083
fix(renderer): Do not escape parsed action cmds #444
2017-03-21 16:21:53 +01:00
Michael Carlberg
f3089e88f2
feat(conf): Properties for top/bottom radius #445
2017-03-21 14:49:33 +01:00
Michael Carlberg
23a8042411
fix(tray): Remove invalid clients #487
2017-03-15 23:52:59 +01:00
Nicolò Balzarotti
84ee0d560c
fs: Fix wrong size report
2017-03-13 10:21:21 +01:00
raidzero
50aba85ad0
Merge remote-tracking branch 'upstream/master'
2017-02-23 14:50:09 -07:00
raidzero
a00f052002
formatting changes
2017-02-23 09:04:49 -07:00
Adam Ransom
47bc459742
fix(bspwm): Update when focusing urgent desktops
...
When focusing a desktop with the urgent flag, two events are received
from `bspc` simultaneously, separated by a newline character.
This was not handled correctly and the second event was discarded causing
the urgent style to be removed, but the focused style would remain on the
previously focused desktop.
This fixes the problem by handling any number of events that arrive at the
same time (separated by newlines).
2017-02-23 13:28:26 +01:00
NBonaparte
44f12c6065
feat(xworkspaces): add urgent desktop detection
2017-02-23 13:20:26 +01:00
raidzero
93c425fdfe
Add battery usage/charge in watts token %consumption%
2017-02-16 14:35:43 -07:00
Chase Geigle
bd8e748399
fix(builder): use unicode-aware truncation for label-maxlen
2017-02-16 09:19:26 +01:00
Chase Geigle
73faa18cf0
fix(label): Truncate label replacements based on codepoint count
...
This helps ensure that when a string is truncated it is not done in the
middle of a utf8 multi-byte sequence. This doesn't 100% correspond to
user-perceived characters, but it should be pretty close in most cases.
2017-02-15 14:19:47 +01:00
Michael Carlberg
1d06df25a9
fix(config): Use std::map to store sections #412
2017-02-07 14:56:56 +01:00
Michael Carlberg
384c12a896
fix(xwindow): Lock mutexes on update #416
2017-02-05 13:37:16 +01:00
Tudor Brindus
107bdb91e3
fix(memory): Implement memory updating for pre-3.4 kernels ( #410 )
...
Since 3.4, `/proc/meminfo` contains a `MemAvailable` field, which polybar uses to determine
`(gb|mb)_free` and `(gb|mb)_used`. This commit adds a fallback for when `MemAvailable` does
not exist, allowing a fairly-accurate approximation on older kernels.
This commit also removes the reliance on the exact order fields appear in `/proc/meminfo`.
2017-02-04 18:19:58 +01:00
Michael Carlberg
9ced7dbf73
fix(xcomposite): Disable extension query #406
2017-02-04 19:14:10 +01:00
Michael Carlberg
8146f65286
fix(xrender): Add header declarations #406
2017-02-04 19:13:08 +01:00
Michael Carlberg
82d360e634
fix(fs): Use available bytes to calculate free disk space
...
Refs #396
2017-01-30 14:39:06 +01:00
Michael Carlberg
9f1d9a14fd
fix(renderer): Use correct width for top border
...
Refs #390
2017-01-29 15:25:31 +01:00
László Várady
7e7dc68e5a
fix(github): Hide label if 'empty-notifications' is disabled
...
Before the first update(), the label should stay 'hidden'.
2017-01-29 15:16:00 +01:00
Michael Carlberg
3e4a4ce78f
fix(renderer): Alignment blocks
2017-01-27 15:36:37 +01:00
Michael Carlberg
beedc5ab84
fix(color_util): Parsing
2017-01-27 13:46:27 +01:00
Michael Carlberg
af5f129b76
fix(tray): Drop warning
2017-01-27 13:33:39 +01:00
Michael Carlberg
eb5c82a5c3
fix(modules): Warmup in runner thread to avoid block
2017-01-27 13:29:10 +01:00
Michael Carlberg
fb709aeab3
fix(i3): Workspace state when visible on unfocused monitor
2017-01-27 03:03:57 +01:00
Michael Carlberg
07cb5f134e
fix(renderer): Cleanup
2017-01-26 21:55:42 +01:00
Michael Carlberg
874e6b0d6c
feat(config): Add directive for file inclusion
2017-01-26 20:10:33 +01:00
Michael Carlberg
43a17c3b36
refactor(cmake): Cleanup
2017-01-26 17:39:50 +01:00
Michael Carlberg
162e77793a
fix(tray): Ignore if detached
...
Refs #383
2017-01-26 12:46:10 +01:00
Michael Carlberg
5283fbff01
fix(renderer): Fill background to the sub blocks
...
Paint the background on each sub block instead of the base surface.
Fixes the compositing ops.
2017-01-26 01:53:25 +01:00
Michael Carlberg
b16c105514
feat(modules): Move default format values to the config
...
Fallback values for all module formats can now be set
in the configuration. For example:
[settings]
format-padding = 2
format-underline = #00f
2017-01-26 01:50:02 +01:00
Michael Carlberg
8138a12381
refactor(renderer): Cleanup
2017-01-25 23:38:51 +01:00
Michael Carlberg
09808e99f9
refactor(tray): Cleanup
2017-01-25 23:37:16 +01:00
Michael Carlberg
d8d007aa9c
refactor(cairo): Cleanup
2017-01-25 23:37:13 +01:00
Michael Carlberg
886d0f4ff3
fix(renderer): Round floatig point numbers
...
Refs #378
2017-01-25 21:46:18 +01:00
Michael Carlberg
8fa879c8d8
fix(cmake): Require xcb-proto>=1.12 for monitor support
...
Refs #344
2017-01-25 20:16:04 +01:00
Michael Carlberg
017abee679
fix(cmake): Require randproto>=1.5 for monitor support
...
Refs #344
2017-01-25 17:36:40 +01:00
Michael Carlberg
95d5b03fa2
refactor(file_util): Expand tilde manually
2017-01-25 17:07:55 +01:00
Michael Carlberg
02ab1b9a81
fix: Allow explicit override with property shorthand
...
Refs #375
2017-01-25 15:13:03 +01:00
Michael Carlberg
eae612ce95
fix: Use correct name for padding shorthand
...
Refs #375
2017-01-25 15:03:57 +01:00
Michael Carlberg
f37ecfe959
fix(renderer): Falloff gradient
2017-01-25 15:00:34 +01:00
Michael Carlberg
1ca71ce401
fix(ci): Remove unused function
2017-01-25 12:20:06 +01:00
Michael Carlberg
c7f33e2567
refactor(renderer): Use redirection groups instead of pixmaps
2017-01-25 09:54:18 +01:00
Michael Carlberg
1a25be374f
refactor(xworkspaces): Cleanup
2017-01-25 04:35:56 +01:00
Chase Geigle
6364bb4385
feature(renderer): Allow dpi-x and dpi-y configuration
...
Negative values for any of the DPI settings are used to mean "auto",
which will attempt to compute an appropriate DPI from monitor settings.
2017-01-25 04:35:35 +01:00
Chase Geigle
e7dc6b8bbb
fix(renderer): Use proper font scaling based on DPI
...
This tries to mimic the old renderer's behavior as closely as possible.
In the absence of any information, DPI is assumed to be 96x96. DPI can
be configured on a per-bar basis using the configuration key "dpi".
To use the DPI configuration from Xresources (if built with support),
one can specify the following in the bar config:
dpi = ${xrdb:Xft.dpi:96}
2017-01-25 04:35:35 +01:00
Michael Carlberg
8d79b582ec
fix(renderer): Default all comp. operators to OVER
2017-01-24 14:25:01 +01:00
Michael Carlberg
1a5246e940
refactor(cairo): Use shared_ptr for font list
2017-01-24 11:50:26 +01:00
Michael Carlberg
3e37b9ec8e
fix(cairo): Increment textblock bg extents
2017-01-24 11:07:18 +01:00
Michael Carlberg
6692b4a8da
refactor(x11): Cleanup
2017-01-24 10:49:14 +01:00
Michael Carlberg
a5d6670121
refactor(clang-tidy): Apply fixes
2017-01-24 08:01:04 +01:00
Michael Carlberg
8b9461e63e
wip(refactor): Cairo drawing
2017-01-24 07:41:46 +01:00
Michael Carlberg
13633f715d
fix(main): Exit on unrecognized positional arg
2017-01-24 07:11:14 +01:00
Michael Carlberg
d6a34717bf
fix(ipc): Remove existing fifo file
2017-01-24 07:11:14 +01:00
Michael Carlberg
4558893c37
docs: Update manpage
2017-01-24 07:11:14 +01:00
Michael Carlberg
a59e115622
wip(refactor): Cairo drawing
2017-01-24 07:11:14 +01:00
Michael Carlberg
452afcdc68
refactor: Integral types
2017-01-24 07:11:14 +01:00
Michael Carlberg
5e1886a312
wip(refactor): Cairo drawing
2017-01-24 07:11:14 +01:00
Chase Geigle
47a2cce03d
fix: Ensure reloading when IN_IGNORED fired on config ( #371 )
...
This fixes a "bug" where polybar wouldn't reload on a configuration
file change on some configurations of vim, which don't actually issue
any IN_MODIFY events because they choose to move the file, replace it
with a new one, and then delete the file instead.
To work around this, we now also listen for IN_IGNORED which fires when
the file we are watching is destroyed. When this happens, we re-attach
the configuration file watcher to the new file and reload.
2017-01-24 07:10:55 +01:00
Michael Carlberg
1fdc742606
fix(command): Decrease log verbosity
...
Refs #362
2017-01-23 17:11:07 +01:00
Patrick Yates
2dfdbd240e
feat(bspwm,i3): Fuzzy-matching names for icons
...
Added support for fuzzy matching workspace names when assigning icons.
This feature is enabled/disabled through a new option, 'fuzzy-match'.
It is disabled by default.
2017-01-23 17:01:30 +01:00
Michael Carlberg
48749b12d8
fix(bar): Improve error message for unparsable color
2017-01-20 02:32:52 +01:00
Michael Carlberg
892673c405
fix(config): Require value reference without fallback
2017-01-20 02:31:55 +01:00
Michael Carlberg
5ad0081e76
fix(command_line): Filter positional args
2017-01-20 02:30:05 +01:00
Michael Carlberg
e1483c3f65
refactor(xresources): Use xcb-util-xrm
...
Drop the Xlib version and handle X resource
lookups using xcb-util-xrm
Refs #356
2017-01-20 02:26:01 +01:00
Michael Carlberg
100c64a20c
refactor: Make xresource_manager a singleton
...
Refs #356
2017-01-19 21:27:01 +01:00
Michael Carlberg
90d1fff4e2
fix(xresources): Avoid continuous reconstruction
...
Refs #356
2017-01-19 20:37:02 +01:00
Michael Carlberg
374ad655ae
fix(xrsources): Safety check
...
Refs #356
2017-01-19 20:19:18 +01:00
Michael Carlberg
9e3a7cf06c
fix(label): Add missing character
2017-01-17 15:38:28 +01:00
Michael Carlberg
e0e9cae2eb
fix(label): Improve false positive token filtering
2017-01-17 15:28:52 +01:00
Michael Carlberg
0f87d37137
fix(fs): Set bytes_avail
...
Refs #343
2017-01-17 15:20:46 +01:00
Elohim Falcón
132b832c52
fix(xwindow): Give priority to _NET_WM_NAME ( #342 )
2017-01-17 14:59:32 +01:00
Michael Carlberg
826e125c80
fix(menu): Broadcast tree reset
...
Fixes #327
2017-01-15 03:46:31 +01:00