update laptop configuration

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-07-16 20:14:43 +02:00
parent 72e4be86eb
commit 59ae3d5f9d
50 changed files with 479 additions and 1009 deletions

View File

@@ -1,6 +1,10 @@
# Turn the keyboard red/off when the battery is low
{ pkgs, config, ... }:
let
# Include this one only if you have a omen laptop with RGB keyboard
{
pkgs,
config,
...
}: let
keyboard-backlight = pkgs.writeShellScriptBin "keyboard-backlight" ''
function set_keyboard_backlight {
local color=$1
@@ -31,4 +35,4 @@ let
'';
command = "bash ${keyboard-backlight}/bin/keyboard-backlight &";
in { wayland.windowManager.hyprland.settings.exec-once = [ command ]; }
in {wayland.windowManager.hyprland.settings.exec-once = [command];}