summaryrefslogtreecommitdiff
path: root/config/awesome/weasel-rules.lua
blob: 152f9e5dfe60340fe0d0881a9134d151df0521fe (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
local awful = require("awful")

function get_weasel_rules()
    local browser_screen = 1
    local im_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 = { screen = browser_screen, tag = '12',
                         --border_width = 0
                         } },
       { rule = { class = "Firefox" },
         properties = { screen = browser_screen, tag = '12' } },
       { rule = { class = "Chromium"  }, -- , name = "New Tab - Chromium" },
         properties = { screen = browser_screen, tag = '13',
                        -- border_width = 0
                        } },
       { rule = { class = "Tor Browser" , name = "Tor Browser" },
         properties = { screen = browser_screen, tag = '22', floating = true } },
       { rule = { class = "Tor Browser" },
         properties = { screen = browser_screen, tag = '22', floating = true } },

       { rule = { class = "URxvt" , name = "IRC" },
         properties = { screen = im_screen, tag = '1' } },
       { rule = { class = "URxvt" , name = "Mail" },
         properties = { screen = im_screen, tag = '11' } },
       { rule = { class = "URxvt" , name = "Mail COSY" },
         properties = { screen = im_screen, tag = '11' } },

       { rule = { class = "Chromium" , name = "Signal Private Messenger" },
         properties = { screen = im_screen, tag = '21' } },
       { rule = { class = "Chromium" , name = "Signal" },
         properties = { screen = im_screen, tag = '21' } },

        --{ 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: