readme changes, added passwurrd to readme

This commit is contained in:
Paul Wilde 2022-07-20 09:18:57 +01:00
parent 9adec53b26
commit 3756444021
2 changed files with 23 additions and 17 deletions

View file

@ -5,25 +5,23 @@ about system status in dmenu. Some of them i.e. `volurrme` have options (up, dow
which are selectable options in dmenu. which are selectable options in dmenu.
## Tools ## Tools
- `pingclurrk` performs a single `ping` to a server and returns the response time - `pingclurrk` performs a single `ping` to a server and returns the response time
- `batturry` shows the current battery level - `batturry` shows the current battery level
- `brightnurrs` shows the current backlight level and gives options to adjust it - `brightnurrs` shows the current backlight level and gives options to adjust it
- `volurrme` shows the current volume level and gives options to adjust and manage it - `volurrme` shows the current volume level and gives options to adjust and manage it
- `calendurr` shows the date - `calendurr` shows the date
- `furrytime` shows the fuzzytime clock - `furrytime` shows the fuzzytime clock
- `wirelurrs` shows the state of the wireless network interface. SSID connected to and signal level. - `wirelurrs` shows the state of the wireless network interface. SSID connected to and signal level.
- `netwurrk` shows the status and/or the ip address of the network interface card - `netwurrk` shows the status and/or the ip address of the network interface card
- `temperaturr` shows the current CPU temperature - `temperaturr` shows the current CPU temperature
- `noteurr` a simple one liner note taking tool, displaying notes in `dmenu`/`rofi` - `noteurr` a simple one liner note taking tool, displaying notes in `dmenu`/`rofi`
- `calculaturr` a calculator, utilising `qalculate` - inspired by [@fedops](https://codeberg.org/fedops/scripts) - `calculaturr` a calculator, utilising `qalculate` - inspired by [@fedops](https://codeberg.org/fedops/scripts)
- `emurrji` an emoji picker - `emurrji` an emoji picker
- `remmina_choosurr` reads the files in your remmina config directory and allows you to connect to and edit them - `remmina_choosurr` reads the files in your remmina config directory and allows you to connect to and edit them
- `translaturr` utilises libretranslate (you'll need and API key or your own instance) to translate test. Prefix the text with `en>de`, `de>en`, `en>fr`, etc. as you need. Must be compiled with `-d:ssl` - `translaturr` utilises libretranslate (you'll need and API key or your own instance) to translate test. Prefix the text with `en>de`, `de>en`, `en>fr`, etc. as you need. Must be compiled with `-d:ssl`
- `clipurr` clipboard manager - `clipurr` clipboard manager
- `passwuurd` a passmenu clone, that works in rofi too
The next two do not work with `rofi` unless you have `alias dmenu=rofi` set, but they're pretty nice tools - `cmd_wrappurr` 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? ### Why do all the tools have "urr" in them?

View file

@ -2,7 +2,11 @@ import ../../globurrl
import std/[osproc,json,strutils] import std/[osproc,json,strutils]
const I3_WORKSPACES = "i3-msg -t get_workspaces" const I3_WORKSPACES = "i3-msg -t get_workspaces"
const SWAY_WORKSPACES = "swaymsg -t get_workspaces"
let WORKSPACES = if wayland: SWAY_WORKSPACES else: I3_WORKSPACES
const I3_TREE = "i3-msg -t get_tree" const I3_TREE = "i3-msg -t get_tree"
const SWAY_TREE = "swaymsg -t get_tree"
let TREE = if wayland: SWAY_TREE else: I3_TREE
const VISIBLE = "#" const VISIBLE = "#"
const URGENT = "!" const URGENT = "!"
const FOCUSED = "%" const FOCUSED = "%"
@ -64,8 +68,12 @@ proc switchWorkspace(workspace: string) =
let ws = findWorkspace(workspace) let ws = findWorkspace(workspace)
if ws.num == current_workspace: if ws.num == current_workspace:
return return
let cmd = "i3-msg workspace " & $ws.num if wayland:
discard execCmd(cmd) let cmd = "swaymsg workspace " & $ws.num
discard execCmd(cmd)
else:
let cmd = "i3-msg workspace " & $ws.num
discard execCmd(cmd)
showWorkspaces() showWorkspaces()
# proc getApplications(node: JsonNode): (seq[string],bool) = # proc getApplications(node: JsonNode): (seq[string],bool) =
@ -159,14 +167,14 @@ proc findWorkspacesTree(node: JsonNode, parent: Workspace = Workspace()) =
return return
proc getTree() = proc getTree() =
let cur_workspaces = execCmdEx(I3_TREE) let cur_workspaces = execCmdEx(TREE)
if cur_workspaces.output != "": if cur_workspaces.output != "":
let root = parseJson(cur_workspaces.output) let root = parseJson(cur_workspaces.output)
findWorkspacesTree(root) findWorkspacesTree(root)
return return
proc getWorkspaces(): seq[Workspace] = proc getWorkspaces(): seq[Workspace] =
let cur_workspaces = execCmdEx(I3_WORKSPACES) let cur_workspaces = execCmdEx(WORKSPACES)
if cur_workspaces.output != "": if cur_workspaces.output != "":
let ws = parseJson(cur_workspaces.output) let ws = parseJson(cur_workspaces.output)
for w in ws: for w in ws: