aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qtile
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-12-28 17:13:31 +0100
committerDavid Runge <dave@sleepmap.de>2016-12-28 17:13:31 +0100
commit8b03f92875932b0ab1524e78632c1603d1800c3e (patch)
tree3640d0e6dc2f3eec44eb42fa101c551c24bda3d5 /.config/qtile
parent65b527393126c456c0dfd3757cc9186704793b85 (diff)
downloaddotfiles-8b03f92875932b0ab1524e78632c1603d1800c3e.tar.gz
dotfiles-8b03f92875932b0ab1524e78632c1603d1800c3e.tar.bz2
dotfiles-8b03f92875932b0ab1524e78632c1603d1800c3e.tar.xz
dotfiles-8b03f92875932b0ab1524e78632c1603d1800c3e.zip
.config/qtile/config.py: Fixing imports, re-activating TreeTab (currently only works with qtile-git), re-activating Notify widget. Converting feh command for random background image on reload to proper startup hook script. Switching to xscreensaver as lock screen.
Diffstat (limited to '.config/qtile')
-rw-r--r--.config/qtile/config.py60
1 files changed, 32 insertions, 28 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py
index f23874e..2c07e6f 100644
--- a/.config/qtile/config.py
+++ b/.config/qtile/config.py
@@ -1,18 +1,18 @@
from libqtile.config import Key, Screen, Group, Drag, Click, Match
from libqtile.command import lazy
from libqtile import layout, bar, widget, hook
-from os.path import expanduser
+import os
import re
import subprocess
mod = "mod4"
alt = "mod1"
-home = expanduser("~")
+home = os.path.expanduser("~")
terminal = "termite"
drun_launcher = "rofi -show drun"
run_launcher = "rofi -show run"
-lock = home+"/bin/i3lock"
+lock = "/usr/bin/xscreensaver-command -lock"
brightness_step = "5"
brightness_up = "xbacklight -inc "+brightness_step
brightness_down = "xbacklight -dec "+brightness_step
@@ -25,11 +25,15 @@ audio_next = home+"/bin/notify_mpd next"
audio_toggle = home+"/bin/notify_mpd toggle"
audio_stop = home+"/bin/notify_mpd stop"
-subprocess.call(['feh',
- '--randomize',
- '--recursive',
- '--bg-fill',
- home+'/ownCloud/photos/desktop/'])
+# startup
+@hook.subscribe.startup
+def autostart():
+ background = ['feh',
+ '--randomize',
+ '--recursive',
+ '--bg-fill',
+ home+'/ownCloud/photos/desktop/']
+ subprocess.call(background)
colors = {
"grey": "#555555",
@@ -239,22 +243,22 @@ layouts = [
border_normal=colors["green"][1:],
margin=1,
),
-# layout.TreeTab(
-# active_bg=colors["red"][1:],
-# #active_fg=colors["grey"][1:],
-# active_fg='ffffff',
-# inactive_bg=colors["green"][1:],
-# #inactive_fg=colors["lgrey"][1:],
-# inactive_fg='ffffff',
-# border_focus=colors["red"][1:],
-# border_normal=colors["green"][1:],
-# font='Monospace',
-# fontsize=14,
-# margin_left=0,
-# padding_left=0,
-# panel_width=100,
-# previous_on_rm=True,
-# ),
+ layout.TreeTab(
+ active_bg=colors["red"][1:],
+ #active_fg=colors["grey"][1:],
+ active_fg='ffffff',
+ inactive_bg=colors["green"][1:],
+ #inactive_fg=colors["lgrey"][1:],
+ inactive_fg='ffffff',
+ border_focus=colors["red"][1:],
+ border_normal=colors["green"][1:],
+ font='Monospace',
+ fontsize=14,
+ margin_left=0,
+ padding_left=0,
+ panel_width=100,
+ previous_on_rm=True,
+ ),
layout.Stack(
border_focus=colors["red"][1:],
border_normal=colors["green"][1:],
@@ -346,10 +350,10 @@ screens = [
this_current_screen_border=colors["blue"]
),
widget.Sep(),
-# widget.Notify(
-# foreground_low=colors["red"][1:],
-# foreground_urgent=colors["red"][1:]
-# ),
+ widget.Notify(
+ foreground_low=colors["red"][1:],
+ foreground_urgent=colors["red"][1:]
+ ),
widget.Spacer(),
widget.CurrentLayout(),
widget.Sep(),