feat(hyprland): add display docking script

This commit is contained in:
tux
2025-09-18 15:29:25 +05:30
parent f11851c6bc
commit 4c98e05ec8

View File

@@ -7,12 +7,20 @@
environment.systemPackages = [ environment.systemPackages = [
(pkgs.writeShellScriptBin "mirror-display" '' (pkgs.writeShellScriptBin "mirror-display" ''
hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1,mirror,eDP-1" \ hyprctl keyword monitor "eDP-1,2560x1440@90,0x0,1" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1,mirror,eDP-1" \
&& astal -q \ && astal -q \
&& ${pkgs.tpanel}/bin/tpanel & && ${pkgs.tpanel}/bin/tpanel &
'') '')
(pkgs.writeShellScriptBin "extend-display" '' (pkgs.writeShellScriptBin "extend-display" ''
hyprctl keyword monitor "HDMI-A-1,preferred,0x-1440,1" \ hyprctl keyword monitor "eDP-1,2560x1440@90,0x0,1" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x-1440,1" \
&& astal -q \
&& ${pkgs.tpanel}/bin/tpanel &
'')
(pkgs.writeShellScriptBin "dock-display" ''
hyprctl keyword monitor "eDP-1,disable" \
&& hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1" \
&& astal -q \ && astal -q \
&& ${pkgs.tpanel}/bin/tpanel & && ${pkgs.tpanel}/bin/tpanel &
'') '')