From d88e57f367e9f886fa5181b82b075ac20415665c Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Sun, 17 Jul 2022 19:58:28 +0100 Subject: [PATCH] added urrl in prompt --- batturry/src/batturry.nim | 2 +- brightnurrs/src/brightnurrs.nim | 2 +- calculaturr/src/calculaturr.nim | 9 +++++---- calendurr/src/calendurr.nim | 2 +- emurrji/src/emurrji.nim | 2 +- furrytime/src/furrytime.nim | 2 +- i3_wurrkspaces/src/i3_wurrkspaces.nim | 2 +- netwurrk/src/netwurrk.nim | 2 +- noteurr/src/noteurr.nim | 4 ++-- pingclurrk/src/pingclurrk.nim | 2 +- remmina_choosurr/src/remmina_choosurr.nim | 4 ++-- screenshuurt/src/screenshurrt.nim | 4 ++-- temperaturr/src/temperaturr.nim | 2 +- tideurrl/src/tideurrl.nim | 2 +- translaturr/src/translaturr.nim | 2 +- volurrme/src/volurrme.nim | 2 +- wirelurrs/src/wirelurrs.nim | 2 +- 17 files changed, 24 insertions(+), 23 deletions(-) diff --git a/batturry/src/batturry.nim b/batturry/src/batturry.nim index e962888..95756e0 100644 --- a/batturry/src/batturry.nim +++ b/batturry/src/batturry.nim @@ -88,7 +88,7 @@ proc getDesign(charge: int, state: bool): (string, string, string, string, strin proc getOutput(charge: int, state: bool): Info = let (html_text,main_text,col,bg_col,highlight_col) = get_design(charge, state) - var data = newInfo("Battery") + var data = newInfo("Batturry") data.full_text = main_text data.selected_bg = highlight_col data.selected_fg = col # may just want `black` here diff --git a/brightnurrs/src/brightnurrs.nim b/brightnurrs/src/brightnurrs.nim index a17b051..8fb4393 100644 --- a/brightnurrs/src/brightnurrs.nim +++ b/brightnurrs/src/brightnurrs.nim @@ -59,7 +59,7 @@ proc getBrightness*(run_once: bool = false) = let pcnt = (current/limit)*100 if pcnt != last_pcnt: let text = getDesign(pcnt) - var data = newInfo("Brightness") + var data = newInfo("Brightnurrs") data.full_text = text data.selected_bg = default_fg data.selected_fg = default_bg diff --git a/calculaturr/src/calculaturr.nim b/calculaturr/src/calculaturr.nim index 7361091..b3085c7 100644 --- a/calculaturr/src/calculaturr.nim +++ b/calculaturr/src/calculaturr.nim @@ -1,10 +1,11 @@ import ../../globurrl import std/[osproc,strutils,sequtils] -#using qalc as it has a lot of nice inbuilt features -# +# using qalc as it has a lot of nice inbuilt features +# may be nice to make it totally non-dependant on other things though + proc doCalculation(calc: string) = - var info = newInfo("Calculator") + var info = newInfo("Calculaturr") let ans_cmd_terse = "echo \"" & calc & "\" | qalc +u8 -terse -color=never | awk '!/^>/ && !/^$/ {gsub(/^[ \\t]+|[ \\t]+$/, \"\", $0); print}'" let ans_cmd_full = "echo \"" & calc & "\" | qalc +u8 -color=never | awk '!/^>/ && !/^$/ {gsub(/^[ \\t]+|[ \\t]+$/, \"\", $0); print}'" var ans_full = execCmdEx(ans_cmd_full) @@ -24,7 +25,7 @@ proc doCalculation(calc: string) = doCalculation(cmd) proc main() = - var info = newInfo("Calculator") + var info = newInfo("Calculaturr") let args = @["exit"] let cmd = outputData(info, args) if cmd != "": diff --git a/calendurr/src/calendurr.nim b/calendurr/src/calendurr.nim index 5c639cd..2160e85 100644 --- a/calendurr/src/calendurr.nim +++ b/calendurr/src/calendurr.nim @@ -8,7 +8,7 @@ const cal_pos_x = "20" const cal_pos_y = "20" proc getObject(date: string): Info = - var data = newInfo("Date") + var data = newInfo("Calendurr") data.full_text = date data.border = default_bg data.selected_bg = default_bg diff --git a/emurrji/src/emurrji.nim b/emurrji/src/emurrji.nim index feb4341..6513f51 100644 --- a/emurrji/src/emurrji.nim +++ b/emurrji/src/emurrji.nim @@ -3,7 +3,7 @@ import lib/emurrjilist import std/[re] proc main() = - var info = newInfo("Emoji Picker") + var info = newInfo("Emurrji") var args = getEmoji() args.add("exit") let output = outputData(info,args) diff --git a/furrytime/src/furrytime.nim b/furrytime/src/furrytime.nim index e15fd44..c032f29 100644 --- a/furrytime/src/furrytime.nim +++ b/furrytime/src/furrytime.nim @@ -73,7 +73,7 @@ proc getMinute(min: int): string = return "error" proc getObject(time: string): Info = - var data = newInfo("Fuzzy Time") + var data = newInfo("Furry Time") data.full_text = time data.selected_bg = default_bg data.selected_fg = default_fg diff --git a/i3_wurrkspaces/src/i3_wurrkspaces.nim b/i3_wurrkspaces/src/i3_wurrkspaces.nim index aea2f43..9da8c46 100644 --- a/i3_wurrkspaces/src/i3_wurrkspaces.nim +++ b/i3_wurrkspaces/src/i3_wurrkspaces.nim @@ -185,7 +185,7 @@ proc getWorkspaces(): seq[Workspace] = proc showWorkspaces() = my_workspaces = @[] getTree() - var info = newInfo("Workspaces") + var info = newInfo("Wurrkspaces") var args: seq[string] = @[] for ws in my_workspaces: args.add(ws.display_string) diff --git a/netwurrk/src/netwurrk.nim b/netwurrk/src/netwurrk.nim index 840da0e..8d76bef 100644 --- a/netwurrk/src/netwurrk.nim +++ b/netwurrk/src/netwurrk.nim @@ -28,7 +28,7 @@ proc getConnState(nic: string): (string, string) = return (ip, state) proc getObject(): Info = - var data = newInfo("IP") + var data = newInfo("Netwurrk") data.selected_bg = default_bg data.selected_fg = default_fg # i3bar stuff diff --git a/noteurr/src/noteurr.nim b/noteurr/src/noteurr.nim index 20c122a..8a44e20 100644 --- a/noteurr/src/noteurr.nim +++ b/noteurr/src/noteurr.nim @@ -64,7 +64,7 @@ proc writeNote(note: Note, is_new: bool = false) = echo "write_note, Unable to write note : ", note.id, " : ", getCurrentExceptionMsg() proc getNotes(): (Info, seq[string]) = - var info = newInfo("Notes") + var info = newInfo("Noteurr") info.selected_bg = default_bg info.selected_fg = default_fg let notes = getNoteStrings() @@ -115,7 +115,7 @@ proc replaceNote(new_text: string, old_text: string) = return proc displayOptionMenu(option: string) = - var select = newInfo("Note") + var select = newInfo("Noteurr") select.selected_bg = default_bg select.selected_fg = default_fg let note_choices = @["rm","back"] diff --git a/pingclurrk/src/pingclurrk.nim b/pingclurrk/src/pingclurrk.nim index d1cf46d..d01bcef 100644 --- a/pingclurrk/src/pingclurrk.nim +++ b/pingclurrk/src/pingclurrk.nim @@ -44,7 +44,7 @@ proc getObject(ping: float): Info = else: state = 9 - var data = newInfo("Ping Clock") + var data = newInfo("Ping Clurrk") data.full_text = text # i3bar stuff data.color = default_fg diff --git a/remmina_choosurr/src/remmina_choosurr.nim b/remmina_choosurr/src/remmina_choosurr.nim index 80a1962..e3c25f7 100644 --- a/remmina_choosurr/src/remmina_choosurr.nim +++ b/remmina_choosurr/src/remmina_choosurr.nim @@ -39,7 +39,7 @@ proc startRemmina(conn: string) = discard execCmd("remmina -c " & quote(session)) proc selectRemmina(conn: string) = - var info = newInfo("Remmina : " & conn) + var info = newInfo("Remmina Choosurr : " & conn) let args = @["connect", "edit", "back"] let output = outputData(info,args) if output in args: @@ -56,7 +56,7 @@ proc selectRemmina(conn: string) = proc main() = - var info = newInfo("Remmina") + var info = newInfo("Remmina Choosurr") var args: seq[string] = getRemminaFiles() args.add("new") args.add("exit") diff --git a/screenshuurt/src/screenshurrt.nim b/screenshuurt/src/screenshurrt.nim index 69665cf..0bcdb40 100644 --- a/screenshuurt/src/screenshurrt.nim +++ b/screenshuurt/src/screenshurrt.nim @@ -40,7 +40,7 @@ proc openFile(filename: string) = return proc showScreenshotSaveSel(filename: string) = - let info = newInfo("Save Screenshot") + let info = newInfo("Screenshurrt") let args = @["clipboard", "save", "open", "---", "exit"] let choice = outputData(info,args) if choice == "---": @@ -58,7 +58,7 @@ proc showScreenshotSaveSel(filename: string) = return proc showScreenshotTypeSel() = - let info = newInfo("Screenshot type") + let info = newInfo("Screenshurrt type") let args = concat(TYPES,@["---","exit"]) let choice = outputData(info,args) if choice in TYPES: diff --git a/temperaturr/src/temperaturr.nim b/temperaturr/src/temperaturr.nim index bb9f014..a3d570b 100644 --- a/temperaturr/src/temperaturr.nim +++ b/temperaturr/src/temperaturr.nim @@ -49,7 +49,7 @@ proc getObject(temp: int): Info = icon = "" let text = "" & icon & " " & $temp & "°C" let main_text = icon & " " & $temp & "°C" - var data = newInfo("Temperature") + var data = newInfo("Temperaturr") data.full_text = main_text data.selected_bg = bg_col data.selected_fg = fg_col diff --git a/tideurrl/src/tideurrl.nim b/tideurrl/src/tideurrl.nim index 8f5dccf..096bd3f 100644 --- a/tideurrl/src/tideurrl.nim +++ b/tideurrl/src/tideurrl.nim @@ -71,7 +71,7 @@ proc getDesign(tides: seq[Tide]): Info = for tide in tides: let str = icon & tide.State[0] & " " & tide.Time & " " & tide.Height my_tides.add(str) - var data = newInfo("Tides") + var data = newInfo("Tideurrl") data.border = black data.args = my_tides return data diff --git a/translaturr/src/translaturr.nim b/translaturr/src/translaturr.nim index d5c1da0..58cb0e0 100644 --- a/translaturr/src/translaturr.nim +++ b/translaturr/src/translaturr.nim @@ -92,7 +92,7 @@ proc detectLanguage(str: string) = return proc main(messages:varargs[string] = @[]) = - var info = newInfo("Translate") + var info = newInfo("Translaturr") info.selected_bg = green var args: seq[string] = @[] for msg in messages: diff --git a/volurrme/src/volurrme.nim b/volurrme/src/volurrme.nim index 10b3891..6e842b7 100644 --- a/volurrme/src/volurrme.nim +++ b/volurrme/src/volurrme.nim @@ -66,7 +66,7 @@ proc volumeMute() = proc getVolume*(run_once: bool = false) = let vol = getCurrentVolume() let (text, main_text) = getDesign(vol) - var data = newInfo("Volume") + var data = newInfo("Volurrme") data.full_text = main_text data.selected_bg = default_bg data.selected_fg = default_fg diff --git a/wirelurrs/src/wirelurrs.nim b/wirelurrs/src/wirelurrs.nim index c51a9af..b5c748d 100644 --- a/wirelurrs/src/wirelurrs.nim +++ b/wirelurrs/src/wirelurrs.nim @@ -27,7 +27,7 @@ proc getWifi(nic: string): (string, string) = return (ssid, quality) proc getObject(): Info = - var data = newInfo("WiFi") + var data = newInfo("Wirelurrs") data.border = purple data.selected_bg = default_bg data.selected_fg = default_fg