From 2783d1b3f76dfae4232cea35308481b544c24db9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 30 May 2025 18:13:20 +0200 Subject: pkgs/yambar-modules: Drop I migrated away from yambar, and i3status-rust provides a batter alternative for these anyways. --- pkgs/by-name/ya/yambar-modules/src/main.rs | 36 ------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 pkgs/by-name/ya/yambar-modules/src/main.rs (limited to 'pkgs/by-name/ya/yambar-modules/src/main.rs') diff --git a/pkgs/by-name/ya/yambar-modules/src/main.rs b/pkgs/by-name/ya/yambar-modules/src/main.rs deleted file mode 100644 index 03bafadf..00000000 --- a/pkgs/by-name/ya/yambar-modules/src/main.rs +++ /dev/null @@ -1,36 +0,0 @@ -// nixos-config - My current NixOS configuration -// -// Copyright (C) 2025 Benedikt Peetz -// SPDX-License-Identifier: GPL-3.0-or-later -// -// This file is part of my nixos-config. -// -// You should have received a copy of the License along with this program. -// If not, see . - -use std::{env::args, process}; - -mod cpu; -mod memory; - -fn main() { - let args: Vec = args().collect(); - - if args.len() != 2 { - eprintln!("Usage: yambar-modules cpu|memory"); - process::exit(1); - } - - match args[1].as_str() { - "cpu" => { - cpu::cpu(); - } - "memory" => { - memory::memory(); - } - other => { - eprintln!("'{other}' is not a valid command. Only 'cpu' or 'memory'."); - process::exit(1); - } - } -} -- cgit 1.4.1