hyprland: split configuration to it's own module

This commit is contained in:
Tigor Hutasuhut 2024-10-16 21:14:36 +07:00
parent b8cf4dd74e
commit a46c19c390
4 changed files with 26 additions and 19 deletions

View file

@ -19,7 +19,7 @@ in
./wlogout.nix
# ./swappy.nix
./alacritty.nix
./swayosd.nix
./audio.nix
./sway-notification-center.nix
./ntfy-sh.nix
];

View file

@ -91,7 +91,6 @@ in
''$mod, RETURN, exec, footclient''
"$mod, E, exec, thunar"
"$mod, B, exec, microsoft-edge"
"$mod, D, exec, rofi -show drun -replace -i"
"$mod, BackSpace, exec, wlogout"
''$mod, F, exec, ${select-window.path}''
"$mod, W, exec, pypr wall next"
@ -151,24 +150,11 @@ in
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
# e -> repeat, will repeat when held.
# l -> even when locked
bindel = [
# Media
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise --max-volume 150"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower --max-volume 150"
# Light
", XF86MonBrightnessUp, exec, swayosd-client --brightness +10"
", XF86MonBrightnessDown, exec, swayosd-client --brightness -10"
];
bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPause, exec, playerctl pause"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
", XF86Calculator, exec, qalculate-gtk"
];

View file

@ -12,5 +12,9 @@ in
source = ./rofi;
recursive = true;
};
wayland.windowManager.hyprland.settings.bind = [
"$mod, D, exec, rofi -show drun -replace -i"
];
};
}

View file

@ -12,9 +12,26 @@ in
swayosd
];
wayland.windowManager.hyprland.settings.exec-once = [
"swayosd-libinput-backend"
"swayosd-server"
];
wayland.windowManager.hyprland.settings = {
exec-once = [
"swayosd-libinput-backend"
"swayosd-server"
];
bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
];
# e -> repeat, will repeat when held.
# l -> even when locked
bindel = [
# Media
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise --max-volume 150"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower --max-volume 150"
# Light
", XF86MonBrightnessUp, exec, swayosd-client --brightness +10"
", XF86MonBrightnessDown, exec, swayosd-client --brightness -10"
];
};
};
}