refactor: simplify hyprland config
This commit is contained in:
parent
9910a2fddb
commit
624ca5314e
1 changed files with 2 additions and 4 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
scripts = ./scripts;
|
scripts = ./scripts;
|
||||||
modifier = "SUPER";
|
|
||||||
terminal = "alacritty";
|
|
||||||
in {
|
in {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -19,8 +17,8 @@ in {
|
||||||
brightness-disp = ''${scripts}/multimedia Brightness "" brightnessctl $(brightnessctl -e -m | cut -d, -f4 | tr -d "%")'';
|
brightness-disp = ''${scripts}/multimedia Brightness "" brightnessctl $(brightnessctl -e -m | cut -d, -f4 | tr -d "%")'';
|
||||||
brightness = x: "brightnessctl -e set ${x} && ${brightness-disp}";
|
brightness = x: "brightnessctl -e set ${x} && ${brightness-disp}";
|
||||||
in {
|
in {
|
||||||
"$mod" = modifier;
|
"$mod" = "SUPER";
|
||||||
"$terminal" = terminal;
|
"$terminal" = "alacritty";
|
||||||
"$menu" = "rofi -show drun";
|
"$menu" = "rofi -show drun";
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue