aboutsummaryrefslogtreecommitdiffstats
path: root/.config/qtile
diff options
context:
space:
mode:
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(),