Skip to content

Commit 5dbff5a

Browse files
committed
👷 tweaks: add cachy update
1 parent bee9208 commit 5dbff5a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎i18n/en/cachyos_hello.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ tweak-oomd-tooltip = Proactively kill processes during low memory to prevent fre
4343
tweak-bpftune-tooltip = Automatically tune system network
4444
tweak-bluetooth-tooltip = Enable support for Bluetooth wireless devices (mice, audio, etc.)
4545
tweak-ananicycpp-tooltip = Auto-adjust process priorities for better system responsiveness
46+
tweak-cachyupdate-tooltip = Update notifier in tray
4647
4748
# Tweaks page (fixes)
4849
remove-lock-title = Remove db lock

‎src/pages.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,19 +464,23 @@ fn create_options_section() -> gtk::Box {
464464
create_tweak_checkbox!("Bluetooth", "bluetooth.service", "service", "bluez");
465465
let ananicy_cpp_btn =
466466
create_tweak_checkbox!("Ananicy Cpp", "ananicy-cpp.service", "service", "ananicy-cpp");
467+
let cachy_update_btn =
468+
create_tweak_checkbox!("Cachy Update", "arch-update.timer", "user_service", "cachy-update");
467469

468470
// set tooltips
469471
psd_btn.set_tooltip_text(Some(&fl!("tweak-psd-tooltip")));
470472
systemd_oomd_btn.set_tooltip_text(Some(&fl!("tweak-oomd-tooltip")));
471473
bpftune_btn.set_tooltip_text(Some(&fl!("tweak-bpftune-tooltip")));
472474
bluetooth_btn.set_tooltip_text(Some(&fl!("tweak-bluetooth-tooltip")));
473475
ananicy_cpp_btn.set_tooltip_text(Some(&fl!("tweak-ananicycpp-tooltip")));
476+
cachy_update_btn.set_tooltip_text(Some(&fl!("tweak-cachyupdate-tooltip")));
474477

475478
topbox.pack_start(&label, true, false, 1);
476479
box_collection.pack_start(&psd_btn, true, false, 2);
477480
box_collection_s.pack_start(&systemd_oomd_btn, true, false, 2);
478481
box_collection_s.pack_start(&bpftune_btn, true, false, 2);
479482
box_collection.pack_start(&ananicy_cpp_btn, true, false, 2);
483+
box_collection.pack_start(&cachy_update_btn, true, false, 2);
480484
box_collection_s.pack_start(&bluetooth_btn, true, false, 2);
481485
box_collection.set_halign(gtk::Align::Fill);
482486
box_collection_s.set_halign(gtk::Align::Fill);

‎src/systemd_units.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ impl Default for SystemdUnits {
1818
async fn get_enabled_units(conn: &zbus::Connection) -> anyhow::Result<Vec<String>> {
1919
let manager = zbus_systemd::systemd1::ManagerProxy::new(conn).await?;
2020
let services = manager
21-
.list_unit_files_by_patterns(vec!["enabled".into()], vec!["*.service".into()])
21+
.list_unit_files_by_patterns(vec!["enabled".into()], vec![
22+
"*.service".into(),
23+
"*.timer".into(),
24+
])
2225
.await?;
2326

2427
let service_files: Vec<_> = services

0 commit comments

Comments
 (0)