aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qtile
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-06-02 12:26:14 +0200
committerDavid Runge <dave@sleepmap.de>2018-06-02 12:26:14 +0200
commit4825cc70c47952fa707810a26f6bdc4e386cda94 (patch)
tree767c330e904b37aeaa11248da4aa069414b12e62 /.config/qtile
parentc03c51f82c8d8a4bafaea4ad38e6409f11972efa (diff)
downloaddotfiles-4825cc70c47952fa707810a26f6bdc4e386cda94.tar.gz
dotfiles-4825cc70c47952fa707810a26f6bdc4e386cda94.tar.bz2
dotfiles-4825cc70c47952fa707810a26f6bdc4e386cda94.tar.xz
dotfiles-4825cc70c47952fa707810a26f6bdc4e386cda94.zip
.config/qtile/config.py: Lint-fixing, streamlining compton startup. Adding JabRef and Libreoffice to office group.
Diffstat (limited to '.config/qtile')
-rw-r--r--.config/qtile/config.py54
1 files changed, 28 insertions, 26 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index 04e4d87..a9174e5 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -43,7 +43,6 @@ background = ['feh',
'--recursive',
'--bg-fill',
home+'/cloud/photos/desktop/']
-kill_compton = "killall compton"
compton = ['/usr/bin/compton',
'-CGb',
'-d',
@@ -225,12 +224,12 @@ matchers = {
],
'office': [
Match(wm_class=[
- re.compile('libreoffice'),
re.compile('Scribus'),
- re.compile('net-sf-jabref-JabRefMain'),
]),
Match(title=[
re.compile('^calibre'),
+ re.compile('^JabRef'),
+ re.compile("Libreoffice\sWriter$"),
]),
],
'admin': [
@@ -441,40 +440,43 @@ wmname = "LG3D"
def main(qtile):
- qtile.cmd_warning()
+ qtile.cmd_warning()
@hook.subscribe.screen_change
def restart_on_randr(qtile, ev):
- kill_compton
- qtile.cmd_restart()
+ subprocess.run(['/usr/bin/killall', 'compton'])
+ qtile.cmd_restart()
@hook.subscribe.client_new
def floating_dialogs(client):
- wm_class = client.window.get_wm_class()
- logger.setLevel(logging.INFO)
-# logger.info('New client window name: %s' % client.name)
-# logger.info('New client window class: %c' % wm_class)
- logger.setLevel(logging.WARNING)
- for client_regex in floating_clients:
- match = client_regex.match(client.name)
- if match:
- client.floating = True
- transient = client.window.get_wm_transient_for()
- if transient:
- client.floating = True
+ # wm_class = client.window.get_wm_class()
+ # logger.setLevel(logging.INFO)
+ # logger.info('New client window name: %s' % client.name)
+ # logger.info('New client window class: %c' % wm_class)
+ logger.setLevel(logging.WARNING)
+ for client_regex in floating_clients:
+ match = client_regex.match(client.name)
+ if match:
+ client.floating = True
+ transient = client.window.get_wm_transient_for()
+ if transient:
+ client.floating = True
+
@hook.subscribe.startup
-def autostart():
- subprocess.call(background)
+def autostart_background():
+ subprocess.run(['/usr/bin/killall', 'compton'])
+ subprocess.call(background)
+
@hook.subscribe.startup_once
-def autostart():
- subprocess.call(conky_network)
- subprocess.call(conky_general)
+def autostart_conky():
+ subprocess.call(conky_network)
+ subprocess.call(conky_general)
-@hook.subscribe.startup_complete
-def autostart():
- subprocess.call(compton)
+@hook.subscribe.startup_complete
+def autostart_compton():
+ subprocess.call(compton)