mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
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
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:
parent
3f9918caf9
commit
262481ac27
|
@ -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"];
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
tabletMode = {
|
||||
enable = true;
|
||||
tabletSwitches = ["Lenovo Yoga Tablet Mode Control switch"];
|
||||
switches = ["Lenovo Yoga Tablet Mode Control switch"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue