Compare commits
No commits in common. "a39a14c61b56fdaccce7bee6788d7a023363f1b8" and "d9ce4d7da0b903ad2e0b20fd1cdb58985d3a93e1" have entirely different histories.
a39a14c61b
...
d9ce4d7da0
18
init.lua
18
init.lua
@ -8,7 +8,7 @@ local longpress = require("awesome-longpress")
|
||||
local navbar = {
|
||||
iconSize = 96,
|
||||
iconPath = gears.filesystem.get_configuration_dir() .. "/awesome-navbar/",
|
||||
launcher = "xfce4-appfinder"
|
||||
navbar.launcher = "xfce4-appfinder"
|
||||
}
|
||||
|
||||
function navbar.new(s)
|
||||
@ -40,19 +40,19 @@ function navbar.new(s)
|
||||
awful.spawn(navbar.launcher)
|
||||
end)
|
||||
|
||||
local rnavbar = awful.wibar({
|
||||
local navbar = awful.wibar({
|
||||
ontop = true,
|
||||
screen = s
|
||||
})
|
||||
function rnavbar.reflow()
|
||||
rnavbar.position = landscape and "left" or "bottom"
|
||||
rnavbar.height = (portrait and navbar.iconSize) or nil
|
||||
rnavbar.width = (landscape and navbar.iconSize) or nil
|
||||
rnavbar:setup({
|
||||
function navbar.reflow()
|
||||
position = landscape and "left" or "bottom",
|
||||
height = (portrait and navbar.iconSize) or nil,
|
||||
width = (landscape and navbar.iconSize) or nil,
|
||||
navbar:setup({
|
||||
layout = landscape and wibox.layout.ratio.vertical or wibox.layout.ratio.horizontal, launcher_button, switcher_button, kb_button
|
||||
})
|
||||
end
|
||||
rnavbar.reflow()
|
||||
navbar.reflow()
|
||||
|
||||
s.keyboard = awful.wibar({
|
||||
height = s.geometry.height * 0.25,
|
||||
@ -68,5 +68,5 @@ function navbar.new(s)
|
||||
layout = wibox.layout.ratio.horizontal,
|
||||
vkbd
|
||||
})
|
||||
return rnavbar
|
||||
return navbar
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user