mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-02-04 03:53:31 +08:00
Fix screenkey configuration and add keybind
This commit is contained in:
parent
1bd03a0b30
commit
06721782be
2 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue