This repository was archived by the owner on Mar 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathgroups.py
110 lines (101 loc) · 2.61 KB
/
groups.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
'''
qtile calls i3-style workspaces `groups`.
Groups are a little more powerful as we can specify additional config
to apply to each group if we want:
NOTE :: Match is imported from libqtile.config
>>> Group(
# Display name for the group
name="my-workspace",
# Capture spawned programs and move them to this group
matches=[Match(wm_class=["FireFox"])],
# Spawn these programs on start
spawn=["my-program", "my-other-program"],
# Layout to use (must be in the listed layouts)
layout="MonadTall",
# Should this group exist even when there are no windows?
persist=True,
# Create this group when qtile starts?
init=True
)
'''
from libqtile.config import Group, ScratchPad, DropDown
# Named Groups copied from i3
# >>> See https://fontawesome.com/cheatsheet for more fontawesome icons
groups = [
Group("1 "),
Group("2 "),
Group("3 "),
Group("4 "),
Group("5 "),
Group("6 "),
Group("7 "),
Group("8 λ"),
Group("9 "),
Group("10 "),
# Group("scratchpad"),
# Scratchpads on M-/ and M-S-/
ScratchPad("scratchpad", [
# NOTE :: Need to force spawning as a new process so that
# qtile can capture the new terminal by pid.
DropDown("term", "tilix --new-process",
on_focus_lost_hide=False, x=0.05, y=0.05,
width=0.9, height=0.9),
DropDown("ipython", "python3.7 -m qtconsole",
on_focus_lost_hide=False, x=0.05, y=0.05,
width=0.9, height=0.9)
]),
]
# Simple numbered groups
# groups = [Group(str(x+1)) for x in range(10)]
# Roman numerals + icons
# groups = [
# Group("I "),
# Group("II "),
# Group("III "),
# Group("IV "),
# Group("V "),
# Group("VI "),
# Group("VII "),
# Group("VIII λ"),
# Group("IX "),
# Group("X "),
# ]
# Roman numerals only
# groups = [
# Group("I"),
# Group("II"),
# Group("III"),
# Group("IV"),
# Group("V"),
# Group("VI"),
# Group("VII"),
# Group("VIII"),
# Group("IX"),
# Group("X"),
# ]
# Icons only
# groups = [
# Group(""),
# Group(""),
# Group(""),
# Group(""),
# Group(""),
# Group(""),
# Group(""),
# Group("λ"),
# Group(""),
# Group(""),
# ]
# Named
# groups = [
# Group("TERM"),
# Group("NOTES"),
# Group("DOCS"),
# Group("SCRATCH"),
# Group("COMS"),
# Group("WEB"),
# Group("CODE"),
# Group("REPL"),
# Group("MUSIC"),
# Group("GAMES"),
# ]