Move mouse keybindings to separate config
This commit is contained in:
parent
e2d66ee85f
commit
74fa1d9f1b
2 changed files with 26 additions and 22 deletions
|
@ -25,13 +25,14 @@
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
from libqtile import bar, hook, layout, qtile
|
from libqtile import bar, hook, layout, qtile
|
||||||
from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
from libqtile.config import Group, Key, Match, Screen
|
||||||
from libqtile.lazy import lazy
|
from libqtile.lazy import lazy
|
||||||
# Make sure 'qtile-extras' is installed or this config will not work.
|
# Make sure 'qtile-extras' is installed or this config will not work.
|
||||||
from qtile_extras import widget
|
from qtile_extras import widget
|
||||||
from qtile_extras.widget.decorations import BorderDecoration
|
from qtile_extras.widget.decorations import BorderDecoration
|
||||||
from libqtile.backend.wayland import InputConfig
|
from libqtile.backend.wayland import InputConfig
|
||||||
from keybindings import mod, keys, terminal
|
from keybindings import mod, keys, terminal
|
||||||
|
from mouse import mouse
|
||||||
import colors
|
import colors
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -277,27 +278,6 @@ screens = [
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Drag floating layouts.
|
|
||||||
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()
|
|
||||||
),
|
|
||||||
]
|
|
||||||
|
|
||||||
dgroups_key_binder = None
|
dgroups_key_binder = None
|
||||||
dgroups_app_rules = [] # type: list
|
dgroups_app_rules = [] # type: list
|
||||||
follow_mouse_focus = True
|
follow_mouse_focus = True
|
||||||
|
|
24
etc/skel/.config/qtile/mouse.py
Normal file
24
etc/skel/.config/qtile/mouse.py
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
from libqtile.config import Drag, Click
|
||||||
|
from libqtile.command import lazy
|
||||||
|
from keybindings import mod
|
||||||
|
|
||||||
|
# Drag floating layouts.
|
||||||
|
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()
|
||||||
|
),
|
||||||
|
]
|
Loading…
Add table
Reference in a new issue