taschenb
0daae86fc9
fix(net): Allow all characters for the SSID
...
Don't filter out any character that is not part of the current C
locale, since it might drop some wanted characters
2018-08-09 14:09:50 -07:00
taschenb
3afc341c7b
feat(net): Add nl80211 support ( #1009 )
...
This patch enables support for nl80211. In case the libnl-genl-3.0
library isn't found, it will fall back to Wext instead.
The library to use can also be manually set with the CMake option
WITH_LIBNL.
The Wireless-Extensions (WE or Wext) are deprecated and long replaced
by cfg80211.
Although Wext isn't used by WiFi drivers anymore, CFG80211_WEXT allows
old tools to communicate with modern drivers by providing a wrapper
API.
2018-06-18 20:16:09 -07:00
sqwishy
d1d307d500
feat(net): Add local_ip6 token ( #1239 )
...
It's queried the same way ipv4 addresses are queried, but here it displays globally routable addresses. If there are multiple such addresses, it picks one (same as with ipv4). It's possible that an address discovered this way is not in fact globally reachable but still marked as global.
2018-06-10 22:51:43 +02:00
tamago
b70d5b55d8
feat(mpd): add support for MPD_TAG_ALBUM_ARTIST
2018-05-31 20:12:23 -07:00
patrick96
8173a6473e
fix(gcc): Fix -Wstringop-truncation warning
...
As mentioned in #1215 , gcc >=8 will complain, if strncpy truncates the
source string or gcc can prove there is no NUL terminating byte.
This also updates the i3ipcpp submodule where there was a similar error
Fixes #1215
2018-05-06 14:17:10 -07:00
NBonaparte
f2010edf94
fix(pulseaudio): fix max_volume naming
2018-05-05 10:57:01 +02:00
NBonaparte
4bf73ddd81
fix(pulseaudio): listen for default sink changes, and use @DEFAULT_SINK@
...
Using @DEFAULT_SINK@ macro avoids having to retrieve default sink name
2018-05-05 10:57:01 +02:00
Kajzer
688658c306
(pulseaudio) Add max volume configuration
2018-04-09 20:27:55 -07:00
patrick96
36ea6fbff8
Revert "fix(pulseaudio): add mutex for queue"
...
This reverts commit d430174f0b
.
Mutual exclusion is already guaranteed by the lock on
pa_threaded_mainloop
Fixes #1139
2018-04-07 13:52:48 -07:00
patrick96
428e54e0f6
log(mpd): typo
2018-04-07 12:10:10 -07:00
patrick96
ddb1fb4c3a
log(mpd): Use __func__ instead of __FUNCTION__
2018-04-07 12:10:10 -07:00
patrick96
bbe5769bb0
log(mpd): trace log setting boolean options
2018-04-07 12:10:10 -07:00
NBonaparte
10632178a8
fix(pulseaudio): add fallthrough marking
2018-03-31 00:52:17 +02:00
NBonaparte
d430174f0b
fix(pulseaudio): add mutex for queue
2018-03-31 00:52:17 +02:00
NBonaparte
5f88cd44c7
fix(pulseaudio): get default sink on new events when using default
2018-03-31 00:52:17 +02:00
NBonaparte
0a8a326730
feat(net): Add unknown-as-up option
...
Fixes #457
2018-03-04 23:09:18 +01:00
patrick96
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
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
1792090d66
refactor(pulseaudio): remove wait timeout, fix indents
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
Jens Henniges
d3abcc97f6
feat(mpd): Add support for icon-consume ( #861 )
2017-12-04 11:38:17 -08:00
NBonaparte
3092a1b18f
feat(mpd): Get name and/or uri if title not found ( #823 )
2017-11-08 21:12:44 -08:00
NBonaparte
d4d571425d
refactor(mpd): Keep tag getters consistent
2017-10-23 15:07:03 -07: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
Michael Carlberg
a5d6670121
refactor(clang-tidy): Apply fixes
2017-01-24 08:01:04 +01:00
Alexander Polynomdivision
22e255747a
Update the mixer class to support setting the name of the soundcard we want to get the mixer of
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
15f880eba4
fix(mpd): Handle broken connections
2017-01-13 13:02:51 +01:00
Michael Carlberg
e1dbd98c40
feat(string_util): Custom stringstream
2017-01-13 13:01:22 +01:00
Michael Carlberg
385572ec64
feat(xrandr): Support for monitors
...
Refs #280
2017-01-13 03:52:57 +01:00
Michael Carlberg
8cc885c316
refactor: Cleanup
2017-01-11 03:07:28 +01:00
Michael Carlberg
9c191cb025
fix(net): Always close socket handle
...
Refs #283
2017-01-01 15:10:58 +01:00
Michael Carlberg
ad0af86a7b
refactor(battery): Abstract value readers
...
Refs #263 , #245
2016-12-31 04:20:48 +01:00
Michael Carlberg
7ecd132610
fix(net): Convert dBm to percentage
...
Fixes #249
2016-12-23 08:13:40 +01:00
Michael Carlberg
a89c4ef2dd
refactor: Move all event handling to the controller
2016-12-20 05:16:04 +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
d8f69866cc
refactor(alsa): Memory allocation
2016-12-14 15:04:10 +01:00
Michael Carlberg
5e2a0bd298
refactor(alsa): Forward alsa structs and split classes
2016-12-14 11:01:44 +01:00