readme changes
This commit is contained in:
parent
07885544a0
commit
853e14864a
20 changed files with 26 additions and 27 deletions
|
@ -26,11 +26,16 @@ The next two do not work with `rofi` unless you have `alias dmenu=rofi` set, but
|
||||||
- `cmd_wrappurr` inspired by passmenu_wrapper, a basic tool to run other `dmenu` related tools with uniform styling.
|
- `cmd_wrappurr` inspired by passmenu_wrapper, a basic tool to run other `dmenu` related tools with uniform styling.
|
||||||
- For example: `dmenu_run`, `clipmenu`, `passmenu` etc.
|
- For example: `dmenu_run`, `clipmenu`, `passmenu` etc.
|
||||||
|
|
||||||
|
### Why do all the tools have "urr" in them?
|
||||||
|
This is something I was inspired to do after writing `clipurr`… "purr", like a cat... see?
|
||||||
|
So I thought I'd rename everything else to conform to this amazing naming convention… cool eh‽
|
||||||
|
|
||||||
|
|
||||||
### Example in `dmenu`:
|
### Example in `dmenu`:
|
||||||
|
|
||||||
![dmenu_tools](https://user-images.githubusercontent.com/31094984/167123173-ee8092a2-d5ab-47b4-b207-ced328072cc0.gif)
|
![dmenu_tools](https://user-images.githubusercontent.com/31094984/167123173-ee8092a2-d5ab-47b4-b207-ced328072cc0.gif)
|
||||||
|
|
||||||
### Example of `command_wrapper` with `clipmenu`
|
### Example of `cmd_wrappurr` with `clipmenu`
|
||||||
|
|
||||||
![command_wrap](https://user-images.githubusercontent.com/31094984/167122436-eea0be88-a929-46e8-9b4d-cb677dcb129c.gif)
|
![command_wrap](https://user-images.githubusercontent.com/31094984/167122436-eea0be88-a929-46e8-9b4d-cb677dcb129c.gif)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Shows battery percentage using dmenu"
|
description = "Shows battery percentage using dmenu"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["battery"]
|
bin = @["batturry"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Shows and controls laptop brightness"
|
description = "Shows and controls laptop brightness"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["brightness"]
|
bin = @["brightnurrs"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A simple dmenu calculator"
|
description = "A simple dmenu calculator"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["calculate"]
|
bin = @["calculaturr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Displays the date in dmenu"
|
description = "Displays the date in dmenu"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["show_date"]
|
bin = @["calendurr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A Command wrapper thing - i.e. run clipmenu/passmenu into dmenu with styling, sucks really"
|
description = "A Command wrapper thing - i.e. run clipmenu/passmenu into dmenu with styling, sucks really"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["command_wrapper"]
|
bin = @["cmd_wrappurr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -9,7 +9,7 @@ proc main() =
|
||||||
return
|
return
|
||||||
|
|
||||||
if isMainModule:
|
if isMainModule:
|
||||||
base.command_wrapper = true
|
globurrl.wrappurr = true
|
||||||
for idx, arg in args:
|
for idx, arg in args:
|
||||||
case arg:
|
case arg:
|
||||||
of "-r", "--run":
|
of "-r", "--run":
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "An emoji picker for dmenu/rofi"
|
description = "An emoji picker for dmenu/rofi"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["emoji"]
|
bin = @["emurrji"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Displays the fuzzy time in dmenu"
|
description = "Displays the fuzzy time in dmenu"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["fuzzytime"]
|
bin = @["furrytime"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
10
globurrl.nim
10
globurrl.nim
|
@ -63,8 +63,7 @@ const WL_ROFI = "wofi --dmenu"
|
||||||
var loop* = false
|
var loop* = false
|
||||||
var stoploop* = true
|
var stoploop* = true
|
||||||
var tool* = "dmenu"
|
var tool* = "dmenu"
|
||||||
var passmenu* = false
|
var wrappurr* = false
|
||||||
var command_wrapper* = false
|
|
||||||
var run_command* = ""
|
var run_command* = ""
|
||||||
var wayland* = false
|
var wayland* = false
|
||||||
|
|
||||||
|
@ -119,9 +118,7 @@ proc newDmenuConfig(cmd: string = "dmenu"): Menu =
|
||||||
return menu
|
return menu
|
||||||
|
|
||||||
proc newMenu(): Menu =
|
proc newMenu(): Menu =
|
||||||
if passmenu:
|
if wrappurr:
|
||||||
return newDmenuConfig("passmenu")
|
|
||||||
elif command_wrapper:
|
|
||||||
return newDmenuConfig(run_command)
|
return newDmenuConfig(run_command)
|
||||||
elif tool == "rofi":
|
elif tool == "rofi":
|
||||||
return newRofiConfig()
|
return newRofiConfig()
|
||||||
|
@ -286,8 +283,5 @@ for idx, arg in args:
|
||||||
of "rofi":
|
of "rofi":
|
||||||
stoploop = true
|
stoploop = true
|
||||||
tool = "rofi"
|
tool = "rofi"
|
||||||
of ["pass","passmenu"]:
|
|
||||||
passmenu = true
|
|
||||||
break
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Displays open windows in i3 workspaces"
|
description = "Displays open windows in i3 workspaces"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["i3_workspaces"]
|
bin = @["i3_wurrkspaces"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Display NIC IP address and link to manage NICs"
|
description = "Display NIC IP address and link to manage NICs"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["nic"]
|
bin = @["netwurrk"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A notes app for dmenu"
|
description = "A notes app for dmenu"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["notes"]
|
bin = @["noteurr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A ping clock - display current ping time"
|
description = "A ping clock - display current ping time"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["pingclock"]
|
bin = @["pingclurrk"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A Remmina client tool and opener"
|
description = "A Remmina client tool and opener"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["remmina"]
|
bin = @["remmina_choosurr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "A screenshot client, works on both X11 and Wayland"
|
description = "A screenshot client, works on both X11 and Wayland"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["screenshot"]
|
bin = @["screenshurrt"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Display temp in dmenu"
|
description = "Display temp in dmenu"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["temperature"]
|
bin = @["temperaturr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Display local tides in dmenu"
|
description = "Display local tides in dmenu"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["tides"]
|
bin = @["tideurrl"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Query libretranslate with dmenu"
|
description = "Query libretranslate with dmenu"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["translate"]
|
bin = @["translaturr"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
|
@ -5,7 +5,7 @@ author = "Paul Wilde"
|
||||||
description = "Display and control WLAN state with dmenu"
|
description = "Display and control WLAN state with dmenu"
|
||||||
license = "GPL-3.0-or-later"
|
license = "GPL-3.0-or-later"
|
||||||
srcDir = "src"
|
srcDir = "src"
|
||||||
bin = @["wlan"]
|
bin = @["wirelurrs"]
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
Loading…
Reference in a new issue