refactor
This commit is contained in:
parent
f7e5b8f9f6
commit
cc174c7b54
4 changed files with 52 additions and 38 deletions
|
@ -1,27 +0,0 @@
|
||||||
---
|
|
||||||
obj: application
|
|
||||||
os: linux
|
|
||||||
repo: https://github.com/Miserlou/Loop
|
|
||||||
---
|
|
||||||
# Loop
|
|
||||||
[Repo](https://github.com/Miserlou/Loop)
|
|
||||||
Loops in bash are surprisingly complicated and fickle! I wanted a simple and intuitive way to write controllable loops that:
|
|
||||||
|
|
||||||
- Run on controllable **timers**!
|
|
||||||
- `$ loop --every 10s -- ls`
|
|
||||||
- Have **custom counters**!
|
|
||||||
- `$ loop --count-by 5 -- 'touch $COUNT.txt'`
|
|
||||||
- Loop **until output matches** a condition!
|
|
||||||
- `$ loop --until-contains 200 -- ./get_response_code.sh --site mysite.biz`
|
|
||||||
- Loop **until a certain time**!
|
|
||||||
- `$ loop --for-duration 8h -- ./poke_server`
|
|
||||||
- Loop **until a program succeeds** (or fails!)
|
|
||||||
- `$ loop --until-success -- ./poke_server`
|
|
||||||
- Iterate over the **standard input**!
|
|
||||||
- `$ cat files_to_create.txt | loop -- 'touch $ITEM'`
|
|
||||||
- Get a **summary** of the runs!
|
|
||||||
- `$ loop --for-duration 10min --summary -- ls`
|
|
||||||
- Run until output **changes or stays the same** between invocations!
|
|
||||||
- `$ loop --until-changes -- date +%s`
|
|
||||||
- `$ loop --until-same -- date +%s`
|
|
||||||
- ..and **much more!**
|
|
|
@ -22,6 +22,22 @@ dmenu color palette is at `~/.cache/wal/colors-wal-dmenu.h`
|
||||||
### [alacritty](../../cli/alacritty.md)
|
### [alacritty](../../cli/alacritty.md)
|
||||||
color configs for [alacritty](../../cli/alacritty.md) can be generated with [this script](https://github.com/egeesin/alacritty-color-export). One must manually convert the output to [TOML](../../../files/TOML.md) though.
|
color configs for [alacritty](../../cli/alacritty.md) can be generated with [this script](https://github.com/egeesin/alacritty-color-export). One must manually convert the output to [TOML](../../../files/TOML.md) though.
|
||||||
|
|
||||||
|
## [Firefox](../../network/browsers/Firefox.md)
|
||||||
|
See this [theme](https://github.com/Frewacom/pywalfox)
|
||||||
|
|
||||||
|
### [Rofi](../../utilities/Rofi.md)
|
||||||
|
Place this inside your configuration:
|
||||||
|
```
|
||||||
|
/* Dark theme. */
|
||||||
|
@import "~/.cache/wal/colors-rofi-dark"
|
||||||
|
|
||||||
|
/* Light theme. */
|
||||||
|
@import "~/.cache/wal/colors-rofi-light"
|
||||||
|
```
|
||||||
|
|
||||||
|
## [Visual Studio Code](../../development/Visual%20Studio%20Code.md)
|
||||||
|
Install this [theme](https://marketplace.visualstudio.com/items?itemName=dlasagno.wal-theme).
|
||||||
|
|
||||||
### [JSON](../../../files/JSON.md) & YAML
|
### [JSON](../../../files/JSON.md) & YAML
|
||||||
Generic color palettes are available as [JSON](../../../files/JSON.md) and YAML at:
|
Generic color palettes are available as [JSON](../../../files/JSON.md) and YAML at:
|
||||||
`~/.cache/wal/colors.json` & `~/.cache/wal/colors.yml`
|
`~/.cache/wal/colors.json` & `~/.cache/wal/colors.yml`
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
obj: concept
|
|
||||||
website: https://www.lua.org
|
|
||||||
---
|
|
||||||
|
|
||||||
# Lua
|
|
||||||
#wip #🐇 #notnow
|
|
Loading…
Reference in a new issue