hyprland: simplify and remove unused tablet options (#68)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-07-30 16:51:41 -04:00 committed by GitHub
parent 3f9918caf9
commit 262481ac27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 22 deletions

View file

@ -18,7 +18,7 @@
["hyprland/workspaces" "hyprland/submap"]
++ lib.optionals (config.ar.home.desktop.sway.enable)
["sway/workspaces" "sway/scratchpad" "sway/mode"]
++ lib.optionals (config.ar.home.desktop.hyprland.tabletMode.menuButton)
++ lib.optionals (config.ar.home.desktop.hyprland.tabletMode.enable)
["custom/menu" "custom/hyprland-close"];
modules-center = ["clock"];

View file

@ -75,7 +75,7 @@ in {
",xf86audioprev,exec,${helpers.media.prev}"
",xf86audionext,exec,${helpers.media.next}"
]
++ builtins.map (switch: ",switch:${switch},exec,${scripts.tablet}") cfg.desktop.hyprland.tabletMode.tabletSwitches
++ builtins.map (switch: ",switch:${switch},exec,${scripts.tablet}") cfg.desktop.hyprland.tabletMode.switches
++ lib.lists.optionals (cfg.desktop.hyprland.laptopMonitors != [])
[
",switch:on:Lid Switch,exec,${scripts.clamshell} on"

View file

@ -162,29 +162,11 @@ in {
tabletMode = {
enable = lib.mkEnableOption "Tablet mode for hyprland.";
autoRotate = lib.mkOption {
description = "Whether to autorotate screen.";
default = cfg.desktop.hyprland.tabletMode.enable;
type = lib.types.bool;
};
menuButton = lib.mkOption {
description = "Whether to add menu button for waybar.";
default = cfg.desktop.hyprland.tabletMode.enable;
type = lib.types.bool;
};
tabletSwitches = lib.mkOption {
switches = lib.mkOption {
description = "Switches to activate tablet mode when toggled.";
default = [];
type = lib.types.listOf lib.types.str;
};
virtKeyboard = lib.mkOption {
description = "Whether to enable dynamic virtual keyboard.";
default = cfg.desktop.hyprland.tabletMode.enable;
type = lib.types.bool;
};
};
};

View file

@ -48,7 +48,7 @@
tabletMode = {
enable = true;
tabletSwitches = ["Lenovo Yoga Tablet Mode Control switch"];
switches = ["Lenovo Yoga Tablet Mode Control switch"];
};
};
}