Go to file
Gokul Swaminathan fdf2130012 added flash focus 2020-10-28 15:23:47 -07:00
icons/layouts added layouts 2020-10-19 17:25:05 +02:00
layout fixed missing import 2020-10-24 23:39:27 +02:00
module added flash focus 2020-10-28 15:23:47 -07:00
README.md updated readme 2020-10-27 21:46:29 +01:00
init.lua window swallowing 2020-10-24 11:40:02 +02:00

README.md

Bling - Utilities for the AwesomeWM

Installation and configuration

  • git clone this repo into your ~/.config/awesome folder
  • Put local bling = require("bling") somewhere in your rc.lua (remember to put it under beautiful.init...)

Available layouts and modules

Layouts

Choose layouts from the list below and add them to to your awful.layouts list in your rc.lua.

Everyone of them supports multiple master clients and master width factor making them as easyily useable as the default layouts.

bling.layout.mstab
bling.layout.centered
bling.layout.vertical
bling.layout.horizontal
Window swallowing

To activate and deactivate window swallowing there are the following functions (deactivated on default):

bling.module.window_swallowing.start()   -- activates window swallowing
bling.module.window_swallowing.stop()    -- deactivates window swallowing
bling.module.window_swallowing.toggle()  -- toggles window swallowing
Tiled Wallpaper

The function to set a tiled wallpaper can be called the follwing way (you don't need to set every option in the table of the last argument since there are reasonable defaults):

awful.screen.connect_for_each_screen(function(s)  -- that way the wallpaper is applied to every screen 
    bling.module.tiled_wallpaper("x", s, {        -- call the actual function ("x" is the string that will be tiled)
        fg = "#ff0000",  -- define the foreground color
        bg = "#00ffff",  -- define the background color
        offset_y = 25,   -- set a y offset
        offset_x = 25,   -- set a x offset
        font = "Hack",   -- set the font (without the size)
        font_size = 14,  -- set the font size
        padding = 100,   -- set padding (default is 100)
        zickzack = true  -- rectangular pattern or criss cross
    })
end)

Theme variables

Put those variables in your theme.lua if you want to edit appearance

For the mstab layout:

mstab_tabbar_orientation  -- set to "bottom" for tabbar at button
mstab_bar_height          -- height of the tabbar
mstab_border_radius       -- corners radius of the tabbar
mstab_font                -- font of the tabbar
mstab_bg_focus            -- background color of the focused client on the tabbar
mstab_fg_focus            -- background color of the focused client on the tabbar
mstab_bg_normal           -- foreground color of unfocused clients on the tabbar
mstab_fg_normal           -- foreground color of unfocused clients on the tabbar

For window swallowing:

dont_swallow_classname_list   -- list of client classnames that shouldn't be swallowed
                              -- default is {"firefox", "Gimp"}
dont_swallow_filter_activated -- whether the filter is activated or not
                              -- default is false.
                              -- Set it to true if you want to filter clients that should be swallowed

Preview

Mstab (tabbed)

screenshot by javacafe

Centered

screenshot by branwright

Window swallowing

gif by me :)

Tiled Wallpaper