awesomewm/localconf.lua.template
Alexander Gehrke ac8249a394 Mappings
2023-07-04 16:35:47 +02:00

48 lines
1.2 KiB
Plaintext

local conf = {}
local awful = awful
-- modkey to use for most bindings
conf.modkey = "Mod4"
-- screen, on which rules will put clients by default
conf.screen = {
main = 1,
mail = 2,
chat = 3,
}
-- default layout for tags
conf.default_layout = awful.layout.suit.fair
conf.mpd = {
-- should mpd prompt clear playlist before adding matched songs
replace_on_search = true,
-- default host and port. for further hosts, see bindings.lua
host = "localhost",
port = "6600"
}
-- default programs (for keybindings)
conf.cmd = {
terminal = "terminal" -- Mod-Enter
-- used by some mappings, parameter to terminal for executing a specific program
terminal_exec = "-e"
-- used by some mappings, parameter to terminal for setting the wm class
terminal_wmclass = "--class"
browser = "webbrowser" -- Mod-c f
irc_client = "irc-client" -- Mod-c I
mail_client = "mail-client" -- Mod-c m
mpd_client = "gmpc" -- Mod-m g
editor = {
terminal = conf.cmd.terminal_exec .. " vim"
gui = "gvim"
}
}
-- Mod-r binding for running programs
conf.cmd.run = function() awful.util.spawn("dmenu_run -l 10 -y 350") end
local menubar = require("menubar")
conf.cmd.drun = menubar.show
return conf