WIP: Somewm migration
This commit is contained in:
parent
f5caff6684
commit
ce56320097
17 changed files with 342 additions and 238 deletions
13
rc.lua
13
rc.lua
|
|
@ -1,10 +1,11 @@
|
|||
-- If LuaRocks is installed, make sure that packages installed through it are
|
||||
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
|
||||
pcall(require, "luarocks.loader")
|
||||
--pcall(require, "luarocks.loader")
|
||||
-- libraries {{{
|
||||
local awful = require("awful")
|
||||
local beautiful = require("beautiful")
|
||||
local gears = require("gears")
|
||||
beautiful.init(gears.filesystem.get_dir("config") .. "/theme.lua")
|
||||
---@diagnostic disable-next-line: unused-local
|
||||
--- for debugging
|
||||
local inspect = require("inspect")
|
||||
|
|
@ -13,10 +14,10 @@ require("awful.autofocus")
|
|||
require("util.errors")
|
||||
-- }}}
|
||||
|
||||
beautiful.init(awful.util.getdir("config") .. "/theme.lua")
|
||||
|
||||
require("tapestry")
|
||||
|
||||
awful.input.xkb_layout = "us_de"
|
||||
|
||||
-- {{{ Logging
|
||||
local log = require("talkative")
|
||||
log.add_logger(log.loggers.stdio, log.level.DEBUG)
|
||||
|
|
@ -76,12 +77,12 @@ binder.modal.set_opacity(0.8)
|
|||
|
||||
binder.add_default_bindings()
|
||||
binder.add_reloadable(tags.create_bindings)
|
||||
local mybindings = awful.util.getdir("config") .. "/mybindings.lua"
|
||||
local mybindings = gears.filesystem.get_dir("config") .. "/mybindings.lua"
|
||||
binder.add_reloadable(function()
|
||||
return dofile(mybindings)
|
||||
end)
|
||||
|
||||
binder.add_bindings(awful.util.table.join(
|
||||
binder.add_bindings(gears.table.join(
|
||||
awful.key({}, "XF86AudioRaiseVolume", function()
|
||||
speakerwheel:up()
|
||||
end),
|
||||
|
|
@ -109,7 +110,7 @@ binder.apply()
|
|||
require("rules")
|
||||
require("signals")
|
||||
|
||||
local autorun_file = awful.util.getdir("config") .. "/autorun"
|
||||
local autorun_file = gears.filesystem.get_dir("config") .. "/autorun"
|
||||
if gears.filesystem.file_readable(autorun_file) then
|
||||
awful.spawn(autorun_file)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue