diff --git a/dots/hyprland.nix b/dots/hyprland.nix index 2eab1a7..e3dd5f5 100755 --- a/dots/hyprland.nix +++ b/dots/hyprland.nix @@ -314,8 +314,8 @@ in # ",XF86MonBrightnessDown, exec, light -U 5" # Brightness - ",XF86MonBrightnessUp, global, dms ipc call brightness increment 5" - ",XF86MonBrightnessDown, global, dms ipc call brightness decrement 5" + ",XF86MonBrightnessUp, exec, dms ipc call brightness increment 5" + ",XF86MonBrightnessDown, exec, dms ipc call brightness decrement 5" ]; bindl = [ diff --git a/dots/niri.nix b/dots/niri.nix index 75a6185..8535d5b 100755 --- a/dots/niri.nix +++ b/dots/niri.nix @@ -189,16 +189,8 @@ in ]; # Brightness control - "XF86MonBrightnessUp".action.spawn = [ - "sh" - "-c" - "dms ipc call brightness increment 5" - ]; - "XF86MonBrightnessDown".action.spawn = [ - "sh" - "-c" - "dms ipc call brightness decrement 5" - ]; + "XF86MonBrightnessUp".action.spawn = [ "dms" "ipc" "call" "brightness" "increment" "5" ]; + "XF86MonBrightnessDown".action.spawn = [ "dms" "ipc" "call" "brightness" "decrement" "5" ]; # Window management (matching hyprland) "${mod}+Q".action.close-window = { };