Lukas Hannen
aa1f8a428b
avoid converting to local_time when converting to zoned_time afterwards
2023-11-06 01:28:48 +01:00
Alex
871f9a1269
fix: revert clock
2023-10-18 08:45:56 +02:00
Alex
208928ded5
fix: lint
2023-10-17 19:29:06 +02:00
Christopher Shore
14820e5d18
fix clock to work with fmt 10.x
2023-09-17 16:32:19 -04:00
Viktar Lukashonak
106535e3eb
tooltip-format spaces breaks pango format
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-07-29 23:46:35 +03:00
Viktar Lukashonak
dae7794bdf
Clock. Narrow seconds precision
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-07-25 00:08:13 +03:00
Viktar Lukashonak
d01ce7d812
Rewview changes.
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-07-24 10:16:38 +03:00
Viktar Lukashonak
4d9e0ea802
time conversion between time zones
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-07-24 01:21:33 +03:00
Maëlys Bras de fer
56f956ff90
clock: handle timezone changes (again)
2023-07-09 01:44:39 +02:00
Viktar Lukashonak
4d8515930f
Use local TZ, when user sets blank TZ in config
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-06-13 23:32:28 +03:00
Viktar Lukashonak
6de3b58d6a
ISSUE#2073
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-04-13 17:16:03 +03:00
Maxim Andreev
ffeef7f40f
modules/clock: fix calendar shift in months with 31 days
2023-03-31 20:07:59 +03:00
Viktar Lukashonak
4cb7e55a91
ISSUE #878 . Try catch Clock timezones
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-03-02 10:10:34 +03:00
Viktar Lukashonak
43862ceb34
ISSUE #878 . Try catch Clock timezones
2023-03-02 10:07:10 +03:00
Viktar Lukashonak
e25a7c9719
ISSUE#1977. AModule implements module actions call
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-02-28 15:32:28 +03:00
Alex
a6eaaad97f
Merge pull request #1998 from LukashonakV/Clock_revision
2023-02-09 09:32:57 +01:00
Viktar Lukashonak
677cbb3384
When no one timezone is provided use system's TZ
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-02-04 23:48:25 +03:00
Viktar Lukashonak
b5ad77ea8c
Avoid of unnecessary string transformation
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-02-02 13:26:05 +03:00
Viktar Lukashonak
5d8f9a8273
Clock. Formating simplify
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-01-27 15:57:18 +03:00
Viktar Lukashonak
f3f0b008c6
Clock. Proper handletoggle propagation
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-01-25 16:56:45 +03:00
Viktar Lukashonak
ed31b20c26
Merge branch 'master' into YearCalendar
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2023-01-23 18:42:32 +03:00
Maxim Andreev
f795e7a308
modules/clock: improve ux when calendar_shift is used:
...
1. change only date, but not time
2. use shifted values only in tooltip
3. reset shift when mouse leaves (popup closes)
2022-12-28 10:13:10 +03:00
Viktar Lukashonak
995802e8ae
ISSUE#1874 - happy linter
2022-12-14 16:49:03 +03:00
Viktar Lukashonak
0079092699
ISSUE#1874
...
1. Calendar. Weeks. Fix right paddings when first days of the week is
Monday
2. Fix small perfomrance penalty(avoid of defining parameter in the
month loop)
3. Small name convention for format string variables
2022-12-14 16:43:23 +03:00
Viktar Lukashonak
4c4d09992e
Regular expression improved
2022-12-10 18:36:58 +03:00
Viktar Lukashonak
9218968d2f
Wrong assigning
2022-12-10 17:55:21 +03:00
Viktar Lukashonak
272c638f7e
Happy linter
2022-12-10 16:48:22 +03:00
Viktar Lukashonak
57ad7f9536
ISSUE#1877 Calendar week numbers
...
1. Let's do code simplier
2. Week format using regexp. Needs when user provide additional
characters in format string and need to align week days according
3. Week format has got default formats: ":%U",":%V"
4. Week number is based on the first day of the week now. The output is
the same as of date library now.
5. Avoiding of unnecessary operations
2022-12-10 14:02:15 +03:00
Prokhor40
328575a721
fix: calendar week numbers
...
fix their format to correct
fix last number hide if the last day of the month is the last day of the week
some refactoring(mostly renaming abbreviations to the full phrases)
2022-12-06 03:47:28 +03:00
encbar5
8db1996ccc
Allow calendar_shift_init_ to be negative
2022-11-27 21:24:56 -06:00
Simon Plakolb
5e9bbe5c76
modules: Revert button to label
2022-11-24 13:08:16 +01:00
Simon Plakolb
2b735f44bc
modules: Set tooltip on button
...
Mouse-over tooltips set on the label only appear once the mouse hovers
over exactly the label. Other apps (e.g. firefox) show the tooltip once
the pointer hovers the button. Not solely its label. With this commit we
get the same behaviour.
2022-10-12 10:25:30 +02:00
Simon Plakolb
b8322c4b4b
button: Add AButton class
...
The AButton class is designed as full a substitute to ALabel. The
GtkButton attribute 'button_' is initialized with a label. This
label can the be referenced by the subsequent inheritors of AButton
instead of the GtkLabel attribute 'label_' of ALabel.
For convenience a GtkLabel* 'label_' attribute is added to AButton.
If the button cannot be clicked it is disabled, effectively acting
like its label predecessor.
GtkButton seems to catch one-click mouse events regardless of the
flags set on it. Therefore, 'signal_pressed' is connected to a
function creating a fake GdkEventButton* and calling 'handleToggle'
(for details on this possible bug in GTK see:
https://stackoverflow.com/questions/45334911 )
In accordance with other GtkButtons (i.e. the sway/workspace ones)
set_relief(Gtk::RELIEF_NONE) is called on the 'button_' instance.
2022-10-12 10:25:29 +02:00
Viktar Lukashonak
e9e5780aae
Calendar scrolling opportunity
2022-08-06 13:55:20 +03:00
Aleksei Bavshin
3117aefdf3
fix: drop conditionals for ancient fmt versions
2022-07-13 22:36:33 -07:00
Viktar Lukashonak
36aa22189b
Last weekday applies Unix fmt
2022-06-24 16:44:06 +03:00
Viktar Lukashonak
315ea991bc
Calendar module: localization issue #1552 Linter #60
2022-05-13 23:56:08 +03:00
Viktar Lukashonak
bd0f6128d3
Revert "Waybar. Issue#1552. Calendar module, LC_TIME variable"
...
This reverts commit 7b7ee41e13
.
2022-05-13 22:58:38 +03:00
Viktar Lukashonak
5a014305ec
Revert "Issue#1552. Calendar module, LC_TIME variable"
...
This reverts commit 448b413eca
.
2022-05-13 22:58:00 +03:00
Viktar Lukashonak
e615612bf4
Calendar module: localization issue #1552
2022-05-13 18:51:32 +03:00
Viktar Lukashonak
448b413eca
Issue#1552. Calendar module, LC_TIME variable
2022-05-13 12:54:18 +03:00
Viktar Lukashonak
7b7ee41e13
Waybar. Issue#1552. Calendar module, LC_TIME variable
2022-05-12 19:04:45 +03:00
Rene D. Obermueller
4e3f91d237
Issue 1226/1497: align updates with times divisible by interval
2022-04-16 14:21:28 +02:00
Rene D. Obermueller
e5d05baba3
Issue 1226/1497: Replace sleep_until with sleep_for to prevent clock from getting stuck with system time adjustment
2022-04-16 14:21:28 +02:00
Alex
54b1df69a9
fix: lint clock
2022-04-15 14:39:13 +02:00
LukashonakV
6ad1f6b853
Merge branch 'master' into master
2022-04-10 09:54:50 +00:00
Alex
f2fcadbf62
refactor: lint
2022-04-06 08:37:19 +02:00
Viktar Lukashonak
4a457648f9
Waybar. Clock module. Calendar - custom output formats
2022-03-27 11:15:56 +03:00
Viktar Lukashonak
1d2a381b5f
Waybar. Clock module - weeknum fix for the left side
2022-03-25 18:51:59 +03:00
Viktar Lukashonak
2d87bcb1ab
https://github.com/Alexays/Waybar/issues/1315 . Option to display week number on calendar
2022-03-24 15:41:50 +03:00