Customize wibar
This commit is contained in:
		
							parent
							
								
									b73008c860
								
							
						
					
					
						commit
						82898eacff
					
				
							
								
								
									
										17
									
								
								rc.lua
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								rc.lua
									
									
									
									
									
								
							@ -258,17 +258,28 @@ awful.screen.connect_for_each_screen(function(s)
 | 
			
		||||
    s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)
 | 
			
		||||
 | 
			
		||||
    -- Create the wibox
 | 
			
		||||
    s.mywibox = awful.wibar({ position = "top", screen = s, height = 20 })
 | 
			
		||||
    local wibar_width = s.geometry.width / 3
 | 
			
		||||
    local wibar_height = 20
 | 
			
		||||
    s.mywibox = wibox({
 | 
			
		||||
        x = s.geometry.width - wibar_width,
 | 
			
		||||
        y = s.geometry.height - wibar_height,
 | 
			
		||||
        width = wibar_width,
 | 
			
		||||
        height = wibar_height,
 | 
			
		||||
        expand = true,
 | 
			
		||||
        visible = true,
 | 
			
		||||
        ontop = true,
 | 
			
		||||
        screen = s,
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    s.textclock = awful.widget.textclock(" %a %d %b  %H:%M ")
 | 
			
		||||
    calendar({}):attach(s.textclock)
 | 
			
		||||
    calendar({position = "bottom_right"}):attach(s.textclock)
 | 
			
		||||
 | 
			
		||||
    -- Add widgets to the wibox
 | 
			
		||||
    s.mywibox:setup {
 | 
			
		||||
        layout = wibox.layout.align.horizontal,
 | 
			
		||||
        { -- Left widgets
 | 
			
		||||
            layout = wibox.layout.fixed.horizontal,
 | 
			
		||||
            mylauncher,
 | 
			
		||||
            -- mylauncher,
 | 
			
		||||
            s.mytaglist,
 | 
			
		||||
            s.mypromptbox,
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
@ -6,10 +6,10 @@ local theme = {}
 | 
			
		||||
 | 
			
		||||
theme.font          = "sans 8"
 | 
			
		||||
 | 
			
		||||
theme.bg_normal     = "#22222200"
 | 
			
		||||
theme.bg_focus      = "#535d6c00"
 | 
			
		||||
theme.bg_urgent     = "#ff000000"
 | 
			
		||||
theme.bg_minimize   = "#44444400"
 | 
			
		||||
theme.bg_normal     = "#22222299"
 | 
			
		||||
theme.bg_focus      = "#535d6c99"
 | 
			
		||||
theme.bg_urgent     = "#ff000099"
 | 
			
		||||
theme.bg_minimize   = "#44444499"
 | 
			
		||||
theme.bg_systray    = theme.bg_normal
 | 
			
		||||
 | 
			
		||||
theme.fg_normal     = "#cccccc"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user