move desktops to their own folder

This commit is contained in:
tristan 2024-02-09 22:29:27 +00:00
parent 1444fd91c8
commit 06e889c274
7 changed files with 10 additions and 11 deletions

View file

@ -1,51 +0,0 @@
{
pkgs,
config,
...
}: let
term = "${config.programs.terminal}/bin/${config.programs.terminal.pname}";
modKeyName = config.windowManager.modifierKey;
modifier =
if modKeyName == "SUPER"
then "Mod4"
else if modKeyName == "ALT"
then "Mod1"
else null;
in {
imports = [
(import ./swaylock.nix)
(import ./swayidle.nix)
(import ./waybar.nix)
];
xdg.portal = {
enable = true;
configPackages = [pkgs.sway];
extraPortals = [pkgs.xdg-desktop-portal-wlr pkgs.xdg-desktop-portal-gtk];
};
wayland.windowManager.sway = {
enable = true;
config = {
inherit modifier;
bars = [];
input = {
"*" = {
xkb_layout = "gb";
xkb_options = "esperanto:qwerty,lv3:ralt_switch";
};
"type:touchpad".natural_scroll = "enabled";
};
};
};
services.mako.enable = true;
programs.waybar = {
enable = true;
settings = {
mainBar = {
modules-left = ["sway/workspaces" "sway/window"];
};
};
};
}