This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Qtile | |
Comment=Qtile Session | |
Exec=qtile | |
Type=Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new windows don't steal focus from prompt widget | |
* make new windows stealing focus configurable | |
default config in /etc/qtile/config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libqtile/manager.py b/libqtile/manager.py | |
index 69f1c61..8034430 100644 | |
--- a/libqtile/manager.py | |
+++ b/libqtile/manager.py | |
@@ -1597,6 +1597,12 @@ class Qtile(command.CommandObject): | |
""" | |
return "OK" | |
+ def cmd_run(self, closure): | |
+ """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### XXX: The following is a hack. py2cairo looks for xpyb.pc when configuring. | |
### However (as near as I can find) there is no way to get it to install with | |
### distutils, so we fake it here. | |
# make xpyb.pc file | |
class PCOpt(object): | |
def __init__(self, replace_str, val): | |
self.replace_str = replace_str | |
self.val = val | |
def gen_pc(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefix=/usr/local | |
exec_prefix=${prefix} | |
libdir=${exec_prefix}/lib | |
includedir=${prefix}/include/python2.7/xpyb | |
Name: XPyB | |
Description: X-protocol Python Binding | |
Version: 1.3 | |
Libs: -L${libdir} -lxcb | |
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Message: Server Error: BadWindow | |
bad_value: 94371843 | |
major_opcode: 20 | |
minor_opcode: 0 | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/libqtile/manager.py", line 1077, in _xpoll | |
ename = ename[:-5] | |
File "/usr/local/lib/python2.7/dist-packages/libqtile/manager.py", line 1294, in handle_MapRequest | |
screen = self.currentScreen | |
File "/usr/local/lib/python2.7/dist-packages/libqtile/manager.py", line 968, in manage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# untested | |
def null_switch(group): | |
def f(qtile): | |
for scr in qtile.screens: | |
if scr.group == group: | |
return | |
qtile.groupMap[group].cmd_toscreen() | |
return f | |
Key(..., lazy.function(null_switch('a'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildSite :: String -> String -> IO [IO ()] | |
buildSite src tgt = do | |
templates <- readTemplates $ src </> "templates" | |
actions <- foldWithHandler | |
ignoreExceptions | |
always | |
(\acc info -> makeAction info : acc) | |
[] | |
src | |
return $ reverse actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put a Prompt widget in your bar | |
def my_func(prompt_result): | |
pass | |
def start_prompt(qtile): | |
p = qtile.widgetMap["prompt"] | |
p.startInput("hax> ", my_func) | |
Key(["mod4"], "r", lazy.function(start_prompt)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libqtile/widget/volume.py b/libqtile/widget/volume.py | |
index da0a97a..5cbb494 100644 | |
--- a/libqtile/widget/volume.py | |
+++ b/libqtile/widget/volume.py | |
@@ -57,7 +57,7 @@ class Volume(base._TextBox): | |
vol = self.get_volume() | |
if vol != self.volume: | |
self.volume = vol | |
- self.draw() | |
+ self.bar.draw() |
OlderNewer