diff --git a/home/desktop/hyprland.nix b/home/desktop/hyprland.nix index 80615792..fd7c5292 100644 --- a/home/desktop/hyprland.nix +++ b/home/desktop/hyprland.nix @@ -102,6 +102,7 @@ bind = SUPER, F, exec, thunar bind = SUPER, M, fullscreen, 1 bind = SUPER, A, layoutmsg, togglesplit + bindl = SUPER SHIFT, C, exec, hyprctl reload bind = , XF86AudioMute, exec, pamixer -t binde = , XF86AudioRaiseVolume, exec, pamixer -i 2 @@ -164,8 +165,8 @@ bind = SUPER, N, workspace, empty bind = SUPER SHIFT, N, movetoworkspace, empty - bind = SUPER, C, togglespecialworkspace - bind = SUPER SHIFT, C, movetoworkspace, special + bind = SUPER, -, togglespecialworkspace + bind = SUPER SHIFT, -, movetoworkspace, special bind = SUPER, tab, workspace, previous bind = SUPER SHIFT, tab, movetoworkspace, previous diff --git a/users/elitherl/N0245.nix b/users/elitherl/N0245.nix index 508a772e..8b66f192 100644 --- a/users/elitherl/N0245.nix +++ b/users/elitherl/N0245.nix @@ -1,4 +1,10 @@ -{pkgs, ...}: { +{pkgs, ...}: let + laptop-state = pkgs.writeShellScriptBin "check-laptop-lid-state" '' + grep closed /proc/acpi/button/lid/LID0/state &&\ + hyprctl keyword monitor "eDP-1,disable" ||\ + hyprctl keyword monitor "eDP-1,preferred,auto,1.0" + ''; +in { imports = [./default.nix]; home-manager.users.elitherl = { home.packages = with pkgs; [ @@ -7,11 +13,13 @@ nomachine-client teams-for-linux zoom-us + laptop-state ]; wayland.windowManager.hyprland.extraConfig = '' source=./common.conf - monitor = eDP-1,preferred,auto,1.0 + bindl=,switch:Lid Switch,exec,hyprctl keyword monitor "eDP-1,disable" + monitor = DP-3,preferred,auto,auto monitor = DP-4,preferred,auto,auto,transform,1 @@ -28,6 +36,7 @@ exec-once = firefox exec-once = teams-for-linux + exec = ${laptop-state}/bin/check-laptop-lid-state ''; programs.waybar.settings = { main."output" = "!DP-4";