picom
This commit is contained in:
parent
908ff77b13
commit
5b67604e23
|
@ -5,6 +5,7 @@ autostart = [
|
|||
os.path.expanduser("~") + "/.screenlayout/default.sh",
|
||||
"xfce4-power-manager",
|
||||
"nm-applet",
|
||||
["/usr/local/bin/picom", "--experimental-backend"],
|
||||
["nitrogen", "--restore"],
|
||||
]
|
||||
|
||||
|
|
13
config.py
13
config.py
|
@ -123,18 +123,7 @@ dgroups_app_rules = [] # type: list
|
|||
follow_mouse_focus = True
|
||||
bring_front_click = False
|
||||
cursor_warp = False
|
||||
floating_layout = Floating(
|
||||
float_rules=[
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
*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
|
||||
]
|
||||
)
|
||||
floating_layout = my_layouts.get_floating()
|
||||
auto_fullscreen = False
|
||||
focus_on_window_activation = "smart"
|
||||
reconfigure_screens = True
|
||||
|
|
|
@ -10,4 +10,4 @@ colors = {
|
|||
}
|
||||
|
||||
border_width = 2
|
||||
gap_width = 2
|
||||
gap_width = 4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from libqtile.layout import columns, max, xmonad
|
||||
from libqtile.layout import columns, max, floating
|
||||
import my_globals
|
||||
|
||||
default_layout_theme = {
|
||||
|
@ -6,9 +6,17 @@ default_layout_theme = {
|
|||
"margin": my_globals.gap_width,
|
||||
"border_normal": my_globals.colors["accent-dark"],
|
||||
"border_focus": my_globals.colors["accent-light"],
|
||||
"border_focus_stack": my_globals.colors["accent-light"],
|
||||
}
|
||||
|
||||
|
||||
def get_floating():
|
||||
return floating.Floating(
|
||||
**default_layout_theme,
|
||||
float_rules=[],
|
||||
)
|
||||
|
||||
|
||||
def get_layouts():
|
||||
return [
|
||||
columns.Columns(**default_layout_theme),
|
||||
|
|
|
@ -61,6 +61,40 @@ def _get_powerline_arrow(direction: _PowerLineDirection, accent: _Accent, end=Fa
|
|||
)
|
||||
|
||||
|
||||
_net = widget.Net(
|
||||
**get_defaults(),
|
||||
background=my_globals.colors["accent-dark"],
|
||||
foreground=my_globals.colors["on-accent-dark"],
|
||||
format="{down} ↓↑ {up} ",
|
||||
)
|
||||
|
||||
_netgraph = widget.NetGraph(
|
||||
**get_defaults(),
|
||||
type="linefill",
|
||||
border_width=0,
|
||||
graph_color=my_globals.colors["on-accent-dark"],
|
||||
fill_color=my_globals.colors["on-accent-dark"],
|
||||
background=my_globals.colors["accent-dark"],
|
||||
)
|
||||
|
||||
|
||||
_cpu = widget.CPU(
|
||||
**get_defaults(),
|
||||
background=my_globals.colors["accent-dark"],
|
||||
foreground=my_globals.colors["on-accent-dark"],
|
||||
format="{load_percent}% ",
|
||||
)
|
||||
|
||||
_cpu_graph = widget.CPUGraph(
|
||||
**get_defaults(),
|
||||
type="linefill",
|
||||
border_width=0,
|
||||
graph_color=my_globals.colors["on-accent-dark"],
|
||||
fill_color=my_globals.colors["on-accent-dark"],
|
||||
background=my_globals.colors["accent-dark"],
|
||||
)
|
||||
|
||||
|
||||
_weather = widget.OpenWeather(
|
||||
**get_defaults(),
|
||||
background=_Accent.A.value,
|
||||
|
@ -161,5 +195,10 @@ def _get_bar_contents(primary=False):
|
|||
if primary:
|
||||
l.insert(0, _tray)
|
||||
else:
|
||||
pass
|
||||
l = [
|
||||
_net,
|
||||
_netgraph,
|
||||
_cpu,
|
||||
_cpu_graph,
|
||||
] + l
|
||||
return l
|
||||
|
|
Loading…
Reference in New Issue