-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
56 lines (48 loc) · 1.21 KB
/
config.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
from libqtile.hook import subscribe
from os.path import join
from re import search
from settings.path import qtile_path
from settings.screens import screens
from settings.mouse import mouse
from settings.groups import groups
from settings.keys import (
modkey,
keys,
)
from settings.layouts import (
layouts,
floating_layout,
)
from settings.widgets import (
widget_defaults,
extension_defaults,
)
from subprocess import (
call,
PIPE,
Popen,
)
def is_running(process):
s = Popen(["ps", "axuw"], stdout=PIPE)
for x in s.stdout:
if search(process, x):
return True
return False
def execute_once(process):
if not is_running(process):
return Popen(process.split())
@subscribe.startup_once
def autostart():
call([join(qtile_path, 'startup.sh')])
# execute_once('echo something.')
main = None
dgroups_key_binder = None
dgroups_app_rules = []
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
auto_fullscreen = True
focus_on_window_activation = 'smart'
# java app don't work correctly if the wmname isn't set to a name that happens to
# be on java's whitelist (LG3D is a 3D non-reparenting WM written in java).
wmname = 'LG3D'