Vlad Glagolev
a5b310872c
Respect 'enable-scroll' setting for xworkspaces module
2018-02-03 14:43:34 -08:00
Kareem El-Faramawi
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
patrick96
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
NBonaparte
2a056d5b23
fix(power): add comments to explain current/power_now
2018-01-30 21:24:51 +01:00
NBonaparte
95d3b4f1eb
fix(battery): use power_now correctly
2018-01-30 21:24:51 +01:00
NBonaparte
e16227ca43
refactor(alsa): rename and move volume -> alsa
2018-01-23 14:33:11 +01:00
patrick96
1d9dd719bc
refactor(script): Loop over buttons and replace tokens
2018-01-21 14:41:52 -08:00
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
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
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
23ee9afb6f
fix(pulseaudio): Use inc_volume() instead of set_volume()
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
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
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
Chris Snell
5737156ae5
feat(temperature): Fahrenheit and Celsius tokens ( #804 )
...
%temperature-f% and %temperature-c%
2017-10-18 22:29:53 +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
NBonaparte
89fccde765
fix(modules): Apply format settings to pre/suffix
2017-09-22 23:40:31 -07: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
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
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
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
rps
f581095cb7
Fixes #535 and #411 .
2017-05-19 18:02:33 +02:00
Vasili Karaev
5c41e3d045
feat(mpd): Add state-specific formats #524
2017-05-09 14:56:29 +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
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
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
82d360e634
fix(fs): Use available bytes to calculate free disk space
...
Refs #396
2017-01-30 14:39:06 +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
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
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
1ca71ce401
fix(ci): Remove unused function
2017-01-25 12:20:06 +01:00
Michael Carlberg
1a25be374f
refactor(xworkspaces): Cleanup
2017-01-25 04:35:56 +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
452afcdc68
refactor: Integral types
2017-01-24 07:11:14 +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
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
Michael Carlberg
3292cea786
refactor(tokens): Move token suffix to configuration
2017-01-14 18:00:35 +01:00
Alexander Polynomdivision
d3d3f3e6fa
Modify the 'volume' module to load the name of the soundcards of the master, speaker and headphone mixer
2017-01-14 17:59:47 +01:00
Michael Carlberg
dceb3606b1
refactor(stringstream): Shorten to sstream
2017-01-14 06:11:51 +01:00
Michael Carlberg
53772e9c32
feat(ipc): Add pid token
2017-01-14 00:56:43 +01:00
Michael Carlberg
dacf36b981
refactor(ipc): Cleanup
2017-01-14 00:27:29 +01:00
Michael Carlberg
ed87a8924f
fix(ipc): And double-click handlers
2017-01-14 00:10:55 +01:00
Michael Carlberg
ef2ad7a504
fix(volume): Fixed action blocks
...
Refs #329
2017-01-13 17:08:16 +01:00
Michael Carlberg
2fea813c3d
fix(github): Clear label on empty notifications
...
Fixes #278
2017-01-13 14:57:31 +01:00
Michael Carlberg
57e8914fa6
fix: Force update after running input command
2017-01-13 14:33:16 +01:00
Michael Carlberg
15f880eba4
fix(mpd): Handle broken connections
2017-01-13 13:02:51 +01:00
Michael Carlberg
22140f7db9
refactor(builder): Action wrapped labels
2017-01-13 13:01:46 +01:00
Michael Carlberg
8d355f8255
fix(ipc): Avoid clearing module content
...
Refs #324
2017-01-13 05:33:34 +01:00
Michael Carlberg
385572ec64
feat(xrandr): Support for monitors
...
Refs #280
2017-01-13 03:52:57 +01:00
Michael Carlberg
40493497de
fix: Allow size_t narrowing
2017-01-13 01:14:50 +01:00
Michael Carlberg
6dd72aa6f7
refactor(fs): Read /proc/self/mountinfo
...
Refs #271
2017-01-12 23:33:32 +01:00
Michael Carlberg
c2ac7fde67
refactor: Filesize strings
2017-01-12 20:28:44 +01:00
Michael Carlberg
9184a8b046
fix(memory): Safety check
2017-01-12 20:25:57 +01:00
Michael Carlberg
ef6f649579
fix(fs): Make sure to match with correct mtab entry
...
Fixes #321
2017-01-12 15:30:47 +01:00
Michael Carlberg
5773b08cf8
fix(script): Poll file descriptors
2017-01-11 18:21:58 +01:00
Michael Carlberg
d7d0fbcae4
fix(battery): Safety check
...
Make sure returned label is valid before access.
Refs #318
2017-01-11 15:01:39 +01:00
Michael Carlberg
5c9bfc147c
fix(xbacklight): Lower inc/dec value to 5 and fix flooring
2017-01-11 04:40:10 +01:00
Michael Carlberg
8cc885c316
refactor: Cleanup
2017-01-11 03:07:28 +01:00
Michael Carlberg
c1aa3319a1
fix(menu): Close tree when item commands are invoked
2017-01-11 02:44:44 +01:00
Michael Carlberg
30f516dd7d
fix(formatting): Make formats parse specs as-is
...
This removes the spacing tinkering when parsing format specs.
The following example uses the old behavoir:
format-test = <label-foo> <label-bar>
format-breaks = <label-foo><label-bar>/<bar-test>
`format-test` would replace all occurences of ' ' with the
a space string with defined `spacing` as its width. `format-breaks` would
not validate as the tags where split with ' ' as delimiter.
All that nonsense has been removed and each tag is extracted as is.
The `spacing` parameter can still be used to apply N extra whitespaces
between the tags, but it is now 0 by default.
2017-01-11 02:43:37 +01:00
Michael Carlberg
f4e8051e9e
refactor(script): Merge back script handling
2017-01-10 05:12:53 +01:00
Michael Carlberg
946843ff59
feat(script): Configurable condition using exec-if
...
Add new config parameter `exec-if = cmd` that needs to
exit successfully before the main exec command will be invoked.
Closes #298
2017-01-10 03:02:00 +01:00
Michael Carlberg
7a26254844
feat(ipc): Initial exec of configured hook
...
Adds a new config parameter `initial = N` that will
make the hook at defined index N execute on start.
2017-01-09 23:06:41 +01:00
Michael Carlberg
5f6a1f5ae6
fix(xkeyboard): Use separate throttle timers
2017-01-09 16:40:26 +01:00
Michael Carlberg
eeaad512a9
fix(battery): Calculation of remaining dis-/charge seconds
...
- Optimize calculation
- Do not allow division by zero
Refs #303
2017-01-09 14:58:14 +01:00
Michael Carlberg
35f441cdde
fix(fs): Mounted state
...
Fixes #271
2017-01-08 20:42:59 +01:00
Michael Carlberg
ef442025fa
fix(battery): File contents comparison
...
Refs #297
2017-01-07 12:08:16 +01:00
Michael Carlberg
5c55beed7b
fix(fs): Value type
2017-01-02 02:50:22 +01:00
Michael Carlberg
e0688307f3
wip(systray): Add module base
2017-01-01 21:28:28 +01:00
Michael Carlberg
0c39061c98
feat(bspwm): Add option to inline mode indicators
2017-01-01 16:39:25 +01:00
Michael Carlberg
ccddf052ec
refactor(script): Split non-/tail logic
...
Split the script module into one tailing output module and
one exec once module.
Refs #281
2017-01-01 09:05:18 +01:00
Michael Carlberg
611ed0e348
fix(battery): Cap value of full-at
2017-01-01 04:00:35 +01:00
Michael Carlberg
acb9ed910d
fix(script): Unlock mutex before terminating command
...
Refs #281
2016-12-31 14:08:45 +01:00
Michael Carlberg
210695d377
refactor(x11): Merge xlib/xutils with connection
2016-12-31 10:02:32 +01:00
Michael Carlberg
22b93a1167
fix(battery): Use full namespace
2016-12-31 07:32:57 +01:00
Michael Carlberg
e3a51b235a
refactor(clang-tidy): Apply fixes
2016-12-31 04:32:11 +01:00
Michael Carlberg
ad0af86a7b
refactor(battery): Abstract value readers
...
Refs #263 , #245
2016-12-31 04:20:48 +01:00
Michael Carlberg
14958bdd23
fix: Correct type for module interval
2016-12-31 03:04:01 +01:00
Michael Carlberg
78bb3695e6
refactor(config): Deduce return type from default value
2016-12-30 23:32:05 +01:00
Michael Carlberg
53f781f527
feat(fs): Add option to remove invalid/unmounted endpoints
2016-12-30 22:44:28 +01:00
Berk Ozbalci
2fdbb6af41
feat(bspwm): Add support for pseudo tiled nodes
2016-12-30 20:49:38 +01:00
Michael Carlberg
18cf9df86c
refactor: Cleanup
2016-12-27 04:58:41 +01:00
Michael Carlberg
db7aa7c490
fix(format): Ignore empty contents
2016-12-27 04:03:46 +01:00
Michael Carlberg
4bc203dd1f
fix(fs): Output error if statvfs() fails
...
Refs #271
2016-12-27 02:03:15 +01:00
Michael Carlberg
55934c12a3
fix(fs): Use avail bytes to calculate percentage
...
Refs #271
2016-12-27 01:32:33 +01:00
Michael Carlberg
b9f9092bbe
refactor: Cleanup
2016-12-26 10:37:14 +01:00
Michael Carlberg
baaba4adf9
refactor(ipc): Rename signals
2016-12-26 10:36:14 +01:00
Michael Carlberg
11aabac227
refactor(connection: Use custom base
2016-12-26 09:46:48 +01:00
Michael Carlberg
24aba14541
fix(battery): Safety check
...
Refs #269
2016-12-24 05:29:12 +01:00
Michael Carlberg
bb0d6f580d
fix(xkeyboard): Wrap click handler around contents
2016-12-23 22:39:59 +01:00
Michael Carlberg
b422d1d1a4
refactor(modules): Input handling
2016-12-23 20:43:52 +01:00
Michael Carlberg
97fa7052fe
refactor(clang-tidy): Apply fixes
2016-12-23 15:54:06 +01:00
Michael Carlberg
48438b2556
fix(github): Replace initial token
2016-12-23 05:12:33 +01:00
Michael Carlberg
8cff01e3d8
refactor(event_handler): Abstract sink attaching
2016-12-23 05:08:19 +01:00
Michael Carlberg
9479b5abe2
refactor(xwindow): Cleanup
2016-12-23 01:03:38 +01:00
Michael Carlberg
d9de16e888
fix(bspwm): Handle single char prefix clash
2016-12-22 02:17:26 +01:00
Michael Carlberg
bc9b9f0d12
refactor: Cleanup
2016-12-21 23:22:02 +01:00
Michael Carlberg
788a7ca3a3
refactor(modules): Get rid of .inl files
2016-12-21 09:21:35 +01:00
Michael Carlberg
7979f5b3d4
refactor(modules): Handle events using signal_receiver
2016-12-21 08:38:44 +01:00
Michael Carlberg
c01f111e34
refactor(modules): Move setup to constructor
2016-12-21 08:00:09 +01:00
Michael Carlberg
ff55421f52
feat(cpu): Load percentage per core
...
Display load percentage for individual cpu cores
or a concatenated string for all cores.
Example:
label = %percentage-core1% %percentage-core4%
label = %percentage-cores%
Refs #256
2016-12-20 15:24:42 +01:00
Michael Carlberg
8ef8900ca2
refactor: Defer buttonpress using taskqueue
2016-12-20 13:03:46 +01:00
Michael Carlberg
418dadf0b9
fix(xbacklight): Close cmd blocks
2016-12-20 07:04:13 +01:00
Michael Carlberg
de04fa3eac
feat(github): Option to hide notification count if empty
2016-12-20 05:53:45 +01:00
Michael Carlberg
a89c4ef2dd
refactor: Move all event handling to the controller
2016-12-20 05:16:04 +01:00
Michael Carlberg
b417c9f812
feat(github): New module
...
Module used to query the GitHub API for information.
Currently only supports notification count.
Ref #84
2016-12-19 22:12:31 +01:00
Michael Carlberg
698814d17f
fix(xkeyboard): Only wrap click around the label
2016-12-16 11:34:35 +01:00
Michael Carlberg
519172b6ec
feat(xkeyboard): Switch layout group on click
...
When serveral layout groups are defined for the keyboard
they can be cycled when clicking on the module.
For example:
$ setxkbmap -layout us,sv,fr
Ref #84
2016-12-16 11:31:08 +01:00
Michael Carlberg
09ea07b750
refactor(battery): Use charge_{now,full} to calculate percentage
2016-12-16 09:58:54 +01:00
Michael Carlberg
a0d485f79d
refactor: Initialize data
2016-12-15 09:30:31 +01:00
Michael Carlberg
f9062d031c
refactor(clang-tidy): Apply fixes
2016-12-15 03:30:41 +01:00
Michael Carlberg
4c36d65cbe
fix(eventloop): Acquire lock guard
2016-12-14 19:04:33 +01:00
Michael Carlberg
4870204b4f
feat(bspwm,i3): Configurable scroll direction
2016-12-14 17:18:20 +01:00
Michael Carlberg
d8f69866cc
refactor(alsa): Memory allocation
2016-12-14 15:04:10 +01:00
Michael Carlberg
b156d1bbf4
refactor(bspwm): Cleanup
2016-12-14 11:01:44 +01:00
Michael Carlberg
18597f8e1d
fix(tray): Uninitialized value
2016-12-14 11:01:44 +01:00
Michael Carlberg
5077325044
refactor(string_util): Use rvalue references for *trim()
2016-12-14 11:01:44 +01:00
Michael Carlberg
5e2a0bd298
refactor(alsa): Forward alsa structs and split classes
2016-12-14 11:01:44 +01:00
Michael Carlberg
4fca0c89b4
refactor: Object construction
2016-12-14 11:01:44 +01:00
Michael Carlberg
1a2a6e5fab
refactor: Construction methods
2016-12-14 11:01:44 +01:00
Michael Carlberg
08be86fbe1
wip(refactor): Improve signal and event handling
2016-12-14 11:01:44 +01:00
Michael Carlberg
d45fd76dcd
refactor(config): Drop boost::property_tree
2016-12-14 10:57:45 +01:00
Michael Carlberg
3a6ca90fcb
refactor(i3): Remove wsname-maxlen
2016-12-14 04:45:34 +01:00
Michael Carlberg
0ed173b96e
refactor(i3): Output based wrapping
2016-12-14 04:45:31 +01:00
Michael Carlberg
f4529dde99
feat(i3): Conditional wrap around on scroll
...
Ref #242
2016-12-14 00:46:54 +01:00
Michael Carlberg
b303492759
fix(alsa): Avoid dangling pointers
2016-12-13 14:31:17 +01:00
Michael Carlberg
891ff6d80a
fix(xkeyboard): Use current group number
...
Ref #230
2016-12-08 18:35:07 +01:00
Michael Carlberg
60503734ac
fix(bspwm): Send monitor local focus commands
2016-12-05 13:21:28 +01:00
Michael Carlberg
ec39859093
feat: Window click handlers
...
New parameters for defining fallback click handlers
that will be triggered for the whole window unless
a module action is matched.
Parameters added to all [bar/foo] sections:
- `click-left = ...`
- `click-middle= ...`
- `click-right= ...`
- `scroll-up= ...`
- `scroll-down= ...`
Ref #226
2016-12-05 13:17:15 +01:00
Michael Carlberg
3854515521
fix: Wrap format pre/suffix within cmd
2016-12-05 05:32:10 +01:00
Michael Carlberg
7d1092db04
refactor(date): Add label and date/time tokens
...
Ref #225
2016-12-05 04:52:00 +01:00
NBonaparte
a22e84204d
fix(script): set default tag to label ( #223 )
2016-12-04 22:09:57 +01:00
Soham Chowdhury
16b7d09d63
feat(mpd): Add support for date ( #222 )
2016-12-04 19:33:04 +01:00
Michael Carlberg
44da14755d
refactor(clang-tidy): Apply fixes
2016-12-04 04:11:47 +01:00
NBonaparte
ffbedf4217
feat: Add support for prefix and suffix to formats
2016-12-04 02:33:38 +01:00
Michael Carlberg
604e926924
refactor(script): Format tag <label>
...
Mark <output> and maxlen as deprecated
2016-12-03 21:10:01 +01:00
Michael Carlberg
5f6d73a415
fix(command): Use execlp()
...
Ref #214
2016-12-03 20:52:43 +01:00
Michael Carlberg
91ee4c825b
fix(xworkspaces): Safety check
2016-12-03 14:53:53 +01:00
Michael Carlberg
d4eaf21052
fix(xworkspaces): Correct desktop index for pinned workspaces
...
- Use the correct desktop index when only displaying
workspaces for the configured monitor/viewport.
- Wrapping scroll
2016-12-03 13:45:26 +01:00
Michael Carlberg
4776ec49df
fix: Use defined event sink priority
2016-12-03 13:00:40 +01:00
Michael Carlberg
9f8dabfc8d
refactor(xwindow): Cleanup
2016-12-01 08:35:59 +01:00
Michael Carlberg
4f76d917f8
fix(build): GCC name error
2016-12-01 03:35:54 +01:00
Michael Carlberg
6db66896bd
refactor(bspwm): Cleanup states
2016-11-30 21:12:47 +01:00
Franklin Delehelle
466e9e212f
feat(bspwm): Separate focused/unfocused states
...
Closes #201
2016-11-30 21:04:22 +01:00
Michael Carlberg
43350c484e
fix(bspwm): Cleanup
2016-11-30 18:23:18 +01:00
Michael Carlberg
9cadb681d4
feat(i3): Add mode label
2016-11-30 18:23:11 +01:00
Michael Carlberg
2f3c2e952e
fix(xkeyboard): Minor tweaks
2016-11-30 11:29:41 +01:00
Michael Carlberg
608519363d
feat(xkeyboard): New module
...
New module that uses the X keyboard extension
to show keyboard layout and indicators.
Ref #84 , #200
2016-11-30 10:08:44 +01:00
Michael Carlberg
12ff82e913
feat(xworkspaces): Change current desktop
2016-11-26 10:33:32 +01:00
Michael Carlberg
0d4a24ef8e
fix(ewmh): Check success of reply
2016-11-26 09:51:06 +01:00
Michael Carlberg
3413c4a463
wip(xworkspaces): Monitor support
2016-11-26 09:38:55 +01:00
Michael Carlberg
b25fa46ac2
wip(xworkspaces): EWMH desktops
...
Ref #84
2016-11-26 06:30:33 +01:00
Michael Carlberg
9f4638f42c
refactor: Cleanup
2016-11-26 06:13:20 +01:00
Michael Carlberg
ff9be848c7
refactor(clang-tidy): Apply fixes
2016-11-25 21:58:49 +01:00
Michael Carlberg
8db3e79919
refactor(clang-format): Apply fixes
2016-11-25 14:17:41 +01:00
Michael Carlberg
d76003256f
fix: Do not parse module tags twice
...
Ref #192
2016-11-25 07:14:27 +01:00
Michael Carlberg
9fdc22843b
refactor: Cleanup rendering
2016-11-25 04:42:27 +01:00
Michael Carlberg
84d58e7619
refactor: Cleanup handling of syntax tags
2016-11-25 04:34:24 +01:00
NBonaparte
199a825494
feat(mpd): Add stop toggle ( #191 )
2016-11-25 04:33:58 +01:00
Michael Carlberg
09e0ea1932
config: Print deprecation warnings
2016-11-22 03:01:50 +01:00
Michael Carlberg
c1162960cc
fix(battery): Try several value files
...
Fixes #177
2016-11-21 08:30:25 +01:00
Michael Carlberg
c6d85b2b92
refactor: Optimize build
2016-11-20 23:04:31 +01:00
Michael Carlberg
88c8bbd940
refactor: Fwd declare drawtypes
...
Ref #164
2016-11-19 15:49:06 +01:00
Michael Carlberg
38f9ba81cd
feat(battery): Estimated time remaining
...
Adds a new token %time% that will display an
estimate of the remaining time until fully
charged/discharged
2016-11-19 15:42:31 +01:00
Michael Carlberg
489d429644
refactor(ci): Split into scripts
2016-11-19 12:23:02 +01:00
Michael Carlberg
fd57ab0f3d
fix: project rename
2016-11-19 06:26:07 +01:00
Michael Carlberg
1b159786f0
fix(xwindow): Ignore xcb timestamp
2016-11-19 04:34:46 +01:00
Michael Carlberg
51d8f289fa
feat(xwindow): New module "xwindow"
...
Add module to display title of active window.
Requires WM with support for the _NET_ACTIVE_WINDOW hint.
Ref #84
2016-11-19 04:05:13 +01:00
Edgard Castro
1ea39e562a
feat(bspwm): Additional dimmed states configuration
2016-11-15 04:33:10 -02:00
Michael Carlberg
2301de667b
fix(temperature): Calculate percentage value
2016-11-14 17:56:29 +01:00
Michael Carlberg
983963d4e4
feat(network): Accumulate stats from all interfaces
...
Add config setting that will display accumulated
values for up-/downspeed (accumulate-stats = true)
Closes #144
2016-11-14 12:42:59 +01:00
Michael Carlberg
e3065d0e6c
feat(ipc): New ipc module
...
Add a new module that allow users to configure hooks
on received ipc messages. The hook will execute the defined
shell script and the output of the script will be used
as the module content.
Ref #84
2016-11-14 09:26:40 +01:00
Michael Carlberg
04fac96d78
fix(mpd): Hide module on empty playlist
...
Closes #149
2016-11-14 01:21:58 +01:00
Michael Carlberg
c8f2a934b1
refactor(fs): Update naming to reflect actual usage
...
The module currently only handle mounted filesystem
and not block devices or partitions. Change naming
to be more clear.
2016-11-13 08:50:14 +01:00
Michael Carlberg
d2a6773c26
fix(fs): Remove unmounted format tags
2016-11-13 06:40:35 +01:00
Michael Carlberg
9a0df75a91
feat(fs): New filesystem module
...
Module that displays details about
mounted filesystems, #84
Closes #153
2016-11-13 06:14:34 +01:00
Michael Carlberg
ed5b7a508a
fix(bspwm): Wrap the scroll handlers around workspaces
2016-11-13 01:13:41 +01:00
Michael Carlberg
4d7f6c14e6
fix(xrandr): Less strict monitor matching
...
Be less strict when matching randr outputs
against specified name. This is a workaround
to fix the output naming issue when switching
between graphic drivers.
On my system the output names include a dash
when using the nvidia drivers but the intel
driver does not.
nvidia:
HDMI-1
eDP-1
xf86-video-intel:
HDMI1
eDP1
When strict mode is disabled the matching
won't care about the connection state.
The user can re-enable exact matching and
connection state testing by setting the
config parameter `monitor-strict = true`
2016-11-12 20:42:56 +01:00
Michael Carlberg
42bcfd9fa1
feat(bspwm): Configurable scroll/click actions
2016-11-12 13:37:07 +01:00
Michael Carlberg
23996fdcdc
refactor: Tray transparency and code cleaning
...
- Make pseudo-transparency work as intended, fixes #158
- Fill tray pixmap in case a root pixmap is not found
- Split up bar bootstrap routine
- Formatting (clang-format)
2016-11-12 13:09:50 +01:00
Michael Carlberg
f2bbd301f2
feat(xbacklight): Change value on scroll
...
- Add action handlers for scroll up/down (conf: enable-sroll = true)
- Use xcb_timestamps instead of the throttle util
2016-11-12 13:07:05 +01:00
Michael Carlberg
2740e69a38
refactor(i3): Cleanup and configurable actions
...
- Do not throw on handle_event failure
- Add settings to disable mouse scroll/click actions
- Add fold markers
- Misc cleanup
2016-11-12 13:07:05 +01:00
Michael Carlberg
1e08aa455b
feat(temperature): Support for <ramp>
2016-11-12 13:07:05 +01:00
NBonaparte
fbd957bf33
feat(bspwm): added scrolling
2016-11-11 10:55:37 -08:00
Michael Carlberg
dc2d33ceba
fix(bspwm): Remove monitor property
...
- Use the bar settings stored in the base class.
- Add fold markers
2016-11-11 11:05:22 +01:00
Michael Carlberg
fd44bcd8f6
fix(bspwm): Do not print empty mode labels
2016-11-11 11:04:53 +01:00
NBonaparte
a06b38f534
feat(temperature): Added temp module and examples
2016-11-10 22:54:07 -08:00
NBonaparte
dce81d4266
feat(volume): Added volume mapping
2016-11-05 14:32:09 -07:00
Michael Carlberg
5f21d7d440
feat(bspwm): Support for multi monitors listing
...
- All available workspaces can now be listed, grouped
by monitor, by setting the module config `pin-workspaces`
to false
- Adds a new format tag <label-monitor>
- Treat <label-mode> as a normal format tag
2016-11-03 17:56:07 +01:00
Michael Carlberg
12a64bd3d6
fix(i3): Trim workspace names
...
Closes #126
2016-11-03 15:43:46 +01:00
Michael Carlberg
a1472dfd0f
refactor(battery): Poll values by default
...
Fixes jaagr/lemonbuddy#140
2016-11-03 15:21:46 +01:00
Michael Carlberg
52c08675e6
fix(battery): Ignore the fake inotify event
...
Assume fake event if polling flag is set.
Fixes jaagr/lemonbuddy#140
2016-11-03 14:40:12 +01:00
Michael Carlberg
af2289e397
fix(battery): Poll until real inotify event occurs
...
Fixes jaagr/lemonbuddy#140
2016-11-03 12:56:35 +01:00
Michael Carlberg
e7cb345cec
wip: Separate source from definitions
2016-11-03 12:54:32 +01:00
Michael Carlberg
d359ab6057
refactor: Application rewrite
2016-10-10 14:52:57 +02:00
Michael Carlberg
99f97b07eb
fix(bspwm): Look for socket path in env variable
...
Fixes jaagr/lemonbuddy#29
2016-06-30 16:12:13 +02:00
Michael Carlberg
80e6936cdc
refactor: Use shared_ptr for Bar/Opts
2016-06-29 12:42:54 +02:00
Michael Carlberg
f406f1eb9f
Cleanup and compiler check fixes
2016-06-29 11:06:44 +02:00
Michael Carlberg
f2999b7272
fix(date): Do not trigger updates when unchanged
2016-06-29 11:05:30 +02:00
Michael Carlberg
35d84ccb8d
fix(i3): Release wait lock
2016-06-28 17:16:46 +02:00
Michael Carlberg
b8a1dd628e
refactor(bspwm): Better socket handling
...
- Reconnect on POLLHUP
- Switch desktop using socket instead of std::system()
Fixes jaagr/lemonbuddy#27
2016-06-28 05:11:14 +02:00
Michael Carlberg
8b030930af
refactor: Better handling of spaces between format tags
...
Ignore spaces if the previous tag was not outputted
2016-06-28 01:05:48 +02:00
Michael Carlberg
ab06ed2c16
refactor(mpd): Cleanup
2016-06-28 01:05:45 +02:00
Michael Carlberg
f25d26fbd9
fix(mpd): Safety check
2016-06-27 22:55:52 +02:00
Michael Carlberg
78823fda6d
fix(mpd): Broadcast connection state changes once
2016-06-27 22:23:42 +02:00
Michael Carlberg
8caa95de7f
fix: Initialize token labels in constructor
2016-06-22 19:07:57 +02:00
Michael Carlberg
04bd48d104
fix(volume): Cleanup mixers on early destruct
2016-06-21 16:35:37 +02:00
Michael Carlberg
5f0a90722a
fix(battery): Replace debug message with trace
2016-06-21 07:50:05 +02:00
Michael Carlberg
fd88c60b97
fix(network): Use local logger
2016-06-21 07:49:15 +02:00
Michael Carlberg
d8a3d7d5f6
feat(mpd): Format tags for back-/forward seek
2016-06-21 05:10:18 +02:00
Michael Carlberg
006f3f8efd
fix(mpd): Default tag values
2016-06-21 04:38:14 +02:00
Michael Carlberg
89ea8d9146
fix(battery): Store paths
2016-06-21 04:38:01 +02:00
Michael Carlberg
ec2c27a44b
fix: Lock all mutexes on destruct
2016-06-21 04:26:42 +02:00
Michael Carlberg
c506829e4e
fix(core): Move non-templated method bodies out of header
2016-06-21 04:23:28 +02:00
Michael Carlberg
d451318bbd
fix(mpd): Disconnect on destruct
2016-06-21 04:23:28 +02:00
Michael Carlberg
e1f8c001dd
refactor: Pass by value
2016-06-21 04:23:23 +02:00
Michael Carlberg
b26ab9ce5f
task: Removed obsolete timer util
2016-06-20 22:18:53 +02:00