Dotfiles/desktopenvs/hyprlua/scripts/onscreenkb.sh

11 lines
715 B
Bash
Executable File

#!/bin/bash
# Toggle the wvkbd on-screen keyboard (Wayland virtual keyboard daemon).
# killall returns 0 if it killed something (keyboard was running → dismiss it).
# If killall fails (keyboard wasn't running), launch it with the cyberqueer theme.
if ! $(killall wvkbd-mobintl); then
# -L 250: height in pixels. --fn: font. --bg/fg/fg-sp: background/foreground/special-key colours.
# --press/--press-sp: key-press highlight colour. --text/--text-sp: label colours (hex, no #).
# -R 20: bottom margin so the keyboard doesn't overlap the Eww bar.
wvkbd-mobintl -L 250 --fn AgaveNerdFont --bg 1a1a1a --fg 5018dd --fg-sp 5018dd --press E40046 --press-sp E40046 --text d6abab --text-sp d6abab -R 20
fi