hyprland: split configuration to it's own module
This commit is contained in:
parent
b8cf4dd74e
commit
a46c19c390
|
@ -19,7 +19,7 @@ in
|
||||||
./wlogout.nix
|
./wlogout.nix
|
||||||
# ./swappy.nix
|
# ./swappy.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./swayosd.nix
|
./audio.nix
|
||||||
./sway-notification-center.nix
|
./sway-notification-center.nix
|
||||||
./ntfy-sh.nix
|
./ntfy-sh.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -91,7 +91,6 @@ in
|
||||||
''$mod, RETURN, exec, footclient''
|
''$mod, RETURN, exec, footclient''
|
||||||
"$mod, E, exec, thunar"
|
"$mod, E, exec, thunar"
|
||||||
"$mod, B, exec, microsoft-edge"
|
"$mod, B, exec, microsoft-edge"
|
||||||
"$mod, D, exec, rofi -show drun -replace -i"
|
|
||||||
"$mod, BackSpace, exec, wlogout"
|
"$mod, BackSpace, exec, wlogout"
|
||||||
''$mod, F, exec, ${select-window.path}''
|
''$mod, F, exec, ${select-window.path}''
|
||||||
"$mod, W, exec, pypr wall next"
|
"$mod, W, exec, pypr wall next"
|
||||||
|
@ -151,24 +150,11 @@ in
|
||||||
"$mod, mouse:272, movewindow"
|
"$mod, mouse:272, movewindow"
|
||||||
"$mod, mouse:273, resizewindow"
|
"$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 = [
|
bindl = [
|
||||||
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
|
|
||||||
", XF86AudioPlay, exec, playerctl play-pause"
|
", XF86AudioPlay, exec, playerctl play-pause"
|
||||||
", XF86AudioPause, exec, playerctl pause"
|
", XF86AudioPause, exec, playerctl pause"
|
||||||
", XF86AudioNext, exec, playerctl next"
|
", XF86AudioNext, exec, playerctl next"
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
", XF86AudioPrev, exec, playerctl previous"
|
||||||
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
|
|
||||||
", XF86Calculator, exec, qalculate-gtk"
|
", XF86Calculator, exec, qalculate-gtk"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -12,5 +12,9 @@ in
|
||||||
source = ./rofi;
|
source = ./rofi;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland.settings.bind = [
|
||||||
|
"$mod, D, exec, rofi -show drun -replace -i"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,26 @@ in
|
||||||
swayosd
|
swayosd
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings.exec-once = [
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
exec-once = [
|
||||||
"swayosd-libinput-backend"
|
"swayosd-libinput-backend"
|
||||||
"swayosd-server"
|
"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"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue