From d3c1054ec04616911e2d9ec4e85f32802a8f0fb0 Mon Sep 17 00:00:00 2001
From: rokosun <rokosun@noreply.git.trom.tf>
Date: Sun, 29 Oct 2023 08:41:17 +0100
Subject: [PATCH] No need to use strip here, just remove the last character

---
 themeSwitcher.nim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/themeSwitcher.nim b/themeSwitcher.nim
index caf2da0..7bf4110 100644
--- a/themeSwitcher.nim
+++ b/themeSwitcher.nim
@@ -1,6 +1,6 @@
 from std/osproc import execProcess, ProcessOption, startProcess, waitForExit, close
 from std/os import symlinkExists, getConfigDir, putEnv, `/`
-from std/strutils import split, endsWith, strip
+from std/strutils import split, endsWith
 from std/strformat import fmt
 import owlkettle
 
@@ -64,7 +64,7 @@ viewable App:
     build:
       let currentTheme: string = execProcess("/usr/bin/xfconf-query",
         args=["--channel=xsettings", "--property=/Net/ThemeName"],
-        options={}).strip(leading=false, trailing=true, chars={'\n'})
+        options={})[0 .. ^2]
 
       let currentThemeSplit: seq[string] = currentTheme.split('-', 2)