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; enable = true;
extraOptions = ["--unsupported-gpu" "-Dnoscanout"]; extraOptions = ["--unsupported-gpu" "-Dnoscanout"];
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
systemd.enable = true;
systemd.xdgAutostart = true; systemd.xdgAutostart = true;
config = { config = {
### Default Applications ### Default Applications
@ -32,7 +31,10 @@
menu = lib.getExe config.programs.rofi.package; menu = lib.getExe config.programs.rofi.package;
### Visuals ### Visuals
#window.titlebar = false; output."*".bg = "~/.local/share/backgrounds/Minato-Aqua-Dark.png fill";
window.titlebar = false;
gaps.inner = 4;
gaps.outer = 4;
bars = [ bars = [
{ {
command = lib.getExe pkgs.waybar; command = lib.getExe pkgs.waybar;
@ -42,33 +44,18 @@
# position = "top"; # position = "top";
#} #}
]; ];
gaps = {
inner = 4;
outer = 4;
#smartGaps = true;
};
output = {
eDP-1 = {
bg = "~/.local/share/backgrounds/Minato-Aqua-Dark.png fill";
};
};
### Inputs ### Inputs
input = { input."*" = {
"*" = { accel_profile = "flat";
accel_profile = "flat"; natural_scroll = "enabled";
natural_scroll = "enabled";
# touchpad # touchpad
tap = "enabled"; tap = "enabled";
drag = "enabled"; drag = "enabled";
dwt = "disabled"; dwt = "disabled";
};
}; };
### Autostarts
startup = [];
### Keybinds ### Keybinds
modifier = "Mod4"; modifier = "Mod4";
modes = {}; modes = {};
@ -85,9 +72,9 @@
# Window # Window
"${modifier}+s" = "split toggle"; "${modifier}+s" = "split toggle";
"${modifier}+v" = "floating toggle"; "${modifier}+v" = "floating toggle";
"${modifier}+f" = "fullscreen"; "${modifier}+f" = "fullscreen toggle";
"${modifier}+q" = "kill"; "${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 # Move around
"${modifier}+h" = "focus left"; "${modifier}+h" = "focus left";