remmina choosurr - make ws switch blaaaaaaah

This commit is contained in:
Paul Wilde 2023-06-27 09:34:06 +01:00
parent 6b56cb83a8
commit 10b2493da0

View file

@ -3,6 +3,7 @@ import std/[os,osproc,tables,algorithm]
import configparser import configparser
const REMMINA_DIR = getHomeDir() & ".local/share/remmina" const REMMINA_DIR = getHomeDir() & ".local/share/remmina"
const SWITCH_WS = false
const REMMINA_WS = "4" const REMMINA_WS = "4"
var sessions = initTable[string,string]() var sessions = initTable[string,string]()
@ -11,9 +12,8 @@ var names: seq[string] = @[]
proc main() proc main()
proc switchWorkspace() = proc switchWorkspace() =
if REMMINA_WS != "": if SWITCH_WS and REMMINA_WS != "":
discard execCmd("i3-msg workspace number " & REMMINA_WS) discard execCmd("i3-msg workspace number " & REMMINA_WS)
discard execCmd("swaymsg workspace number " & REMMINA_WS)
proc getRemminaFiles(): seq[string] = proc getRemminaFiles(): seq[string] =
if len(names) < 1: if len(names) < 1: