Open
Description
Hey,
is there some chance to generate custom notification via awful?
I am creating my own sh script for toggling keyboard layouts like this
#!/bin/bash
actual_layout=$(setxkbmap -query | grep layout)
if [[ $actual_layout == *"us"* ]]; then
setxkbmap -layout "cz(qwerty)"
else
setxkbmap -layout "us"
fi
xmodmap $HOME/.Xmodmap
and rebind the keys/global.lua shortcut mod+space, like this
awful.key(
{modkey},
'space',
function()
-- _G.screen.primary.left_panel:toggle(true)
awful.spawn('nextkblayout.sh')
-- HERE I WANT SHOW NOTIFICATION WITH CUSTOM MESSAGE
end,
{description = 'show main menu', group = 'awesome'}
),
is it possible?
Metadata
Metadata
Assignees
Labels
No labels