add(tag) Configure first tag
This commit is contained in:
parent
ccae324eb3
commit
8c158dd6c3
|
@ -1,30 +1,25 @@
|
|||
local abutton = require 'awful.button'
|
||||
local atag = require 'awful.tag'
|
||||
local atitlebar = require 'awful.titlebar'
|
||||
local beautiful = require 'beautiful'
|
||||
local lalign = require 'wibox.layout.align'
|
||||
local lfixed = require 'wibox.layout.fixed'
|
||||
local lflex = require 'wibox.layout.flex'
|
||||
local naughty = require 'naughty'
|
||||
|
||||
-- You can require the configuration module to get access to other
|
||||
-- configurations.
|
||||
-- local configuration = require 'rc.configuration'
|
||||
-- This would result in a depency loop as this file is part of the
|
||||
-- configuration module.
|
||||
--
|
||||
-- If you need to access a configuration from the rc.configuration module,
|
||||
-- you should add a direct require to the submodule here:
|
||||
local configuration = {
|
||||
tag_layouts = require 'rc.configuration.tag_layouts'
|
||||
}
|
||||
|
||||
local slots = {}
|
||||
|
||||
function slots.create_tags (screen)
|
||||
atag(
|
||||
{ '1', '2', '3', '4', '5', '6', '7', '8', '9' },
|
||||
screen,
|
||||
configuration.tag_layouts)
|
||||
local atag = require 'awful.tag'
|
||||
local home_layout = require 'MyTagLayout.home_layout'
|
||||
|
||||
local first_tag = atag.add('home', {
|
||||
screen = screen,
|
||||
icon = beautiful.icon_hometag,
|
||||
layout = home_layout,
|
||||
master_width_factor = beautiful.hometag_master_width_factor
|
||||
})
|
||||
|
||||
first_tag:view_only()
|
||||
end
|
||||
|
||||
function slots.build_desktop_decoration (screen)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path style="fill:#2196F3;" d="M19.07,4.93C17.22,3 14.66,1.96 12,2C9.34,1.96 6.79,3 4.94,4.93C3,6.78 1.96,9.34 2,12C1.96,14.66 3,17.21 4.93,19.06C6.78,21 9.34,22.04 12,22C14.66,22.04 17.21,21 19.06,19.07C21,17.22 22.04,14.66 22,12C22.04,9.34 21,6.78 19.07,4.93M17,12V18H13.5V13H10.5V18H7V12H5L12,5L19.5,12H17Z" /></svg>
|
After Width: | Height: | Size: 596 B |
|
@ -3,11 +3,18 @@ local gfs = require 'gears.filesystem'
|
|||
local config_dir = gfs.get_configuration_dir()
|
||||
local theme_dir = config_dir .. 'theme/'
|
||||
local assets_dir = theme_dir .. 'assets/'
|
||||
local icons_dir = assets_dir .. 'icons/'
|
||||
|
||||
local theme = {}
|
||||
|
||||
theme.border_color_normal = '#0000ff'
|
||||
|
||||
--- Tags
|
||||
theme.hometag_master_width_factor = 0.65
|
||||
|
||||
--- Icons
|
||||
theme.icon_hometag = icons_dir .. 'home-circle.svg'
|
||||
|
||||
--- Wallpaper
|
||||
theme.wallpaper = function (screen)
|
||||
local cairo = require('lgi').cairo
|
||||
|
|
Loading…
Reference in New Issue