diff --git a/bin/wez b/bin/wez index 5ad02d6..4dbf9e2 100755 --- a/bin/wez +++ b/bin/wez @@ -1,9 +1,21 @@ -#!/usr/bin/nu +#!/usr/bin/env nu $env.SSH_AUTH_SOCK = "" $env.SSH_ASKPASS = "/usr/bin/ksshaskpass" $env.SSH_ASKPASS_REQUIRE = "force" -def main [domain: string] { - wezterm connect $domain -} \ No newline at end of file +def main [--host: string, --theme: string, --font: string = "LythMono Nerd Font", --font_size: int] { + let color_scheme = "color_scheme='" + $theme + "'" + let wez_font = 'font=wezterm.font("' + $font + '")' + let wez_font_size = 'font_size=' + ($font_size | into string) + + ( + wezterm + --config $color_scheme + --config $wez_font + --config $wez_font_size + connect + --class $"lol.roo.home.term.($host)" + $host + ) +} diff --git a/config/switchrun/apps.nuon b/config/switchrun/apps.nuon index 5ab291f..385fe74 100644 --- a/config/switchrun/apps.nuon +++ b/config/switchrun/apps.nuon @@ -1,13 +1,13 @@ [ { name: "Firefox - Personal" , app_id: "firefox_personal" , exec: "/usr/lib/firefox/firefox" - , args: ["--class=firefox", "-P", "personal", "--name=firefox_personal"] + , args: ["--class=firefox_personal", "-P", "personal", "--name=firefox_personal"] , tags: ["browser"] } , { name: "Firefox - Flipstone" , app_id: "firefox_flipstone" , exec: "/usr/lib/firefox/firefox" - , args: ["--class=firefox", "-P", "flipstone", "--name=firefox_flipstone"] + , args: ["--class=firefox_flipstone", "-P", "flipstone", "--name=firefox_flipstone"] , tags: ["browser"] } , { name: "Obsidian" @@ -92,6 +92,24 @@ , args: ["--config", "color_scheme=\"Zenburn\"", "start", "--class", "lol.roo.home.term"] , tags: ["terminals"] } +, { name: "WezTerm-Pandemic" + , app_id: "lol.roo.home.term.pandemic.brechtel" + , exec: "/home/jbrechtel/bin/wez" + , args: ["--host", "pandemic.brechtel", "--theme", "wilmersdorf", "--font", "monofur", "--font_size", "14"] + , tags: ["terminals"] + } +, { name: "WezTerm-Splendor" + , app_id: "lol.roo.home.term.splendor.brechtel" + , exec: "/home/jbrechtel/bin/wez" + , args: ["--host", "splendor.brechtel", "--theme", "Light White (terminal.sexy)"] + , tags: ["terminals"] + } +, { name: "WezTerm-Wanda" + , app_id: "lol.roo.home.term.wanda.brechtel" + , exec: "/home/jbrechtel/bin/wez" + , args: ["--host", "wanda.brechtel", "--theme", "Lunaria Light (Gogh)"] + , tags: ["terminals"] + } , { name: "Heidi" , app_id: "mpv" , exec: "mpv" @@ -109,4 +127,10 @@ , args: ["--class=chromium-work", "--profile-directory=Work"] , tags: ["browser"] } -] +, { name: "Freetube" + , app_id: "freetube" + , exec: "/usr/bin/freetube" + , args: [] + , tags: ["browser"] + } +] \ No newline at end of file