summaryrefslogtreecommitdiff
path: root/config/awesome/weasel-rules.lua
blob: 2ebd7d8cf76b9992141bbacc0c400732b0189bdf (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
55
56
57
58
59
60
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 = "surfgui" },
          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" },
       { 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 = '23', floating = true } },
       { rule = { class = "Tor Browser" },
         properties = { screen = browser_screen, tag = '23', floating = true, focus = false } },

       { 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 = { class = "Signal" , name = "Signal" },
         properties = { screen = im_screen, tag = '21' } },
       { rule = { class = "Keepassx" , name = "KeePassX" },
         properties = { screen = im_screen, tag = '22' } },

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