dotfiles/awesome/keys.fnl
2020-09-16 06:30:31 -05:00

25 lines
882 B
Fennel

(local awful (require "awful"))
(local beautiful (require "beautiful"))
(local hotkeys_popup (require "awful.hotkeys_popup"))
(local modifiers {
:mod "Mod4"
:shift "Shift"
:ctrl "Control"
:alt "Mod1"
})
(local globalkeys (awful.keyboard.append_global_keybindings [
(awful.key [:mod :alt] "m" (awful.spawn "mpv --player-operation-mode=pseudo-gui"))
(awful.key [:mod] "s" hotkeys_popup.show_help)
]))
globalkeys
;; -- mpv
;; awful.key({ modkey, altkey }, "m", function () awful.spawn("mpv --player-operation-mode=pseudo-gui") end,
;; {description = "open mpv", group = "apps"}),