This file contains hidden or 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
FIREFOX = False | |
EMACS = False | |
THUNDERBIRD = False | |
TERMINAL = False | |
SKYPE = False | |
@hook.subscribe.client_new | |
def dialogs(window): | |
windowtype = window.window.get_wm_class() |
This file contains hidden or 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
program_dict = {'firefox-aurora': False, | |
'emacs':, False, | |
'thunderbird': False, | |
'urxvt': False, | |
'skype': False} | |
@hook.subscribe.client_new | |
def dialogs(window): | |
windowtype = window.window.get_wm_class() |
This file contains hidden or 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
program_dict = {'firefox-aurora': False, | |
'emacs': False, | |
'thunderbird': False, | |
'urxvt': False, | |
'skype': False} | |
@hook.subscribe.client_new | |
def dialogs(window): |
This file contains hidden or 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
@hook.subscribe.client_new | |
def dialogs(window): | |
program_dict = {'firefox-aurora': 'Home', | |
'emacs': 'emacs', | |
'thunderbird': 'mail', | |
'urxvt': 'terminal', | |
'skype': 'skype'} |
This file contains hidden or 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
;; EMACS CONFIGURATION FILE | |
(add-to-list 'load-path "~/.emacs.d/") | |
(let ((default-directory "~/.emacs.d/color-theme-6.6.0/")) | |
(normal-top-level-add-to-load-path '(".")) | |
(normal-top-level-add-subdirs-to-load-path)) | |
(require 'color-theme) |
This file contains hidden or 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
from libqtile.manager import Key, Screen, Group | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget, hook | |
keys = [ | |
# SWAP MASTER WINDOWS AROUND | |
Key(["mod1"], "n", lazy.layout.down()), | |
Key(["mod1"], "m", lazy.layout.up()), |
This file contains hidden or 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
from libqtile.manager import Key, Screen, Group | |
from libqtile.command import lazy | |
from libqtile import layout, bar, widget, hook | |
keys = [ | |
# SWAP MASTER WINDOWS AROUND | |
Key(["mod1"], "n", lazy.layout.down()), | |
Key(["mod1"], "m", lazy.layout.up()), |
This file contains hidden or 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
""" | |
Script to notify of a highlight | |
""" | |
class WeeChatEx(Exception): | |
pass | |
try: | |
import weechat | |
except ImportError: |
This file contains hidden or 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
def generic_wrapper(f): | |
print 'entering wrapper function' | |
def inner_function(): | |
print f() | |
print 'leaving wrapper' | |
return inner_function |
This file contains hidden or 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
# configs without | |
self.layouts = globs.get("layouts", self.default_layout()) | |
self.screens = globs.get("screens") | |
self.groups = globs.get("groups") | |
self.keys = globs.get("keys") | |
def default_layout(self): | |
""" |
OlderNewer