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-19 06:53:21 +01:00
|
|
|
./swaylock.nix
|
2023-06-04 09:38:51 +01:00
|
|
|
# ./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-19 06:53:21 +01:00
|
|
|
input."*".xkb_layout = "gb";
|
|
|
|
output."*".bg = "~/nixos/wallpaper.jpg fill";
|
2023-06-04 10:01:07 +01:00
|
|
|
fonts = {
|
|
|
|
names = ["FiraCode Nerd Font" "FiraCode Nerd Font Mono"];
|
|
|
|
size = 12.0;
|
|
|
|
};
|
2023-06-19 06:53:21 +01:00
|
|
|
gaps = {
|
|
|
|
inner = lib.mkDefault 5;
|
|
|
|
outer = lib.mkDefault 20;
|
|
|
|
};
|
2023-06-04 09:46:07 +01:00
|
|
|
bars = [];
|
2023-06-19 06:53:21 +01:00
|
|
|
startup = [{command = "dunst";} {command = "waybar";}];
|
2023-06-18 13:55:27 +01:00
|
|
|
modifier = lib.mkDefault "Mod4";
|
|
|
|
terminal = lib.mkDefault "${pkgs.wezterm}/bin/wezterm";
|
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
|
|
|
}
|