From 43c9825e49d25fbd2c19abcdeb8f73aee8be2a4c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 14 May 2025 10:50:27 +0200 Subject: ... --- accounts/gkleen@sif/niri/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'accounts/gkleen@sif/niri/default.nix') diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 732e3c7a..a9b4b0f8 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -249,7 +249,7 @@ in { import os import socket import json - import sys + # import sys from collections import defaultdict from threading import Thread, Lock from socketserver import StreamRequestHandler, ThreadingTCPServer @@ -275,7 +275,7 @@ in { def focus_workspace(output, workspace): with history_lock: workspace_history[output] = [workspace] + [ws for ws in workspace_history[output] if ws != workspace] # noqa: E501 - print(json.dumps(workspace_history), file=sys.stderr) + # print(json.dumps(workspace_history), file=sys.stderr) sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) sock.connect(os.environ["NIRI_SOCKET"]) @@ -743,19 +743,19 @@ in { "Mod+Shift+Control+C".action = move-workspace-up; "Mod+ParenLeft".action = focus-workspace "comm"; - "Mod+Shift+ParenLeft".action = move-column-to-workspace "comm"; + "Mod+Shift+ParenLeft".action = kdl.magic-leaf "move-column-to-workspace" "comm"; "Mod+ParenRight".action = focus-workspace "web"; - "Mod+Shift+ParenRight".action = move-column-to-workspace "web"; + "Mod+Shift+ParenRight".action = kdl.magic-leaf "move-column-to-workspace" "web"; "Mod+BraceRight".action = focus-workspace "read"; - "Mod+Shift+BraceRight".action = move-column-to-workspace "read"; + "Mod+Shift+BraceRight".action = kdl.magic-leaf "move-column-to-workspace" "read"; "Mod+BraceLeft".action = focus-workspace "mon"; - "Mod+Shift+BraceLeft".action = move-column-to-workspace "mon"; + "Mod+Shift+BraceLeft".action = kdl.magic-leaf "move-column-to-workspace" "mon"; "Mod+Asterisk".action = focus-workspace "vid"; - "Mod+Shift+Asterisk".action = move-column-to-workspace "vid"; + "Mod+Shift+Asterisk".action = kdl.magic-leaf "move-column-to-workspace" "vid"; "Mod+Plus".action = with-unnamed-workspace-action ''{"Action":{"FocusWorkspace":{"reference":{"Id": .id}}}}''; "Mod+Shift+Plus".action = with-unnamed-workspace-action ''{"Action":{"MoveColumnToWorkspace":{"reference":{"Id": .id}}}}''; -- cgit v1.2.3