NBonaparte
a1bd2673a1
get current desktop in handler
2017-04-11 12:44:14 -07:00
NBonaparte
8d0fef394b
handle EWMH current desktop changes
2017-04-10 19:14:27 -07:00
Jack Henschel
96714d0025
More graceful error handling for ya_wifi internal block
...
In case the wireless connection was not yet established or has been lost,
the block should not immediately fall into an error state and exit.
Rather, print a warning message and keep trying...
2017-03-30 08:34:40 +02:00
Jack Henschel
d682dd6c8d
Introduce new function for warning handling of internal blocks
2017-03-30 08:34:06 +02:00
NBonaparte
e96cc9ae72
Draw Pango backgrounds and underlines through Cairo ( #145 )
...
Filter out underline and bg and draw it ourselves
2017-03-29 14:32:43 -07:00
NBonaparte
89925b565a
name GET_GREEN and GET_BLUE correctly
2017-03-24 23:21:25 -07:00
NBonaparte
9d0239f002
change printf to fprintf
2017-03-24 16:18:48 -07:00
Jack Henschel
5a31dab643
Add addtional error handling to ya_volume
...
Without this check the block segfaults when no internal_option_2 is provided
2017-03-24 23:08:10 +01:00
NBonaparte
6b95b59090
Merge pull request #141 from kjdev/feature-dynamic_colors_cpu
...
Add dynamic colors for cpu
2017-03-23 22:15:15 -07:00
kj
242ef9e5fb
Add dynamic colors for cpu
2017-03-24 10:30:02 +09:00
kj
fe32c034fa
Add text offset size
2017-03-24 10:17:35 +09:00
NBonaparte
fee2f86db7
add volume mapping option
2017-03-21 14:48:28 -07:00
Jack Henschel
0e606d30b0
Use ya_block_error function in YABAR_DISKSPACE
2017-03-21 20:59:53 +01:00
Jack Henschel
8de12e95e8
Merge branch 'dev_errors'
2017-03-21 20:56:41 +01:00
NBonaparte
8dde730825
Merge branch 'transfer-disk-blk'
2017-03-21 10:51:06 -07:00
Jack Henschel
6ecd9c7488
Improve error handling for internal blocks
...
All internal yabar blocks should use a new function called "ya_block_error"
to signal a fatal error. This function will then automatically print the name
of the corresponding block, along with an error message and exit the thread.
2017-03-20 17:20:00 +01:00
NBonaparte
8fbd9fb6ba
Add monitor fallback, auto reload on screen change ( #137 )
...
Fixes #73 .
2017-03-19 15:24:57 -07:00
Jack Henschel
884ca23899
Fix indentation
2017-03-18 19:46:47 +01:00
Jack Henschel
1c4f8fe1aa
Clean up code for wifi block
2017-03-18 17:38:29 +01:00
Jack Henschel
b922e0ca99
Fix c header includes for wifi block
2017-03-18 17:38:29 +01:00
Jack Henschel
56436505c0
Initial import of wifi block
2017-03-18 17:38:29 +01:00
NBonaparte
db9c1b9fa9
Small fixes
...
* fix unspecified format warning
* add internal spacing to diskspace block
* fix comment style
2017-03-14 20:52:12 -07:00
losynix
f3849ee4c5
add comments to disk usage block
2017-03-14 20:52:12 -07:00
losynix
3f9ba1a67b
add disk usage block
2017-03-14 20:52:12 -07:00
NBonaparte
8f6039b291
Minor fixes to #70
...
Thanks to @nmiculinic for the original code
2017-03-14 20:31:52 -07:00
NBonaparte
f726a74852
use uint8_t for spacing
2017-02-26 13:52:32 -08:00
NBonaparte
d6674597d3
inherit name, old colors, and internal spacing
2017-02-25 17:34:01 -08:00
NBonaparte
6b08e648fc
fix strut sizes
2017-02-25 12:17:50 -08:00
Bernd Busse
3075cfc639
add env variables for click position in block ( #65 )
2017-02-23 23:26:17 -08:00
NBonaparte
326bb4e59d
Fix struts to be inclusive
2017-02-23 20:11:25 -08:00
NBonaparte
63f0bb222e
revert override redirect
2017-02-23 20:02:01 -08:00
NBonaparte
bc091f5957
redraw all bars
2017-02-09 22:52:21 -08:00
NBonaparte
227a0ec695
Fixes ( #126 )
...
* redraw on exposure
* add override redirect and remove whitespace
* init all strut values to 0
* fix bspwm window order
* add icccm to travis
* add bspwm flag
2017-02-03 15:48:31 -08:00
George Badawi
affbcc7c52
Merge pull request #113 from losynix/default-interface
...
Bandwidth blk : 'default' option1
2017-02-03 04:16:47 +02:00
George Badawi
f659cb8bb8
Merge pull request #92 from kjdev/ewmh-position
...
Fixed xcb-ewmh window position
2017-02-03 04:05:40 +02:00
losynix
c6a9e3d345
add volume internal block
2016-09-15 18:48:09 +02:00
losynix
e779016408
close file after reading it
2016-09-08 11:39:43 +02:00
losynix
9d34ec7fb8
Bandwidth blk : 'default' option1
...
This is done by reading /proc/net/route
2016-09-06 21:45:22 +02:00
geommer
bc24863afa
implement a saner implementation for variable width feature
2016-08-26 02:11:25 +02:00
Sébastien Viande
4156aec956
Fix segfault for inherit-all attr on bar
2016-08-12 18:57:02 +02:00
George Badawi
94e05dd625
Merge pull request #94 from kjdev/loadavg
...
Add load average
2016-07-22 00:54:30 +03:00
kj
b7630187c9
Fixed xcb-ewmh window position
2016-07-07 10:23:09 +09:00
kj
e3853f0c1f
Add load average
2016-07-07 10:18:50 +09:00
Jack Henschel
14014ee05a
Fix format error warning when compiling
...
Previously, when compiling with default settings for Debian pkgs,
building was impossible:
cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -Wdate-time -D_FORTIFY_SOURCE=2
-DVERSION=\"0.4.0-1-g44211c1\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL -DYA_ENV_VARS -DYA_INTERNAL_EWMH -c -o src/ya_parse.o src/ya_parse.c
src/ya_parse.c: In function ‘ya_inherit_blk’:
src/ya_parse.c:116:3: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(stderr, per);
^
src/ya_parse.c:126:3: error: format not a string literal and no format arguments [-Werror=format-security]
fprintf(stderr, per);
^
cc1: some warnings being treated as errors
<builtin>: recipe for target 'src/ya_parse.o' failed
2016-06-21 22:28:37 +02:00
geommer
30e78c0764
Merge branch 'master' into dev_var_width
2016-06-20 11:52:20 +02:00
Andrei Barbu
7e6cc02466
better window title handling and an explanation for missing titles
2016-06-13 22:44:13 -04:00
geommer
82e6a2789e
fast improvement for fix #69
2016-06-14 03:12:08 +02:00
geommer
d681b94ee6
Merge branch 'master' of ssh://github.com/geommer/yabar
2016-06-14 02:54:12 +02:00
George Badawi
523b2362b4
Merge pull request #64 from tryone144/master
...
Fixed segfault when omitting option 1 for internal date block
2016-06-14 02:37:37 +03:00
Neven Miculinic
5029a373ac
Refactored same code in file
...
DRY -- don't repeat yourself. Much code was repeated,
mostly error control. Also used ferror instead of checking
return code from fscanf. Resulting code is cleaner and shorter.
2016-06-04 23:48:15 +01:00