Commit Graph

1594 Commits

Author SHA1 Message Date
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
Patrick Ziegler
caeb8ddae4 Merge pull request #785 from roobre/patch-1
Add minimum width to CPU percentage in example config
2017-10-01 00:21:25 +02:00
Roberto Santalla
705f14c413 Add minimum width to CPU percentage
It's quite obscure where to find that you can set a minimum width for tokens, and CPU usage will oscillate between 0-9 and 10+ quite frequently. I think that adding this to the example config will help users to find out that this feature exists, and avoid this annoying default.
2017-09-30 20:20:41 +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
Patrick Ziegler
c6b5e3016e Merge pull request #773 from patrick96/editorconfig
Add .editorconfig
2017-09-24 16:05:07 +02:00
patrick96
ad4baf87cf
Add trim_trailing_whitespace to .editorconfig 2017-09-24 08:31:42 +02:00
Patrick Ziegler
0a5ad9c76f Merge pull request #772 from patrick96/nested_actions
fix(renderer): Properly support nested actions
2017-09-24 08:26:37 +02:00
patrick96
16daefd609
Add .editorconfig
For editors that don't autodetect indent style and size
2017-09-23 17:06:56 +02: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
60f8451b34 fix(docs): Add cursor options to example 2017-09-17 13:17:04 -07:00
NBonaparte
70023b07c1 refactor(cursor): Include double clicks and fix scroll to click changes 2017-09-16 19:48:38 -07:00
NBonaparte
81c83c4364 fix(aur): Add xcb-util-cursor as dep 2017-09-16 15:31:49 -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
014a9f4c31 fix(travis): Install xcb-util-cursor 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
Patrick Ziegler
b12aec1a4c Remove AUR .SRCINFO files (#746)
The SRCINFO files should be generated from the PKGBUILDs using
`makepkg --printsrcinfo > .SRCINFO` anyways. It doesn't make sense to
keep a copy in this repo
2017-09-13 20:12:07 -07:00
patrick96
524bcc30e5
Update AUR polybar pkgrel 2017-09-13 13:23:49 +02:00
patrick96
ba1276cb7d
Fix AUR build failure without git identity
The `git cherry-pick` command creates a commit and thus requires a git
identity (username and/or email), if those are not set in the git
config, it will fail.

Since we don't really need a commit, this now just applies the changes
without committing them.

Fixes #748
2017-09-13 13:18:21 +02:00
NBonaparte
69992223bd fix(aur): Match .SRCINFO pkgrel 2017-09-12 19:31:23 -07:00
NBonaparte
d29957833d fix(aur): Match .SRCINFO pkgrel 2017-09-12 19:30:01 -07:00
patrick96
ac355c3747
Build polybar-git with gcc
This commit only changes pkgrel because the version of this PKGBUILD
that used clang never made it into this repo.
2017-09-12 16:34:18 +02:00
Patrick Ziegler
6c883e2cc1 Merge pull request #737 from patrick96/curlbuild_PKGBUILD
Fix curl compile errors in aur polybar package
2017-09-12 16:14:56 +02:00
patrick96
911a207cfd
Fix curl compile errors in aur polybar package
The `curl/curlbuild.h` header issue has been resolved after the last
release, as a consequence the AUR package doesn't build anymore without
altering the source before compiling.

This cherry-picks the fix commit to resolve the compile errors.
2017-09-09 22:39:41 +02: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
Michael Carlberg
e381d76908 git: Update submodule versions 2017-08-30 17:33:38 +02:00
Chase Geigle
299f1617d3 fix(cmake): Suppress -Wnoexcept-type warning on GCC
There is no way to avoid this error in the code itself, so we must
suppress this warning if we wish to keep -Werror.
2017-08-30 15:27:05 +02: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
Patrick Ziegler
9b98b766b2 Fix off by one error for action area (#663)
If the mouse was at the leftmost edge of the screen and there was an
action area from 0 to N, the click wouldn't register

Before if an action area was defined from A to B it was from A exclusive
to B inclusive now it is from A inclusive to B exclusive. This is the
same way that the pixel addresses work, since a pixel's coordinate is
defined by the top-left corner.

Fixes #661
2017-08-29 11:58:23 -07:00
patrick96
2d1e3c215f Add textual indicator for module support
If color output was surpressed, there was no way to tell in the cmake
summary, if a module is actually enabled or not.
Now each module is prefixed with either a "[X]" to indicate it's enabled
or a "[ ]" to indicate it's not
2017-07-14 10:14:13 +02:00