Added config defaults

master
Mark 2023-10-10 10:57:39 -07:00
parent 0db5c9fb0c
commit 9e2d872968
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 57 additions and 40 deletions

View File

@ -1,22 +1,53 @@
-- Copy this file to `config.lua` before starting awesome. -- Default configuration values.
-- Override these by creating `config.lua`
-- Example contents:
--
--[[ config.lua
-- To enable a module, add a line like the ones below.
-- To disable a module, delete its config table or set
-- enabled to false.
config.picom = { enabled = true } -- Override values in defaults.lua.
-- If you only want to overwrite one, you'll need to do explicitly:
-- config.core = { wallpaper = "" } will delete all other value in config.core.
config.battery = { enabled = true }
config.backlight = { enabled = true }
config.launcher = { enabled = true, icon = "nix"}
config.core.wallpaper = "/home/assets/wallpapers/Themed/Stellaris/upscale/City.png"
config.core.default_clienticon = "arch_grey"
config.core.browser = "firefox-developer-edition --new-tab"
config.core.startup_commands = {
"ibus-daemon --daemonize --replace --xim",
"keepassxc"
}
]]--
local config = {}
config.launcher = { enabled = true, icon = "arch"}
config.lock = { enabled = true, type = "i3lock"} config.lock = { enabled = true, type = "i3lock"}
config.screenshot = { enabled = true }
config.simple_widgets = { enabled = true }
config.keymap_popup = { enabled = true }
config.battery = { enabled = false } config.battery = { enabled = false }
config.backlight = { enabled = false } config.backlight = { enabled = false }
config.simple_widgets = { enabled = true } config.picom = { enabled = true }
config.launcher = { enabled = true, icon = "arch" } -- available icons: arch, nix
config.screenshot = { enabled = true }
config.keymap_popup = { enabled = true }
config.core = { config.core = {
wallpaper = "/home/assets/wallpapers/Themed/Stellaris/Gigapixel/City.png", -- Icon to use when a window doesn't provide one
default_clienticon = "arch_grey", default_clienticon = "arch_grey",
-- continuous_tag_updates = true,
-- Run these commands in this order when awesome starts.
startup_commands = {},
wallpaper = "",
-- Dynamic: a table of files and times -- Dynamic: a table of files and times
-- {file = "path", start_time = {hour, minute}} -- {file = "path", start_time = {hour, minute}}
--[[ --[[
@ -24,18 +55,15 @@ config.core = {
{ file = "morning-file.png", start_time = {04, 00} }, { file = "morning-file.png", start_time = {04, 00} },
{ file = "noon-file.png", start_time = {11, 00} }, { file = "noon-file.png", start_time = {11, 00} },
{ file = "night-file.png", start_time = {19, 00} }, { file = "night-file.png", start_time = {19, 00} },
}, }
]]-- ]]--
-- Font definitions
font = { font = {
normal_large = "Hack NF 16", normal_large = "Hack NF 16",
normal_medium = "Hack NF 14", normal_medium = "Hack NF 14",
normal = "Hack NF 12", normal = "Hack NF 12",
normal_small = "Hack NF 10", normal_small = "Hack NF 10",
prompt = "Hack NF 14" prompt = "Hack NF 14"
}, },
@ -50,7 +78,7 @@ config.core = {
-- Preferred terminal. -- Preferred terminal.
terminal = "kitty", terminal = "kitty",
-- Preferred browser. -- Preferred browser.
browser = "firefox-developer-edition --new-tab", browser = "firefox --new-tab",
-- Table of layouts. -- Table of layouts.
-- This is not handled by the regular awesomewm facility. -- This is not handled by the regular awesomewm facility.
@ -90,19 +118,8 @@ config.core = {
--awful.layout.suit.corner.se, --awful.layout.suit.corner.se,
}, },
-- Run these commands, in this order, when awesome starts.
startup_commands = {
"ibus-daemon --daemonize --replace --xim",
"keepassxc"
},
continuous_tag_updates = true,
-- Format:
-- {command, icon-name}
--
-- Icons files are in assets/apps,
-- Icon names are defined in assts/apps.lua.
bar_shortcuts = { bar_shortcuts = {
{ {
"thunar", "thunar",
@ -117,8 +134,8 @@ config.core = {
"thunderbird" "thunderbird"
}, },
{ {
"onlyoffice-desktopeditors", "code",
"writer" "code"
}, },
{ {
"signal-desktop", "signal-desktop",
@ -129,7 +146,6 @@ config.core = {
"keepassx" "keepassx"
} }
} }
} }
config.mpc = { config.mpc = {
@ -145,7 +161,6 @@ config.mpc = {
} }
config.volume = { config.volume = {
enabled = true, enabled = true,
@ -156,11 +171,10 @@ config.volume = {
-- The pulse sink volume widgets and keybinds should use. -- The pulse sink volume widgets and keybinds should use.
-- To use the default, keep this value an empty string. -- To use the default, keep this value an empty string.
-- Applies the --sink option to pamixer -- Applies the --sink option to pamixer
pamixer_sink = "" pamixer_sink = "",
} }
config.ibus = { config.ibus = {
enabled = true, enabled = true,
@ -178,16 +192,18 @@ config.ibus = {
indicator_code = "en", indicator_code = "en",
ibus_engine = "xkb:us::eng", ibus_engine = "xkb:us::eng",
}, },
{
title = "Russian",
indicator_code = "ru",
ibus_engine = "xkb:ru::rus"
},
{ {
title = "LaTeX", title = "LaTeX",
indicator_code = "∫x", indicator_code = "∫x",
ibus_engine = "table:latex", ibus_engine = "table:latex",
requires_engine = "xkb:us::eng" requires_engine = "xkb:us::eng"
},
{
title = "Russian",
indicator_code = "ru",
ibus_engine = "xkb:ru::rus"
} }
} }
} }
return config

3
rc.lua
View File

@ -10,7 +10,8 @@ require("awful.autofocus")
-- Load configuration -- Load configuration
conf_dir = gears.filesystem.get_configuration_dir() conf_dir = gears.filesystem.get_configuration_dir()
conf_env = os.getenv("AWESOMEWM_CONFIG") conf_env = os.getenv("AWESOMEWM_CONFIG")
config = {} config = require("defaults")
if (conf_env == nil) then if (conf_env == nil) then
-- Default location: in this directory -- Default location: in this directory
dofile(conf_dir .. "/config.lua") dofile(conf_dir .. "/config.lua")