2023-06-04 11:33:21 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
2023-06-04 11:39:46 +01:00
|
|
|
term = config.wayland.windowManager.sway.config.terminal;
|
2023-06-04 11:33:21 +01:00
|
|
|
in {
|
2023-06-02 12:21:19 +01:00
|
|
|
imports = [
|
2023-06-04 09:38:51 +01:00
|
|
|
# ./swaylock.nix
|
|
|
|
# ./eww.nix
|
2023-06-02 12:21:19 +01:00
|
|
|
./waybar.nix
|
|
|
|
./gtk.nix
|
|
|
|
./dunst.nix
|
|
|
|
./rofi.nix
|
|
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
pipewire
|
|
|
|
wireplumber
|
|
|
|
wl-clipboard
|
|
|
|
swayimg
|
|
|
|
hyprpaper
|
|
|
|
brightnessctl
|
|
|
|
];
|
|
|
|
programs.rofi.package = pkgs.rofi-wayland;
|
2023-06-04 09:38:51 +01:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-06-04 10:01:07 +01:00
|
|
|
fonts = {
|
|
|
|
names = ["FiraCode Nerd Font" "FiraCode Nerd Font Mono"];
|
|
|
|
size = 12.0;
|
|
|
|
};
|
2023-06-04 09:46:07 +01:00
|
|
|
bars = [];
|
2023-06-04 11:33:21 +01:00
|
|
|
keybindings = lib.mkOptionDefault {
|
2023-06-04 11:39:46 +01:00
|
|
|
"${modifier}+Return" = "exec ${term}";
|
|
|
|
"${modifier}+q" = "kill";
|
|
|
|
"${modifier}+e" = "exec power-profiles";
|
2023-06-04 11:43:57 +01:00
|
|
|
"${modifier}+p" = "exec powermenu";
|
2023-06-04 11:39:46 +01:00
|
|
|
"${modifier}+v" = "floating toggle";
|
|
|
|
"${modifier}+space" = "exec ${pkgs.rofi}/bin/rofi -show drun";
|
|
|
|
# "${modifier}+F1" = "exec ${pkgs.swaylock}/bin/swaylock";
|
2023-06-04 11:33:21 +01:00
|
|
|
"${modifier}+w" = "exec ${pkgs.firefox}/bin/firefox";
|
2023-06-04 11:48:52 +01:00
|
|
|
"${modifier}+f" = "exec ${pkgs.xfce.thunar}/bin/thunar";
|
2023-06-04 11:39:46 +01:00
|
|
|
"${modifier}+m" = "fullscreen toggle";
|
2023-06-04 11:48:52 +01:00
|
|
|
"${modifier}+c" = "scratchpad show";
|
|
|
|
"${modifier}+Shift+c" = "move scratchpad";
|
2023-06-04 11:33:21 +01:00
|
|
|
};
|
2023-06-04 09:38:51 +01:00
|
|
|
};
|
|
|
|
};
|
2023-05-16 09:11:39 +01:00
|
|
|
}
|