Mostly migrate sway config to home-manager

This commit is contained in:
Nathan McCarty 2022-04-19 14:50:57 -04:00
parent 1f052fc5c5
commit 42004587f9
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 92 additions and 0 deletions

View File

@ -22,4 +22,33 @@
allowedTCPPorts = [ 61377 ];
allowedUDPPorts = [ 61377 ];
};
## Machine specific home-manager
home-manager.users.nathan = {
# Sway outputs
wayland.windowManager.sway.config = {
output = {
DP-1 = {
pos = "0 140";
scale = "1";
subpixel = "rgb";
};
DP-3 = {
pos = "2560 0";
scale = "1.25";
subpixel = "rgb";
};
HDMI-A-1 = {
pos = "5632 140";
scale = "1";
subpixel = "rgb";
};
};
};
# Mako output configuration
programs.mako = {
# Lock mako notifs to main display
output = "DP-3";
};
};
}

View File

@ -64,6 +64,8 @@
glpaper
# Screenshots
sway-contrib.grimshot
# Albert for launcher
albert
];
extraSessionCommands = ''
# Make qt theming work
@ -90,4 +92,65 @@
gtkUsePortal = true;
};
};
## Home manager stuff for sway
home-manager.users.nathan = {
# Configure sway itself
wayland.windowManager.sway = {
enable = true;
systemdIntegration = true;
wrapperFeatures = {
base = true;
gtk = true;
};
config = {
# Setup gaps
gaps = {
smartGaps = true;
inner = 9;
};
# disable borders
window = {
border = 0;
};
# Use windows key as modifier
modifier = "Mod4";
# Alacritty as default terminal
terminal = "alacritty";
# Use krunner (from kde) as our launcher
menu = "albert show";
# Use waybar
bars = [{
command = "${unstable.waybar}/bin/waybar";
}];
# Use fira code
fonts = {
names = [ "Fira Code Nerd Font" ];
size = 10.0;
};
};
extraConfig = ''
exec albert
exec mako
'';
};
# Mako for notifications
programs.mako = {
enable = true;
# Selenized color scheme
borderColor = "#f275be";
backgroundColor = "#184956";
textColor = "#adbcbc";
# Border configuration
borderSize = 3;
# Timeout to 5 seconds
defaultTimeout = 5000;
# Use Fira Code for font
font = "Fira Code Nerd Font 10";
# Group by application
groupBy = "app-name";
# Bottom right corner
anchor = "bottom-right";
};
};
}