From 10b2493da056261518856857c40bbe07c4df54b8 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 27 Jun 2023 09:34:06 +0100 Subject: [PATCH] remmina choosurr - make ws switch blaaaaaaah --- remmina_choosurr/src/remmina_choosurr.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remmina_choosurr/src/remmina_choosurr.nim b/remmina_choosurr/src/remmina_choosurr.nim index 65a43fe..b8d21cc 100644 --- a/remmina_choosurr/src/remmina_choosurr.nim +++ b/remmina_choosurr/src/remmina_choosurr.nim @@ -3,6 +3,7 @@ import std/[os,osproc,tables,algorithm] import configparser const REMMINA_DIR = getHomeDir() & ".local/share/remmina" +const SWITCH_WS = false const REMMINA_WS = "4" var sessions = initTable[string,string]() @@ -11,9 +12,8 @@ var names: seq[string] = @[] proc main() proc switchWorkspace() = - if REMMINA_WS != "": + if SWITCH_WS and REMMINA_WS != "": discard execCmd("i3-msg workspace number " & REMMINA_WS) - discard execCmd("swaymsg workspace number " & REMMINA_WS) proc getRemminaFiles(): seq[string] = if len(names) < 1: