dotfiles/.config/qtile-wayland/settings/mouse.py

29 lines
570 B
Python
Raw Normal View History

2022-04-30 12:49:30 +02:00
# Justine Smithies
# https://github.com/justinesmithies/qtile-wayland-dotfiles
# Mouse floating layouts.
from libqtile.config import Drag, Click
from libqtile.command import lazy
2022-04-30 20:33:28 +02:00
from .keys import mod
2022-04-30 12:49:30 +02:00
mouse = [
Drag(
[mod],
"Button1",
lazy.window.set_position_floating(),
start=lazy.window.get_position()
),
Drag(
[mod],
"Button3",
lazy.window.set_size_floating(),
start=lazy.window.get_size()
),
Click(
[mod],
"Button2",
lazy.window.bring_to_front()
)
]