Skip to content

This module for Awesome Windows Manager provides a simple way to manage windows rules.

Notifications You must be signed in to change notification settings

mindeunix/clientdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

DEPRECATED AND NO LONGER MAINTAINED

you can use Tyrannical as an alternative.

ClientDB

This module for Awesome WM provides a simple way to manage windows rules.

Dependencies

Installation

First you need to download this module:

git clone https://github.com/mindeunix/clientdb.git ~/.config/awesome/clientdb

Next step is adding require at the top of your rc.lua:

local clientdb = require("clientdb")

Then you can add keybinding modkey + s:

clientkeys = awful.util.table.join(
    awful.key({ modkey,           }, "s",      function (c) clientdb.save(c)                 end),  -- ADD THIS LINE HERE
    awful.key({ modkey,           }, "f",      function (c) c.fullscreen = not c.fullscreen  end),
    awful.key({ modkey, "Shift"   }, "c",      function (c) c:kill()                         end),

The last thing you need to do is add function clientdb.load():

    -- Set Firefox to always map on tags number 2 of screen 1.
    -- { rule = { class = "Firefox" },
    --   properties = { tag = tags[1][2] } },
}
-- }}}

-- Initializes the windows rules system
clientdb.load() -- ADD THIS LINE HERE

Now, tell Awesome WM to reload your configuration and start saving windows rules modkey + s If you still need to modify these rules you can use SQLiteStudio or any other SQLite3 client.

db

Functions

Name Description Arguments
save Save the client. The client object
load Load windows rules from the database. --

About

This module for Awesome Windows Manager provides a simple way to manage windows rules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages