From f4c18337327229371156b457f01fa666a056d84c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 15 Nov 2024 11:10:56 +0100 Subject: Add toggle-screenkey script --- local/bin/toggle-screenkey | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 local/bin/toggle-screenkey (limited to 'local/bin/toggle-screenkey') 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 -- cgit