Fix screenkey configuration and add keybind

This commit is contained in:
elenapan 2020-03-28 09:47:00 +02:00
parent 1bd03a0b30
commit 06721782be
2 changed files with 5 additions and 1 deletions

View file

@ -76,7 +76,7 @@ end
local screenkey_notif
apps.screenkey = function ()
local cmd = "pgrep screenkey > /dev/null && (pkill screenkey && echo 'OFF') || (echo 'ON' && screenkey --ignore Caps_Lock &>/dev/null &)"
local cmd = "pgrep screenkey > /dev/null && (pkill screenkey && echo 'OFF') || (echo 'ON' && screenkey --ignore Caps_Lock --bg-color '#FFFFFF' --font-color '#000000' &>/dev/null &)"
awful.spawn.easy_async_with_shell(cmd, function(out)
local message = out:match('ON') and "Activated!" or "Deactivated!"
screenkey_notif = notifications.notify_dwim({ title = "Screenkey", message = message, app_name = "screenkey", icon = icons.keyboard }, screenkey_notif)

View file

@ -389,6 +389,10 @@ keys.globalkeys = gears.table.join(
end,
{description = "raise volume", group = "volume"}),
-- Screenkey toggle
awful.key( { superkey }, "F12", apps.screenkey,
{description = "raise volume", group = "volume"}),
-- Microphone (V for voice)
awful.key( { superkey }, "v",
function()