make moving windows nicers

This commit is contained in:
zoe 2022-09-02 13:53:29 +02:00
parent 27aa42b816
commit fc13b25aed
2 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,4 @@
from libqtile.config import Click, Drag, Group, Key, Match
from libqtile.layout.floating import Floating
from libqtile.config import Click, Drag, Group, Key
from libqtile.lazy import lazy
import autostart
@ -19,6 +18,8 @@ keys = [
Key([mod], "j", lazy.layout.down(), desc="Move focus down"),
Key([mod], "k", lazy.layout.up(), desc="Move focus up"),
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
Key([mod], "a", lazy.to_screen(0)),
Key([mod], "s", lazy.to_screen(1)),
# Move windows between left/right columns or move up/down in current stack.
# Moving out of range in Columns layout will create new column.
Key(
@ -86,7 +87,7 @@ for i in groups:
Key(
[mod, "shift"],
i.name,
lazy.window.togroup(i.name, switch_group=True),
lazy.window.togroup(i.name, switch_group=False),
desc="Switch to & move focused window to group {}".format(i.name),
),
# Or, use below if you prefer not to switch to that group.

View File

@ -65,11 +65,11 @@ def _get_powerline_arrow(direction: _PowerLineDirection, accent: _Accent, end=Fa
)
_net = widget.Net(
_net = widget.TextBox(
**get_defaults(),
background=my_globals.colors["accent-dark"],
foreground=my_globals.colors["on-accent-dark"],
format="{down} ↓↑ {up}",
text="",
)
_netgraph = widget.NetGraph(
@ -82,11 +82,11 @@ _netgraph = widget.NetGraph(
)
_cpu = widget.CPU(
_cpu = widget.TextBox(
**get_defaults(),
background=my_globals.colors["accent-dark"],
foreground=my_globals.colors["on-accent-dark"],
format="{load_percent}%",
text="",
)
_cpu_graph = widget.CPUGraph(
@ -201,5 +201,10 @@ def _get_bar_contents(primary=False):
if primary:
l.insert(0, _tray)
else:
l = [_net, _netgraph, _cpu, _cpu_graph] + l
l = [
_net,
_netgraph,
_cpu,
_cpu_graph,
] + l
return l