diff options
Diffstat (limited to 'modules/sway.nix')
| -rw-r--r-- | modules/sway.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/sway.nix b/modules/sway.nix index a935c57..36ad4b4 100644 --- a/modules/sway.nix +++ b/modules/sway.nix @@ -1,11 +1,10 @@ { config, lib, pkgs, ... }: let - cfg = config.sway; mod = config.wayland.windowManager.sway.config.modifier; in { options.sway.enable = lib.mkEnableOption "Enable sway and setup"; - config = lib.mkIf cfg.enable { + config = lib.mkIf config.sway.enable { home.packages = with pkgs; [ wmenu swaybg @@ -35,20 +34,25 @@ in { xkb_layout = "de"; }; }; + output = { DP-1 = { resolution = "1920x1080@240Hz"; bg = "/etc/nixos/jaison-lin-2WHTac8jVA8-unsplash.jpg fill"; }; }; + gaps = { inner = 15; }; + window = { titlebar = false; border = 0; }; + modifier = "Mod4"; + keybindings = lib.mkOptionDefault { "${mod}+q" = "kill"; "XF86AudioPlay" = "exec playerctl play-pause"; @@ -58,9 +62,11 @@ in { "XF86AudioLowerVolume" = "exec wpctl set-volume @DEFAULT_AUDIO_DEVICE@ -5%"; "XF86AudioMute" = "exec wpctl set-mute @DEFAULT_AUDIO_DEVICE@ toggle"; }; + menu = "${pkgs.wmenu}/bin/wmenu-run -b -N 000000"; terminal = "${pkgs.foot}/bin/foot"; defaultWorkspace = "workspace number 1"; + bars = [{ "command" = "${pkgs.waybar}/bin/waybar"; }]; |
