2023-06-26 16:40:16 +01:00
|
|
|
{pkgs, ...}: let
|
|
|
|
laptop-state = pkgs.writeShellScriptBin "check-laptop-lid-state" ''
|
|
|
|
grep closed /proc/acpi/button/lid/LID0/state &&\
|
2023-06-27 10:59:15 +01:00
|
|
|
hyprctl dispatch dpms off eDP-1 ||\
|
|
|
|
hyprctl dispatch dpms on eDP-1
|
|
|
|
grep closed /proc/acpi/button/lid/LID0/state && hyprctl dispatch exec swaylock
|
2023-06-26 16:40:16 +01:00
|
|
|
'';
|
|
|
|
in {
|
2023-06-26 15:08:44 +01:00
|
|
|
imports = [./default.nix];
|
|
|
|
home-manager.users.elitherl = {
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
zotero
|
|
|
|
openfortivpn
|
|
|
|
nomachine-client
|
|
|
|
teams-for-linux
|
|
|
|
zoom-us
|
2023-06-26 16:40:16 +01:00
|
|
|
laptop-state
|
2023-06-26 15:08:44 +01:00
|
|
|
];
|
|
|
|
wayland.windowManager.hyprland.extraConfig = ''
|
|
|
|
source=./common.conf
|
|
|
|
|
2023-06-27 10:59:15 +01:00
|
|
|
monitor = eDP-1,1920x1080,0x0,1.0
|
|
|
|
monitor = DP-3,1920x1200,1920x0,1.0
|
|
|
|
monitor = DP-4,1920x1080,3840x0,1.0,transform,1
|
|
|
|
bindl=,switch:Lid Switch,exec,check-laptop-lid-state
|
2023-06-26 15:08:44 +01:00
|
|
|
|
|
|
|
workspace = DP-3,1
|
|
|
|
workspace = DP-3,2
|
|
|
|
workspace = DP-3,3
|
|
|
|
workspace = DP-3,4
|
|
|
|
|
|
|
|
windowrule = float, title:^([Zz]oom).*$
|
|
|
|
windowrule = center, title:^([Zz]oom).*$
|
|
|
|
windowrule = workspace 3 silent, ^(teams-for-linux)$
|
|
|
|
windowrule = workspace 3, title:^([Zz]oom).*$
|
|
|
|
windowrule = workspace 4 silent, ^(Nxplayer.bin)$
|
|
|
|
|
|
|
|
exec-once = firefox
|
|
|
|
exec-once = teams-for-linux
|
2023-06-26 16:40:16 +01:00
|
|
|
exec = ${laptop-state}/bin/check-laptop-lid-state
|
2023-06-26 15:08:44 +01:00
|
|
|
'';
|
|
|
|
programs.waybar.settings = {
|
|
|
|
main."output" = "!DP-4";
|
|
|
|
alt = {
|
|
|
|
"include" = [
|
|
|
|
"~/.config/waybar/modules.json"
|
|
|
|
"~/.config/waybar/layout.json"
|
|
|
|
];
|
|
|
|
"output" = "DP-4";
|
|
|
|
"modules-left" = ["wlr/workspaces"];
|
|
|
|
"modules-center" = ["clock#compact"];
|
|
|
|
"modules-right" = ["tray"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|