feat: add shell aliases for monitor

This commit is contained in:
tux
2025-09-16 22:36:03 +05:30
parent 28f764372b
commit 9eb052ff02
2 changed files with 14 additions and 1 deletions

View File

@@ -31,7 +31,7 @@
in { in {
#-- Output #-- Output
# See https://wiki.hyprland.org/Configuring/Monitors # See https://wiki.hyprland.org/Configuring/Monitors
monitor = "eDP-1,2560x1440@90,auto,1"; monitor = "eDP-1,2560x1440@90,0x0,1";
#-- Input: Keyboard, Mouse, Touchpad #-- Input: Keyboard, Mouse, Touchpad
input = { input = {

View File

@@ -4,4 +4,17 @@
package = pkgs.hyprland-git.hyprland; package = pkgs.hyprland-git.hyprland;
portalPackage = pkgs.hyprland-git.xdg-desktop-portal-hyprland; portalPackage = pkgs.hyprland-git.xdg-desktop-portal-hyprland;
}; };
environment.systemPackages = [
(pkgs.writeShellScriptBin "mirror-display" ''
hyprctl keyword monitor "HDMI-A-1,preferred,0x0,1,mirror,eDP-1" \
&& astal -q \
&& ${pkgs.tpanel}/bin/tpanel &
'')
(pkgs.writeShellScriptBin "extend-display" ''
hyprctl keyword monitor "HDMI-A-1,preferred,0x-1440,1" \
&& astal -q \
&& ${pkgs.tpanel}/bin/tpanel &
'')
];
} }