added mouse config
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
from libqtile.lazy import lazy
|
from libqtile.lazy import lazy
|
||||||
from libqtile.config import EzKey as Key
|
from libqtile.config import EzKey as Key
|
||||||
|
from libqtile.config import EzClick as Click, EzDrag as Drag
|
||||||
|
|
||||||
from config import apps, modifier_keys
|
from config import apps
|
||||||
|
|
||||||
keys = [
|
keys = [
|
||||||
# Focus manipulation
|
# Focus manipulation
|
||||||
@@ -107,3 +108,17 @@ keys = [
|
|||||||
Key("M-b", lazy.spawn(apps["browser"])),
|
Key("M-b", lazy.spawn(apps["browser"])),
|
||||||
Key("M-<Return>", lazy.spawn(apps["terminal"])),
|
Key("M-<Return>", lazy.spawn(apps["terminal"])),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
mouse = [
|
||||||
|
Drag(
|
||||||
|
"M-1",
|
||||||
|
lazy.window.set_position_floating(),
|
||||||
|
start=lazy.window.get_position(),
|
||||||
|
),
|
||||||
|
Drag(
|
||||||
|
"M-3",
|
||||||
|
lazy.window.set_size_floating(),
|
||||||
|
start=lazy.window.get_size(),
|
||||||
|
),
|
||||||
|
Click("M-2", lazy.window.bring_to_front()),
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user