Update Aria config to latest qtile version
This commit is contained in:
parent
2dfb5381ae
commit
f775ce8b03
4 changed files with 70 additions and 93 deletions
|
@ -7,7 +7,7 @@ from libqtile.log_utils import logger
|
|||
|
||||
logger.error("Importing qtile theme requirements...")
|
||||
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click, Match
|
||||
from libqtile.command import lazy
|
||||
from libqtile import layout, bar, widget
|
||||
|
||||
|
@ -75,20 +75,14 @@ class Kuro(BaseTheme):
|
|||
|
||||
# Floating layout override
|
||||
floating_layout = kuro_layouts.KuroFloating(float_rules=[
|
||||
{'wmclass': 'confirm'},
|
||||
{'wmclass': 'dialog'},
|
||||
{'wmclass': 'download'},
|
||||
{'wmclass': 'error'},
|
||||
{'wmclass': 'file_progress'},
|
||||
{'wmclass': 'notification'},
|
||||
{'wmclass': 'splash'},
|
||||
{'wmclass': 'toolbar'},
|
||||
{'wmclass': 'confirmreset'}, # gitk
|
||||
{'wmclass': 'makebranch'}, # gitk
|
||||
{'wmclass': 'maketag'}, # gitk
|
||||
{'wname': 'branchdialog'}, # gitk
|
||||
{'wname': 'pinentry'}, # GPG key password entry
|
||||
{'wmclass': 'ssh-askpass'}, # ssh-askpass
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
*layout.Floating.default_float_rules,
|
||||
Match(wm_class='confirmreset'), # gitk
|
||||
Match(wm_class='makebranch'), # gitk
|
||||
Match(wm_class='maketag'), # gitk
|
||||
Match(wm_class='ssh-askpass'), # ssh-askpass
|
||||
Match(title='branchdialog'), # gitk
|
||||
Match(title='pinentry'), # GPG key password entry
|
||||
])
|
||||
|
||||
def set_debug_text(self, text):
|
||||
|
@ -242,14 +236,7 @@ class Kuro(BaseTheme):
|
|||
groups.append(Group(""))
|
||||
groups.append(Group(""))
|
||||
groups.append(Group(""))
|
||||
groups.append(Group("", spawn=Config.get('apps_audio', "true"), layout='verticaltile', layouts=[
|
||||
layout.VerticalTile(
|
||||
border_focus=Config.get('colour_border_focus', "#ffffff"),
|
||||
border_normal=Config.get('colour_border_normal', "#777777"),
|
||||
border_width=Config.get('width_border', "1"),
|
||||
margin=Config.get('margin_layout', "0"),
|
||||
)
|
||||
]))
|
||||
groups.append(Group("", spawn=Config.get('apps_audio', "true")))
|
||||
groups.append(Group("", layout='floating', layouts=[
|
||||
layout.Floating(
|
||||
border_focus="#990000",
|
||||
|
@ -385,6 +372,7 @@ class Kuro(BaseTheme):
|
|||
colour_have_updates=Config.get('updates_colour_available', '#ff0000'),
|
||||
display_format=Config.get('updates_display_format', 'Updates: {updates}'),
|
||||
execute=Config.get('updates_execute_command', None),
|
||||
update_interval=Config.get('updates_interval', 600),
|
||||
**self.widget_defaults
|
||||
),
|
||||
widget.TextBox("#{}".format(x), name="default", **self.widget_defaults),
|
||||
|
@ -591,11 +579,14 @@ class Kuro(BaseTheme):
|
|||
p.wait()
|
||||
|
||||
self.log_info("Starting compositor...")
|
||||
utils.execute_once("compton -b")
|
||||
utils.execute_once("picom -b")
|
||||
|
||||
self.log_info("Starting clipboard manager...")
|
||||
utils.execute_once("xfce4-clipman")
|
||||
|
||||
self.log_info("Starting notification daemon...")
|
||||
utils.execute_once("dunst")
|
||||
|
||||
# Update color scheme
|
||||
self.initialize_colorscheme()
|
||||
|
||||
|
@ -627,9 +618,9 @@ class Kuro(BaseTheme):
|
|||
for r in dg.rules:
|
||||
pid = -1
|
||||
# noinspection PyProtectedMember
|
||||
for r2 in r.match._rules:
|
||||
if r2[0] == "net_wm_pid":
|
||||
pid = r2[1]
|
||||
for m in r.matchlist:
|
||||
if m._rules.get('net_wm_pid', None) is not None:
|
||||
pid = m._rules.get('net_wm_pid')
|
||||
break
|
||||
if pid != -1:
|
||||
self.initial_windows.append((pid, r.group))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue