summaryrefslogtreecommitdiff
path: root/config/awesome/weasel-rules.lua
blob: 9c48ba50a3bdf4f3dc29dba0ea91106bc5666f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
local awful = require("awful")

function get_weasel_rules()
    local browser_screen = awful.screen.focused()
    local im_screen = awful.screen.focused()
    local browser_screen = screen[1]
    local im_screen = screen[1]

    local rules = {
        { rule = { class = "mpv" },
          properties = { floating = true } },

        { rule = { class = "URxvt" , name = "FURxvt" },
          properties = { floating = true } },

        { rule = { class = "ipe" },
          properties = { floating = true } },

        { rule = { class = "Firefox" , name = "Mozilla Firefox" },
          properties = { tag = browser_screen.tags[7],
                         --border_width = 0
                         } },
        { rule = { class = "Firefox" },
          properties = { tag = browser_screen.tags[7] } },
        { rule = { class = "chromium"  }, -- , name = "New Tab - Chromium" },
          properties = { tag = browser_screen.tags[8],
                         -- border_width = 0
                         } },
        { rule = { class = "Tor Browser" , name = "Tor Browser" },
          properties = { tag = browser_screen.tags[12], floating = true } },
        { rule = { class = "Tor Browser" },
          properties = { tag = browser_screen.tags[12], floating = true } },

        { rule = { class = "URxvt" , name = "IRC" },
          properties = { tag = im_screen.tags[1] } },
        { rule = { class = "URxvt" , name = "Mail" },
          properties = { tag = im_screen.tags[6] } },
        { rule = { class = "URxvt" , name = "Mail COSY" },
          properties = { tag = im_screen.tags[6] } },

        { rule = { class = "chromium" , name = "Signal Private Messenger" },
          properties = { tag = im_screen.tags[11] } },
        { rule = { class = "chromium" , name = "Signal" },
          properties = { tag = im_screen.tags[11] } },

        --{ rule = { maximized_horizontal = true }, -- these two should remove window borders from maximized windows because they get in the way
        --  properties = { border_width = 0 } },
        --{ rule = { maximized_vertical = true },
        --  properties = { border_width = 0 } },
    }
    return rules
end

-- vim:set softtabstop=4:ts=4:shiftwidth=4:et=1: