Add luarocks loader to rc.lua

This commit is contained in:
Alexander Gehrke 2022-08-28 01:00:55 +02:00
parent 763baa8e68
commit 7d74396048
4 changed files with 5 additions and 3 deletions

@ -1 +0,0 @@
Subproject commit 3636e4b51cf1ebec8ec25049da3a1058d0b046e8

1
handy

@ -1 +0,0 @@
Subproject commit 6f6d7bfdb37c6dbcd9f97a5c2f4347b8c3b1a65d

4
rc.lua
View file

@ -1,3 +1,6 @@
-- 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")
-- libraries {{{
local awful = require("awful")
require("awful.autofocus")
@ -5,6 +8,7 @@ beautiful = require("beautiful")
naughty = require("naughty")
conf = require("localconf")
require("errors")
gears = require("gears")
inspect = require("lib.inspect")
wibox = require("wibox")
-- }}}

View file

@ -39,7 +39,7 @@ function add_bar(s, position, direction, first, second)
position = position,
screen = s,
opacity = 0.6,
width = math.floor(s.dpi / 5)
width = math.floor(s.dpi / 5),
})
newbar:setup {