blob: ae9ce77188b35081d87912acd0cc4c72b5e1a416 [file] [log] [blame]
Skyler Turnerdb486c92022-03-06 10:48:24 +00001{ pkgs, ... }: {
2 wayland.windowManager.sway = {
3 enable = true;
4 wrapperFeatures.gtk = true;
Skyler Turnerf2a88392022-03-06 21:08:15 +00005
6 config = {
7 assigns = {};
8 bars = [];
9 colors = {};
Skyler Turnerfe471d32022-03-07 13:16:17 +000010 defaultWorkspace = null;
11 down = "j";
12 floating = {};
13 focus = {};
14 fonts = {};
15 gaps = {
Skyler Turnerff4b0bd2022-03-07 13:17:23 +000016 inner = 3;
17 outer = 6;
Skyler Turnerfe471d32022-03-07 13:16:17 +000018 };
Skyler Turner07eb3d12022-03-06 21:08:29 +000019 };
Skyler Turnereda726a2022-03-07 00:23:17 +000020
21 systemdIntegration = true;
Skyler Turnerdb486c92022-03-06 10:48:24 +000022 };
23
24 home.packages = with pkgs; [
25 swaylock
26 swayidle
27 wl-clipboard
Skyler Turner9dfac612022-03-06 10:48:57 +000028 ];
Skyler Turnerdb486c92022-03-06 10:48:24 +000029
Skyler Turnerd3b70682022-03-06 23:19:45 +000030 programs.zsh.profileExtra = ''
31 if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
32 exec systemd-cat -t sway sway
33 fi
34 '';
Skyler Turnerdb486c92022-03-06 10:48:24 +000035}