diff --git a/battery/battery.nimble b/batturry/batturry.nimble similarity index 100% rename from battery/battery.nimble rename to batturry/batturry.nimble diff --git a/battery/src/battery.nim b/batturry/src/batturry.nim similarity index 99% rename from battery/src/battery.nim rename to batturry/src/batturry.nim index 860028e..e962888 100644 --- a/battery/src/battery.nim +++ b/batturry/src/batturry.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[strutils,os] const battery = "BAT0" diff --git a/brightness/src/src/thingy.nim b/brightness/src/src/thingy.nim deleted file mode 100644 index 862d40c..0000000 --- a/brightness/src/src/thingy.nim +++ /dev/null @@ -1,5 +0,0 @@ -# This is just an example to get you started. A typical binary package -# uses this file as the main entry point of the application. - -when isMainModule: - echo("Hello, World!") diff --git a/brightness/brightness.nimble b/brightnurrs/brightnurrs.nimble similarity index 100% rename from brightness/brightness.nimble rename to brightnurrs/brightnurrs.nimble diff --git a/brightness/src/brightness.nim b/brightnurrs/src/brightnurrs.nim similarity index 99% rename from brightness/src/brightness.nim rename to brightnurrs/src/brightnurrs.nim index 266e6e0..a17b051 100644 --- a/brightness/src/brightness.nim +++ b/brightnurrs/src/brightnurrs.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,strutils,osproc,math] const backlight = "intel_backlight" diff --git a/calculate/calculate.nimble b/calculaturr/calculaturr.nimble similarity index 100% rename from calculate/calculate.nimble rename to calculaturr/calculaturr.nimble diff --git a/calculate/src/calculate.nim b/calculaturr/src/calculaturr.nim similarity index 98% rename from calculate/src/calculate.nim rename to calculaturr/src/calculaturr.nim index 9a8a299..7361091 100644 --- a/calculate/src/calculate.nim +++ b/calculaturr/src/calculaturr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[osproc,strutils,sequtils] #using qalc as it has a lot of nice inbuilt features diff --git a/show_date/show_date.nimble b/calendurr/calendurr.nimble similarity index 100% rename from show_date/show_date.nimble rename to calendurr/calendurr.nimble diff --git a/show_date/src/show_date.nim b/calendurr/src/calendurr.nim similarity index 98% rename from show_date/src/show_date.nim rename to calendurr/src/calendurr.nim index 8faace7..5c639cd 100644 --- a/show_date/src/show_date.nim +++ b/calendurr/src/calendurr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[times,osproc,re] const default_bg = blue diff --git a/clipurr/src/clipurr.nim b/clipurr/src/clipurr.nim index ef0e43e..5431161 100644 --- a/clipurr/src/clipurr.nim +++ b/clipurr/src/clipurr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[strutils,os,db_sqlite,osproc] const CLIP_DB = WM_TOOLS_DIR & ".clipurr_cache.sqlite" diff --git a/command_wrapper/command_wrapper.nimble b/cmd_wrappurr/cmd_wrappurr.nimble similarity index 100% rename from command_wrapper/command_wrapper.nimble rename to cmd_wrappurr/cmd_wrappurr.nimble diff --git a/command_wrapper/src/command_wrapper.nim b/cmd_wrappurr/src/cmd_wrappurr.nim similarity index 95% rename from command_wrapper/src/command_wrapper.nim rename to cmd_wrappurr/src/cmd_wrappurr.nim index 7b6462c..95334c3 100644 --- a/command_wrapper/src/command_wrapper.nim +++ b/cmd_wrappurr/src/cmd_wrappurr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[strutils,osproc] # Basically just a wrapper to style passmenu nicely diff --git a/compile_all.sh b/compile_urrl.sh similarity index 64% rename from compile_all.sh rename to compile_urrl.sh index c552683..db01b3a 100755 --- a/compile_all.sh +++ b/compile_urrl.sh @@ -5,7 +5,9 @@ for dir in ./*; do cd $dir f=$(echo $dir | sed 's/\.\///') nimble install -y - sudo cp -v $f /usr/local/bin/$f + if [[ $1 == "install" ]]; then + sudo cp -v $f /usr/local/bin/$f + fi cd ../ fi done diff --git a/emoji/emoji.nimble b/emurrji/emurrji.nimble similarity index 100% rename from emoji/emoji.nimble rename to emurrji/emurrji.nimble diff --git a/emoji/src/emoji.nim b/emurrji/src/emurrji.nim similarity index 89% rename from emoji/src/emoji.nim rename to emurrji/src/emurrji.nim index f6810f9..feb4341 100644 --- a/emoji/src/emoji.nim +++ b/emurrji/src/emurrji.nim @@ -1,5 +1,5 @@ -import ../../base -import lib/emojilist +import ../../globurrl +import lib/emurrjilist import std/[re] proc main() = diff --git a/emoji/src/lib/emojilist.nim b/emurrji/src/lib/emurrjilist.nim similarity index 100% rename from emoji/src/lib/emojilist.nim rename to emurrji/src/lib/emurrjilist.nim diff --git a/fuzzytime/fuzzytime.nimble b/furrytime/furrytime.nimble similarity index 100% rename from fuzzytime/fuzzytime.nimble rename to furrytime/furrytime.nimble diff --git a/fuzzytime/src/fuzzytime.nim b/furrytime/src/furrytime.nim similarity index 98% rename from fuzzytime/src/fuzzytime.nim rename to furrytime/src/furrytime.nim index a9af4c2..e15fd44 100644 --- a/fuzzytime/src/fuzzytime.nim +++ b/furrytime/src/furrytime.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[times] const default_bg = lightblue diff --git a/base.nim b/globurrl.nim similarity index 100% rename from base.nim rename to globurrl.nim diff --git a/i3_workspaces/i3_workspaces.nimble b/i3_wurrkspaces/i3_wurrkspaces.nimble similarity index 100% rename from i3_workspaces/i3_workspaces.nimble rename to i3_wurrkspaces/i3_wurrkspaces.nimble diff --git a/i3_workspaces/src/i3_workspaces.nim b/i3_wurrkspaces/src/i3_wurrkspaces.nim similarity index 99% rename from i3_workspaces/src/i3_workspaces.nim rename to i3_wurrkspaces/src/i3_wurrkspaces.nim index 60e02bf..aea2f43 100644 --- a/i3_workspaces/src/i3_workspaces.nim +++ b/i3_wurrkspaces/src/i3_wurrkspaces.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[osproc,json,strutils] const I3_WORKSPACES = "i3-msg -t get_workspaces" diff --git a/nic/nic.nimble b/netwurrk/netwurrk.nimble similarity index 100% rename from nic/nic.nimble rename to netwurrk/netwurrk.nimble diff --git a/nic/src/nic.nim b/netwurrk/src/netwurrk.nim similarity index 98% rename from nic/src/nic.nim rename to netwurrk/src/netwurrk.nim index 87b6b61..840da0e 100644 --- a/nic/src/nic.nim +++ b/netwurrk/src/netwurrk.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,osproc,strutils,sequtils] const default_fg = black diff --git a/notes/notes.nimble b/noteurr/noteurr.nimble similarity index 100% rename from notes/notes.nimble rename to noteurr/noteurr.nimble diff --git a/notes/src/notes.nim b/noteurr/src/noteurr.nim similarity index 99% rename from notes/src/notes.nim rename to noteurr/src/noteurr.nim index 8f06fff..20c122a 100644 --- a/notes/src/notes.nim +++ b/noteurr/src/noteurr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,strutils,sequtils,times] const note_dir = WM_TOOLS_DIR & ".notes.dmenu/" # Putting it in Nextcloud so it can sync :-) diff --git a/pingclock/pingclock.nimble b/pingclurrk/pingclurrk.nimble similarity index 100% rename from pingclock/pingclock.nimble rename to pingclurrk/pingclurrk.nimble diff --git a/pingclock/src/pingclock.nim b/pingclurrk/src/pingclurrk.nim similarity index 98% rename from pingclock/src/pingclock.nim rename to pingclurrk/src/pingclurrk.nim index 5c5b1e7..d1cf46d 100644 --- a/pingclock/src/pingclock.nim +++ b/pingclurrk/src/pingclurrk.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[osproc, re, strutils] const host: string = "9.9.9.9" diff --git a/remmina/remmina.nimble b/remmina_choosurr/remmina_choosurr.nimble similarity index 100% rename from remmina/remmina.nimble rename to remmina_choosurr/remmina_choosurr.nimble diff --git a/remmina/src/remmina.nim b/remmina_choosurr/src/remmina_choosurr.nim similarity index 98% rename from remmina/src/remmina.nim rename to remmina_choosurr/src/remmina_choosurr.nim index 670bb11..80a1962 100644 --- a/remmina/src/remmina.nim +++ b/remmina_choosurr/src/remmina_choosurr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,osproc,tables,algorithm] import configparser diff --git a/screenshot/screenshot.nimble b/screenshuurt/screenshuurt.nimble similarity index 100% rename from screenshot/screenshot.nimble rename to screenshuurt/screenshuurt.nimble diff --git a/screenshot/src/screenshot.nim b/screenshuurt/src/screenshurrt.nim similarity index 99% rename from screenshot/src/screenshot.nim rename to screenshuurt/src/screenshurrt.nim index a4bd932..69665cf 100644 --- a/screenshot/src/screenshot.nim +++ b/screenshuurt/src/screenshurrt.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[times,os,osproc,strutils,sequtils] var screenshot_type = "" diff --git a/temperature/src/temperature.nim b/temperaturr/src/temperaturr.nim similarity index 98% rename from temperature/src/temperature.nim rename to temperaturr/src/temperaturr.nim index a1ac8a4..bb9f014 100644 --- a/temperature/src/temperature.nim +++ b/temperaturr/src/temperaturr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,re,math,strutils] const default_bg = green diff --git a/temperature/temperature.nimble b/temperaturr/temperaturr.nimble similarity index 100% rename from temperature/temperature.nimble rename to temperaturr/temperaturr.nimble diff --git a/tides/nim.cfg b/tideurrl/nim.cfg similarity index 100% rename from tides/nim.cfg rename to tideurrl/nim.cfg diff --git a/tides/src/tides.nim b/tideurrl/src/tideurrl.nim similarity index 99% rename from tides/src/tides.nim rename to tideurrl/src/tideurrl.nim index 88be21b..8f5dccf 100644 --- a/tides/src/tides.nim +++ b/tideurrl/src/tideurrl.nim @@ -1,5 +1,5 @@ #curl https://www.tidetimes.org.uk/exmouth-dock-tide-times-20190101 | grep -E -o ">((High|Low)|([0-9]+:[0-9]+)|([0-9]+\.[0-9]+m))" -import ../../base +import ../../globurrl import std/[re,httpclient,times,osproc,sequtils] # TODO: diff --git a/tides/tides.nimble b/tideurrl/tideurrl.nimble similarity index 100% rename from tides/tides.nimble rename to tideurrl/tideurrl.nimble diff --git a/translate/nim.cfg b/translaturr/nim.cfg similarity index 100% rename from translate/nim.cfg rename to translaturr/nim.cfg diff --git a/translate/src/translate.nim b/translaturr/src/translaturr.nim similarity index 99% rename from translate/src/translate.nim rename to translaturr/src/translaturr.nim index 8b50e3a..d5c1da0 100644 --- a/translate/src/translate.nim +++ b/translaturr/src/translaturr.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[re,httpclient,json,strutils,tables] diff --git a/translate/translate.nimble b/translaturr/translaturr.nimble similarity index 100% rename from translate/translate.nimble rename to translaturr/translaturr.nimble diff --git a/volume/src/volume.nim b/volurrme/src/volurrme.nim similarity index 99% rename from volume/src/volume.nim rename to volurrme/src/volurrme.nim index 9c568d6..10b3891 100644 --- a/volume/src/volume.nim +++ b/volurrme/src/volurrme.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,strutils,sequtils,osproc] const audio_tools = @["ncpamixer", "pavucontrol"] diff --git a/volume/volume.nimble b/volurrme/volume.nimble similarity index 100% rename from volume/volume.nimble rename to volurrme/volume.nimble diff --git a/volurrme/volurrme.nimble b/volurrme/volurrme.nimble new file mode 100644 index 0000000..366bb29 --- /dev/null +++ b/volurrme/volurrme.nimble @@ -0,0 +1,13 @@ +# Package + +version = "0.1.0" +author = "Paul Wilde" +description = "Display and control volume with dmenu" +license = "GPL-3.0-or-later" +srcDir = "src" +bin = @["volume"] + + +# Dependencies + +requires "nim >= 1.6.6" diff --git a/wlan/src/wlan.nim b/wirelurrs/src/wirelurrs.nim similarity index 98% rename from wlan/src/wlan.nim rename to wirelurrs/src/wirelurrs.nim index a7ebc51..c51a9af 100644 --- a/wlan/src/wlan.nim +++ b/wirelurrs/src/wirelurrs.nim @@ -1,4 +1,4 @@ -import ../../base +import ../../globurrl import std/[os,osproc,strutils,sequtils] const default_bg = purple diff --git a/wlan/wlan.nimble b/wirelurrs/wirelurrs.nimble similarity index 100% rename from wlan/wlan.nimble rename to wirelurrs/wirelurrs.nimble