hyprland: quick and dirty screen mirroring

This commit is contained in:
2025-05-05 14:56:22 +02:00
parent a0ae09452f
commit 9af362b5c8
2 changed files with 87 additions and 0 deletions

View File

@@ -47,6 +47,24 @@ in {
wf-recorder
wl-clipboard
(pkgs.writeShellScriptBin
"toggle-screen-mirroring"
(builtins.readFile
./toggle-screen-mirroring.sh))
(
pkgs.writeShellScriptBin
"correct-workspace-locations"
(
lib.concatStringsSep "\n"
(
builtins.concatLists (
map (monitor: map (ws: "hyprctl dispatch moveworkspacetomonitor ${ws} ${monitor.name}") monitor.workspaces) config.monitors
)
)
)
)
];
services.cliphist = {
@@ -194,6 +212,7 @@ in {
exec = [
"hyprctl setcursor ${config.gtk.cursorTheme.name} ${toString config.gtk.cursorTheme.size}"
"correct-workspace-locations"
];
misc = {
@@ -269,7 +288,9 @@ in {
"$mod SHIFT, E, exec, wlogout -p layer-shell"
"$mod, Escape, exec, wlogout -p layer-shell"
"$mod SHIFT, R, exec, hyprctl reload"
"$mod, Print, exec, hyprshot-gui"
", Print, exec, hyprshot-gui"
"$mod, P, exec, toggle-screen-mirroring; correct-workspace-locations"
# "$mod SHIFT, E, exec, pkill Hyprland"
# "$mod, G, togglegroup,"