From c817a13e220c2fd418df24d41a99aeb35f3154eb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 26 Jan 2025 13:27:10 +0100 Subject: bump --- accounts/gkleen@sif/default.nix | 7 ++++++- accounts/gkleen@sif/emacs.el | 1 + accounts/gkleen@sif/niri/default.nix | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'accounts/gkleen@sif') diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 0c0872cc..2d2e25cb 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -185,7 +185,12 @@ in { }; }; - zathura.enable = true; + zathura = { + enable = true; + options = { + scroll-page-aware = true; + }; + }; imv.enable = true; mpv.config = { diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el index 183cb322..5cee16b0 100644 --- a/accounts/gkleen@sif/emacs.el +++ b/accounts/gkleen@sif/emacs.el @@ -228,6 +228,7 @@ necessarily running." (global-set-key (kbd "C-x k") 'kill-buffer-with-special-emacsclient-handling)) (add-hook 'server-switch-hook 'install-emacsclient-wrapped-kill-buffer) +(add-hook 'server-switch-hook #'raise-frame) (defun move-file (new-location) "Write this file to NEW-LOCATION, and delete the old one." diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 2e9b6909..93acc7d7 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -22,9 +22,9 @@ let active_workspace="$(jq -r --arg workspace_output "$workspace_output" '.[] | select(.output == $workspace_output and .is_active) | .id' <<<"$workspaces_json")" active_output="$(jq -r '.[] | select(.is_focused) | .output' <<<"$workspaces_json")" if [[ $workspace_output != "$active_output" ]]; then - niri msg action move-workspace-to-monitor --output "$active_output" "$workspace_name" - socat STDIO "$NIRI_SOCKET" <<<'{"Action":{"FocusWorkspace":{"reference":{"Id":'"''${active_workspace}"'}}}}' - niri msg action move-workspace-to-index --index 1 "$workspace_name" + niri msg action move-workspace-to-monitor --reference "$workspace_name" "$active_output" + # socat STDIO "$NIRI_SOCKET" <<<'{"Action":{"FocusWorkspace":{"reference":{"Id":'"''${active_workspace}"'}}}}' + # niri msg action move-workspace-to-index --reference "$workspace_name" 1 fi while IFS=$'\n' read -r window_json; do -- cgit v1.2.3