Load more config from host-specific files, add host-config for work DBO, allow using 'fake-screens', various bugfixes
This commit is contained in:
parent
3c72148fcd
commit
8f5e1e282a
5 changed files with 308 additions and 129 deletions
|
@ -1,5 +1,6 @@
|
|||
from kuro.base import BaseConfig
|
||||
from libqtile.log_utils import logger
|
||||
from libqtile.lazy import lazy
|
||||
|
||||
|
||||
# Config variables used in the main configuration
|
||||
|
@ -10,6 +11,13 @@ class Config(BaseConfig):
|
|||
debug = False
|
||||
verbose = False
|
||||
|
||||
# General variables
|
||||
homedir = "/home/kevin"
|
||||
use_fake_screens = False
|
||||
|
||||
# Screen configs (empty = autoconfig, otherwise list of Screen() kwarg dicts)
|
||||
screen_kwargs = []
|
||||
|
||||
# Colors
|
||||
foreground = "#ffffff"
|
||||
background = "#000000"
|
||||
|
@ -18,8 +26,6 @@ class Config(BaseConfig):
|
|||
inactive_dark = "#333333"
|
||||
|
||||
# Predefined commands
|
||||
cmd_brightness_up = "sudo /usr/bin/xbacklight -inc 10"
|
||||
cmd_brightness_down = "sudo /usr/bin/xbacklight -dec 10"
|
||||
cmd_screenshot = "/home/kevin/bin/screenshot.sh"
|
||||
cmd_alt_screenshot = "/home/kevin/bin/screenshot.sh"
|
||||
lock_command = "bash /home/kevin/bin/lock.sh"
|
||||
|
@ -28,11 +34,52 @@ class Config(BaseConfig):
|
|||
# Default Applications
|
||||
app_terminal = "terminator"
|
||||
app_launcher = "wofi --show run,drun"
|
||||
app_launcer_x11 = "/home/kevin/bin/dmenu_wal.sh"
|
||||
file_manager = "thunar"
|
||||
visualizer_app = "glava"
|
||||
web_browser = "firefox"
|
||||
network_config = None
|
||||
|
||||
# Group definitions
|
||||
groups = [
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': ''},
|
||||
{'name': '', 'layout': 'floating', 'options': {'border_focus': '#990000', 'border_normal': '#440000'}}
|
||||
]
|
||||
|
||||
# Extra keybind definitions
|
||||
extra_keys = [
|
||||
# Display modes
|
||||
{'modifiers': ['mod'], 'key': "Prior", 'action': lazy.spawn("bash /home/kevin/.screenlayout/3scrns_144_rrot.sh")},
|
||||
{'modifiers': ['mod'], 'key': "Next", 'action': lazy.spawn("bash /home/kevin/.screenlayout/3scrns_60_rrot.sh")},
|
||||
{'modifiers': ['mod'], 'key': "Home", 'action': lazy.spawn("bash /home/kevin/bin/monitor_day.sh")},
|
||||
{'modifiers': ['mod'], 'key': "End", 'action': lazy.spawn("bash /home/kevin/bin/monitor_night.sh")},
|
||||
{'modifiers': ['mod'], 'key': "Insert", 'action': lazy.spawn("bash /home/kevin/bin/monitor_gamenight.sh")},
|
||||
|
||||
# Backlight keys
|
||||
{'modifiers': [], 'key': "XF86MonBrightnessUp", 'action': lazy.spawn("sudo /usr/bin/xbacklight -inc 10")},
|
||||
{'modifiers': [], 'key': "XF86MonBrightnessDown", 'action': lazy.spawn("sudo /usr/bin/xbacklight -dec 10")},
|
||||
]
|
||||
|
||||
# Extra floating window rules
|
||||
extra_float_rules = [
|
||||
# Wine Origin game launcher
|
||||
{'title': 'origin.exe', 'wm_class': 'Wine'},
|
||||
# Homebank popups
|
||||
{'title': 'Add transaction', 'wm_class': 'homebank'},
|
||||
{'title': 'Edit transaction', 'wm_class': 'homebank'},
|
||||
{'title': 'Inherit transaction', 'wm_class': 'homebank'},
|
||||
{'title': 'Multiple edit transactions', 'wm_class': 'homebank'},
|
||||
{'title': 'Transaction splits', 'wm_class': 'homebank'},
|
||||
]
|
||||
|
||||
# Autostart applications
|
||||
apps_autostart_group = [
|
||||
{'group': "", 'command': ["firefox"]},
|
||||
|
@ -69,12 +116,8 @@ class Config(BaseConfig):
|
|||
cmd_media_volume_up = "pamixer -d 2"
|
||||
|
||||
# Display mode commands
|
||||
cmd_monitor_mode_3s144 = "bash /home/kevin/.screenlayout/3scrns_144_rrot.sh"
|
||||
cmd_monitor_mode_3s60 = "bash /home/kevin/.screenlayout/3scrns_60_rrot.sh"
|
||||
cmd_monitor_mode_day = "bash /home/kevin/bin/monitor_day.sh"
|
||||
cmd_monitor_mode_night = "bash /home/kevin/bin/monitor_night.sh"
|
||||
cmd_monitor_mode_alt = "bash /home/kevin/bin/monitor_gamenight.sh"
|
||||
cmd_reconfigure_screens = "kanshictl reload"
|
||||
cmd_wal = ["wallust", "run"]
|
||||
|
||||
# Commands
|
||||
x11_wallpaper_config_command = "/home/kevin/bin/wal-nitrogen-noupdate" # TODO: Remove
|
||||
|
@ -208,6 +251,9 @@ class Config(BaseConfig):
|
|||
# Show battery widget
|
||||
show_battery_widget = False
|
||||
|
||||
# Show media widget
|
||||
show_media_widget = True
|
||||
|
||||
# Comma-separated list of ignored players in the media widget
|
||||
media_ignore_players = "kdeconnect"
|
||||
|
||||
|
@ -219,4 +265,4 @@ class Config(BaseConfig):
|
|||
# Replace some apps if launched in X11 mode
|
||||
if qtile.core.name == "x11":
|
||||
logger.warning("Launched in X11 mode, overriding some apps in Config to xorg-variants.")
|
||||
cls.app_launcher = "/home/kevin/bin/dmenu_wal.sh"
|
||||
cls.app_launcher = cls.app_launcer_x11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue