diff options
author | David Runge <dave@sleepmap.de> | 2019-03-05 09:34:32 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2019-03-05 09:34:32 +0100 |
commit | 1ee10e6b733a81389d9718363deb6cf7daec79d3 (patch) | |
tree | 9c98d99dc0d0b2805f7d674688b7bad345704376 /.config/qtile/config.py | |
parent | 688a8394f0e3f7c962da8fcb7da2002822f99de2 (diff) | |
parent | c1e5d08d58034c8b53d4789dd32983016f4a5456 (diff) | |
download | dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.gz dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.bz2 dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.tar.xz dotfiles-1ee10e6b733a81389d9718363deb6cf7daec79d3.zip |
Merge branch 'master' of sleepmap.de:config/dotfiles
* 'master' of sleepmap.de:config/dotfiles:
.config/SuperCollider/functions.scd: Minor style fixes and adding of a convenience function for MIDI, to map to a given Bus.
.config/SuperCollider/functions.scd: Adding SSR specific helper functions. Adding TODOs.
.config/SuperCollider/functions.scd: Adding simple helper functions to connect/disconnect JACK clients by name:port_name. Adding function to add additional channels (above hardware in and outputs), which automatically increments Server.local.options.num{In,Out}putBuschannels.
.config/SuperCollider/synthdefs.scd: Being more clear in the description.
.config/SuperCollider/startup.scd: Introducing the concept of additional channels (to scsynth), above the hardware in and outputs (to be defined before starting the server). Conditionally adding functions.scd, holding custom functions.
.config/qtile/config.py: Adding qutebrowser to web tag. Adding Carla and Cadence to audio tag.
.config/qtile/config.py: Adding WIP for retrieving and killing compton on demand. Adding call to DIY backlight script call, instead of xbacklight.
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) |