Marius Feraru
5a674449b4
add units_spacer option for tuning string between values and units
2021-04-26 09:48:46 -05:00
Brenden Matthews
7fb40fb5f2
Revert "fix: update update last_update_time
earlier, so the network speed is correctly displayed, otherwise the speed shown is much lower than the actual speed ( resolves #863 )"
...
This reverts commit 415c730133
.
2021-04-25 09:00:29 -05:00
Brenden Matthews
da2ddb00ed
Partially revert change from c352069b31
.
...
It's not quite clear to me what the intent was here, but I don't believe
this change was correct. We shouldn't block on callbacks within the main
loop.
This fixes #901 .
2021-04-25 09:00:29 -05:00
Rogier Reerink
df11925db3
Added support for Intel backlight.
2021-04-22 10:06:36 -05:00
Brenden Matthews
23a4936835
Add a legacymem
variable for free
compat.
...
It seems there is some confusion between the way Conky reports free
memory, versus other programs. I'm adding a new variable, `legacymem`,
to provide the same value that is reported on older programs that don't
report memory the way recommended by newer kernels.
For more details, see:
* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
* https://github.com/brndnmtthws/conky/pull/859
* https://github.com/brndnmtthws/conky/pull/1028
* https://github.com/brndnmtthws/conky/issues/1090
This resolves #1090 .
2021-04-22 10:03:43 -05:00
Brenden Matthews
a971046819
Roll back change from 91a3f2ed87
.
...
While made in earnest, I think this change was incorrect and actually
caused a regression.
Thanks to ChrisCheney for communicating this in a way that my small ape
brain could understand.
This resolves issue #1090 .
2021-04-22 08:37:34 -05:00
Brenden Matthews
9970c07aeb
Fix XGetDefault DPI handling.
...
XGetDefault doesn't always return a value, check that it returns
something before assuming it's valid.
This fixes #1088 .
2021-04-20 08:13:24 -05:00
Brenden Matthews
d966e8522a
Run clang-format.
2021-04-18 11:45:29 -05:00
Zhaf
78f46d5e6b
Add ClassName hint to own window even when the Override_redirect is true
2021-04-18 11:10:37 -05:00
Brenden Matthews
8860053985
Save this file before committing.
2021-04-18 11:07:22 -05:00
Brenden Matthews
eeca044d09
Relocate this var.
2021-04-18 11:05:28 -05:00
Brenden Matthews
ca3574436b
Minor build fix, but do it right.
2021-04-18 11:02:19 -05:00
Brenden Matthews
cc092014a3
Minor build fix.
2021-04-18 10:57:20 -05:00
Livanh
3be1320e6c
Use xft_dpi_scale function instead of DPI_SCALE macro
2021-04-10 11:32:24 -05:00
Livanh
1c6c4bcf6a
Scale UI elements according to Xft.dpi
2021-04-10 11:32:24 -05:00
Steven Xu
415c730133
fix: update update last_update_time
earlier, so the network speed is correctly displayed, otherwise the speed shown is much lower than the actual speed ( resolves #863 )
2021-03-24 10:10:17 -05:00
Brenden Matthews
33aa5060c2
Make sure gradient width is >=2.
...
This should resolve #1070 for real this time.
2021-03-09 07:54:37 -06:00
Brenden Matthews
16f2ed659e
Tidy up gradient stuff.
2021-03-06 06:58:08 -06:00
Brenden Matthews
0f3c706336
Replace temporary colour array with smart pointer.
...
This should fix #1070 .
2021-03-04 09:56:20 -05:00
Brenden Matthews
3c43c4c7fe
Refactor hsv code.
2021-03-03 12:19:20 -05:00
Brenden Matthews
dbdc003a96
Appese clang-format.
2021-03-02 13:38:08 -06:00
Brenden Matthews
5da4481f55
Fix non-IPV6 build ( resolves #1033 ).
2021-03-02 13:17:46 -06:00
Brenden Matthews
08d77f05ba
Remove this here pragma.
2021-02-27 10:21:41 -06:00
Brenden Matthews
e7cbc43f62
Drop support for systemd <= 205.
2021-02-27 09:26:11 -06:00
Brenden Matthews
308f2cb8ea
Update copyright, authors.
2021-02-27 09:14:19 -06:00
Brenden Matthews
91a3f2ed87
Fix formatting, remove bad line.
2021-02-05 08:44:29 -06:00
nihilix-melix
c2c9e07afc
Update linux.cc
2021-02-05 08:44:29 -06:00
Vladimir D. Seleznev
8ce3855b50
Fix conky window crawling
...
The conky window is crawling when some other is moving around it.
To reproduce this bug run conky with the following config:
double_buffer yes
TEXT
TEST
And slowly move other window near conky window.
The bug was introduced in e2bd14e7b7
.
Reported and patch by: George V. Kouryachy (Fr. Br. George) <george@altlinux.org>
2021-02-05 08:39:08 -06:00
Brenden Matthews
68868f4cc0
Run clang-format.
2021-02-03 18:38:41 -06:00
Brenden Matthews
9adaba449a
Run clang-format.
2021-02-01 17:30:17 -06:00
Syco
5ee577ec1f
fix file permission
...
Signed-off-by: Syco <alberto.rinaudo+dino@gmail.com>
2021-01-31 08:26:46 -06:00
Syco
050ee5d3c4
change y coordinate
...
Signed-off-by: Syco <alberto.rinaudo+dino@gmail.com>
2021-01-31 08:26:46 -06:00
Syco
bea6a5cb9b
tests for issue 236
2021-01-31 08:26:46 -06:00
Christian Kögler
c3dab80fc1
Fix memory leak for keyboard_layout
...
see also https://github.com/brndnmtthws/conky/issues/968
2021-01-30 18:58:09 -06:00
Brenden Matthews
1f0434ed65
Prefer std::abs() over abs().
2021-01-24 09:53:43 -06:00
Brenden Matthews
0f99ff0bca
Two more formatting fixes.
2021-01-24 09:08:29 -06:00
Brenden Matthews
617e9f14a2
Fix incorrect callback argument for MHD.
2021-01-24 09:07:24 -06:00
Brenden Matthews
168607829d
Apply a few minor formatting fixes.
2021-01-24 08:44:28 -06:00
Brenden Matthews
e4fad17dc0
Apply clang-format.
2021-01-23 19:47:57 -06:00
Brenden Matthews
36faf216df
Fix incorrect param order.
2021-01-23 19:17:40 -06:00
Brenden Matthews
05321f375a
Run clang-format.
2021-01-23 18:41:22 -06:00
humanoid2050
351a7a8d22
made fan data available for indices higher than the gpu card count, and added some protection against bad requests
2021-01-23 18:40:51 -06:00
Brenden Matthews
b679b54508
Run clang-format.
2021-01-23 18:39:35 -06:00
Mithil Poojary
0a4eb8fda5
Replace vulnerable functions with safer alternatives
2021-01-23 18:39:01 -06:00
Mithil Poojary
6bda01266b
Confirm pointer is not null and use sizeof object instead of struct
2021-01-23 18:39:01 -06:00
Mithil Poojary
ddb70b4ba9
Confirm that index is greater than 0
2021-01-23 18:39:01 -06:00
Mithil Poojary
b97eff4dbe
Fix order of freeing memory
2021-01-23 18:39:01 -06:00
Mithil Poojary
87a31ba039
Avoid passing null pointer to strncpy
2021-01-23 18:39:01 -06:00
Mithil Poojary
a9ecfbaae5
Free memory after use
2021-01-23 18:39:01 -06:00
Mithil Poojary
e9fcca035b
Avoid out of bound memory access
...
Value of idx is -1, if find_match_op returns -1.
Later idx is used as index for accessing element of expr_dup
causing our of bound memory access.
2021-01-23 18:39:01 -06:00