From 3dd843baa1e0a0e93fb6cf12883f7efa2d5147aa Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Wed, 21 Jun 2023 22:40:57 -0400 Subject: [PATCH] Add emacs streaming shortcut --- home-manager/linux/programs/hyprland.nix | 3 +++ shortcuts/emacs/streaming | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100755 shortcuts/emacs/streaming diff --git a/home-manager/linux/programs/hyprland.nix b/home-manager/linux/programs/hyprland.nix index 9bbe53d..9b31e18 100644 --- a/home-manager/linux/programs/hyprland.nix +++ b/home-manager/linux/programs/hyprland.nix @@ -225,6 +225,9 @@ in with lib; { windowrule = center,pavucontrol windowrule = float,pavucontrol + # Emacs streaming + windowrulev2 = float,title:^(emacs-streaming)$ + ## Scratchpads # Alacritty diff --git a/shortcuts/emacs/streaming b/shortcuts/emacs/streaming new file mode 100755 index 0000000..4df1b90 --- /dev/null +++ b/shortcuts/emacs/streaming @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +emacs --name "emacs-streaming" & +sleep 1 +hyprctl dispatch resizewindowpixel exact 1829 1029,title:emacs-streaming + +wait