diff options
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r-- | .config/qtile/config.py | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 9c2a19e..c8a535b 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -6,7 +6,8 @@ import os import re import subprocess from libqtile.log_utils import logger - +# import psutil +# import getpass mod = "mod4" alt = "mod1" @@ -18,9 +19,9 @@ terminal = "termite" drun_launcher = "rofi -show drun" run_launcher = "rofi -show run" lock = home+"/bin/xorg_lock" -brightness_step = "5" -brightness_up = "xbacklight -inc "+brightness_step -brightness_down = "xbacklight -dec "+brightness_step +brightness_step = "2" +brightness_up = "backlight -i "+brightness_step +brightness_down = "backlight -i -"+brightness_step volume_up = home+"/bin/set_volume increase" volume_down = home+"/bin/set_volume decrease" volume_toggle = home+"/bin/set_volume toggle" @@ -153,6 +154,7 @@ matchers = { Match(wm_class=[ re.compile('Chromium$'), re.compile('Firefox$'), + re.compile('.*qutebrowser$'), re.compile('TorLauncher'), re.compile('Tor Browser'), ]), @@ -196,6 +198,8 @@ matchers = { re.compile('Ardour'), re.compile('Audacity'), re.compile('Calfjackhost'), + re.compile('Carla'), + re.compile('Cadence'), re.compile('Ffado-mixer'), re.compile('Guitarix'), re.compile('Session Setup'), @@ -486,3 +490,14 @@ def autostart_conky(): @hook.subscribe.startup_complete def autostart_compton(): subprocess.call(compton) +# get_user_processes('compton') + + +# def get_user_processes(process_name): +# for process in psutil.process_iter(attrs=['name', 'username']): +# if process.info['username'] == getpass.getuser() and \ +# process.info['name'] == process_name: +# logger.setLevel(logging.INFO) +# logger.info(process.pid) +# logger.info(process.info['name']) +# logger.setLevel(logging.WARNING) |