refactor: simplify hyprland config

This commit is contained in:
Kiana Sheibani 2025-01-10 18:47:03 -05:00
parent 9910a2fddb
commit 624ca5314e
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1,8 +1,6 @@
{ config, pkgs, lib, ... }:
let
scripts = ./scripts;
modifier = "SUPER";
terminal = "alacritty";
in {
wayland.windowManager.hyprland = {
enable = true;
@ -19,8 +17,8 @@ in {
brightness-disp = ''${scripts}/multimedia Brightness "" brightnessctl $(brightnessctl -e -m | cut -d, -f4 | tr -d "%")'';
brightness = x: "brightnessctl -e set ${x} && ${brightness-disp}";
in {
"$mod" = modifier;
"$terminal" = terminal;
"$mod" = "SUPER";
"$terminal" = "alacritty";
"$menu" = "rofi -show drun";
env = [