diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 09:40:26 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 09:40:26 +0100 |
| commit | 01f55c6e0a6005bbb051246cd08af49e09fd137c (patch) | |
| tree | c451448d805c01238aacefd326385ab8c6176e09 /local/bin | |
| parent | 55cce52d4a754e6275059b3ee516536a35a7721e (diff) | |
| parent | d73f7e2c84bd6dcb107691055acc5bf68b5b733f (diff) | |
| download | dotfiles-01f55c6e0a6005bbb051246cd08af49e09fd137c.tar.gz dotfiles-01f55c6e0a6005bbb051246cd08af49e09fd137c.tar.bz2 dotfiles-01f55c6e0a6005bbb051246cd08af49e09fd137c.zip | |
Merge branch 'master' of github.com:cacharle/dotfiles
Diffstat (limited to 'local/bin')
| -rwxr-xr-x | local/bin/cowsay-total-war-quotes | 10 | ||||
| -rwxr-xr-x | local/bin/toggle-screenkey | 17 |
2 files changed, 27 insertions, 0 deletions
diff --git a/local/bin/cowsay-total-war-quotes b/local/bin/cowsay-total-war-quotes new file mode 100755 index 0000000..13ae92d --- /dev/null +++ b/local/bin/cowsay-total-war-quotes @@ -0,0 +1,10 @@ +#!/bin/sh + +quotes_path="${XDG_DATA_HOME:-"$HOME/.local/share"}/total_war_quotes" + +< "$quotes_path" sed 's/^$/#/' | + tr '#' '\0' | + shuf --zero-terminated --head-count 1 | + sed '/^$/ d' | + tr -d '\0' | + cowsay -W 80 -n diff --git a/local/bin/toggle-screenkey b/local/bin/toggle-screenkey new file mode 100755 index 0000000..488136f --- /dev/null +++ b/local/bin/toggle-screenkey @@ -0,0 +1,17 @@ +#!/bin/sh + +command -v screenkey || + { echo "screenkey not installed"; exit 1; } + +if pgrep screenkey +then + pkill screenkey +else + screenkey \ + --bg-color '#111111' \ + --font-size small \ + --font 'Fira Mono Bold' \ + --geometry "1907x110+965+857" \ + --timeout 1.5 \ + --position fixed & +fi |
