mirror of
https://github.com/purhan/dotfiles.git
synced 2026-02-03 19:45:44 +08:00
first commit
This commit is contained in:
commit
a6c665c17f
619 changed files with 21468 additions and 0 deletions
52
RICE/redhound/layout/workspace-panel.lua
Normal file
52
RICE/redhound/layout/workspace-panel.lua
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
local awful = require('awful')
|
||||
local beautiful = require('beautiful')
|
||||
local wibox = require('wibox')
|
||||
local TagList = require('widget.tag-list')
|
||||
local gears = require('gears')
|
||||
local clickable_container = require('widget.material.clickable-container')
|
||||
local mat_icon_button = require('widget.material.icon-button')
|
||||
local mat_icon = require('widget.material.icon')
|
||||
|
||||
local dpi = require('beautiful').xresources.apply_dpi
|
||||
|
||||
local icons = require('theme.icons')
|
||||
|
||||
local WorkspacePanel = function(s, offset)
|
||||
local offsetx = 0
|
||||
if offset == true then
|
||||
offsetx = dpi(50)
|
||||
offsety = dpi(4)
|
||||
end
|
||||
local panel =
|
||||
wibox(
|
||||
{
|
||||
ontop = false,
|
||||
screen = s,
|
||||
height = dpi(32),
|
||||
width = dpi(180),
|
||||
x = s.geometry.x + offsetx,
|
||||
y = s.geometry.y + offsety,
|
||||
stretch = false,
|
||||
bg = beautiful.primary.hue_900,
|
||||
fg = beautiful.fg_normal,
|
||||
struts = {
|
||||
top = dpi(32)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
panel:struts(
|
||||
{
|
||||
top = dpi(0)
|
||||
}
|
||||
)
|
||||
|
||||
panel:setup {
|
||||
layout = wibox.layout.align.horizontal,
|
||||
TagList(s)
|
||||
}
|
||||
|
||||
return panel
|
||||
end
|
||||
|
||||
return WorkspacePanel
|
||||
Loading…
Add table
Add a link
Reference in a new issue