Base theme, built on a class-based model. 9 workspaces based on function, basic system tray with cpu monitor, battery monitor and update indicator. Built-in multi-monitor support.
This commit is contained in:
parent
5b2c93d89a
commit
a5ef8739db
16 changed files with 549 additions and 0 deletions
94
config.py
Normal file
94
config.py
Normal file
|
@ -0,0 +1,94 @@
|
|||
# Copyright (c) 2010 Aldo Cortesi
|
||||
# Copyright (c) 2010, 2014 dequis
|
||||
# Copyright (c) 2012 Randall Ma
|
||||
# Copyright (c) 2012-2014 Tycho Andersen
|
||||
# Copyright (c) 2012 Craig Barnes
|
||||
# Copyright (c) 2013 horsik
|
||||
# Copyright (c) 2013 Tao Sauvage
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
# Import Theme
|
||||
from libqtile import hook
|
||||
|
||||
try:
|
||||
from kuro.theme import Kuro
|
||||
Theme = Kuro()
|
||||
except ImportError:
|
||||
from kuro.base import BaseTheme
|
||||
Kuro = None
|
||||
Theme = BaseTheme()
|
||||
|
||||
# Import theme configuration
|
||||
try:
|
||||
from kuro.config import Config
|
||||
except ImportError:
|
||||
try:
|
||||
from kuro.baseconfig import BaseConfig as Config
|
||||
except ImportError:
|
||||
Config = None
|
||||
raise ImportError("Could not load theme Config or BaseConfig!")
|
||||
|
||||
# Initialize the Theme
|
||||
Theme.initialize()
|
||||
|
||||
# Hook theme into all hooks we know of
|
||||
hook.subscribe.startup_once(Theme.callback_startup_once)
|
||||
hook.subscribe.startup(Theme.callback_startup)
|
||||
hook.subscribe.startup_complete(Theme.callback_startup_complete)
|
||||
hook.subscribe.setgroup(Theme.callback_setgroup)
|
||||
hook.subscribe.addgroup(Theme.callback_addgroup)
|
||||
hook.subscribe.delgroup(Theme.callback_delgroup)
|
||||
hook.subscribe.changegroup(Theme.callback_changegroup)
|
||||
hook.subscribe.focus_change(Theme.callback_focus_change)
|
||||
hook.subscribe.float_change(Theme.callback_float_change)
|
||||
hook.subscribe.group_window_add(Theme.callback_group_window_add)
|
||||
hook.subscribe.window_name_change(Theme.callback_window_name_change)
|
||||
hook.subscribe.client_new(Theme.callback_client_new)
|
||||
hook.subscribe.client_managed(Theme.callback_client_managed)
|
||||
hook.subscribe.client_killed(Theme.callback_client_killed)
|
||||
hook.subscribe.client_state_changed(Theme.callback_client_state_changed)
|
||||
hook.subscribe.client_type_changed(Theme.callback_client_type_changed)
|
||||
hook.subscribe.client_focus(Theme.callback_client_focus)
|
||||
hook.subscribe.client_mouse_enter(Theme.callback_client_mouse_enter)
|
||||
hook.subscribe.client_name_updated(Theme.callback_client_name_updated)
|
||||
hook.subscribe.client_urgent_hint_changed(Theme.callback_client_urgent_hint_changed)
|
||||
hook.subscribe.layout_change(Theme.callback_layout_change)
|
||||
hook.subscribe.net_wm_icon_change(Theme.callback_net_wm_icon_change)
|
||||
hook.subscribe.selection_notify(Theme.callback_selection_notify)
|
||||
hook.subscribe.selection_change(Theme.callback_selection_change)
|
||||
hook.subscribe.screen_change(Theme.callback_screen_change)
|
||||
hook.subscribe.current_screen_change(Theme.callback_current_screen_change)
|
||||
|
||||
# Initialize variables from theme
|
||||
keys = Theme.keys
|
||||
groups = Theme.groups
|
||||
layouts = Theme.layouts
|
||||
widget_defaults = Theme.widget_defaults
|
||||
screens = Theme.screens
|
||||
dgroups_key_binder = Theme.dgroups_key_binder
|
||||
dgroups_app_rules = Theme.dgroups_app_rules
|
||||
main = Theme.main
|
||||
follow_mouse_focus = Theme.follow_mouse_focus
|
||||
bring_front_click = Theme.bring_front_click
|
||||
cursor_warp = Theme.cursor_warp
|
||||
floating_layout = Theme.floating_layout
|
||||
auto_fullscreen = Theme.auto_fullscreen
|
||||
focus_on_window_activation = Theme.focus_on_window_activation
|
||||
extentions = Theme.extensions
|
Loading…
Add table
Add a link
Reference in a new issue