nixos/home/desktop/sway.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

2023-06-04 11:33:21 +01:00
{
pkgs,
lib,
config,
...
}: let
modifier = config.wayland.windowManager.sway.config.modifier;
term = config.wayland.windowManager.sway.config.terminal;
2023-06-04 11:33:21 +01:00
in {
imports = [
# ./swaylock.nix
# ./eww.nix
./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;
wayland.windowManager.sway = {
enable = true;
config = {
fonts = {
names = ["FiraCode Nerd Font" "FiraCode Nerd Font Mono"];
size = 12.0;
};
gaps = {
inner = 5;
outer = 20;
};
2023-06-04 09:46:07 +01:00
bars = [];
2023-06-04 11:33:21 +01:00
keybindings = lib.mkOptionDefault {
"${modifier}+Return" = "exec ${term}";
"${modifier}+q" = "kill";
"${modifier}+e" = "exec power-profiles";
2023-06-04 11:43:57 +01:00
"${modifier}+p" = "exec powermenu";
"${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";
"${modifier}+f" = "exec ${pkgs.xfce.thunar}/bin/thunar";
"${modifier}+m" = "fullscreen toggle";
"${modifier}+c" = "scratchpad show";
"${modifier}+Shift+c" = "move scratchpad";
2023-06-04 11:33:21 +01:00
};
};
};
2023-05-16 09:11:39 +01:00
}