home: sway: cleanup

This commit is contained in:
Guanran Wang 2023-12-31 00:18:02 +08:00
parent 20b8ce733c
commit d911648235
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -24,7 +24,6 @@
enable = true;
extraOptions = ["--unsupported-gpu" "-Dnoscanout"];
wrapperFeatures.gtk = true;
systemd.enable = true;
systemd.xdgAutostart = true;
config = {
### Default Applications
@ -32,7 +31,10 @@
menu = lib.getExe config.programs.rofi.package;
### Visuals
#window.titlebar = false;
output."*".bg = "~/.local/share/backgrounds/Minato-Aqua-Dark.png fill";
window.titlebar = false;
gaps.inner = 4;
gaps.outer = 4;
bars = [
{
command = lib.getExe pkgs.waybar;
@ -42,20 +44,9 @@
# position = "top";
#}
];
gaps = {
inner = 4;
outer = 4;
#smartGaps = true;
};
output = {
eDP-1 = {
bg = "~/.local/share/backgrounds/Minato-Aqua-Dark.png fill";
};
};
### Inputs
input = {
"*" = {
input."*" = {
accel_profile = "flat";
natural_scroll = "enabled";
@ -64,10 +55,6 @@
drag = "enabled";
dwt = "disabled";
};
};
### Autostarts
startup = [];
### Keybinds
modifier = "Mod4";
@ -85,9 +72,9 @@
# Window
"${modifier}+s" = "split toggle";
"${modifier}+v" = "floating toggle";
"${modifier}+f" = "fullscreen";
"${modifier}+f" = "fullscreen toggle";
"${modifier}+q" = "kill";
"${modifier}+Shift+e" = "exec ${pkgs.sway}/bin/swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' '${pkgs.sway}/bin/swaymsg exit'";
"${modifier}+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'";
# Move around
"${modifier}+h" = "focus left";