diff options
author | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:46:15 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:46:15 +0100 |
commit | 6aaea9cf4b283d41016e60735f52c8feb3cd0c9e (patch) | |
tree | ffc170bb7f267247b60908ac9125fcc02175afd9 /.config/qtile/mouse.py | |
parent | 86c0c3694c93025dfec23f27266905c12f446a4e (diff) |
Initial commit
Diffstat (limited to '.config/qtile/mouse.py')
-rw-r--r-- | .config/qtile/mouse.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/qtile/mouse.py b/.config/qtile/mouse.py new file mode 100644 index 0000000..6cd0e88 --- /dev/null +++ b/.config/qtile/mouse.py @@ -0,0 +1,28 @@ +# Justine Smithies +# https://github.com/justinesmithies/qtile-wayland-dotfiles + +# Mouse floating layouts. + +from libqtile.config import Drag, Click +from libqtile.command import lazy +from keys import mod + +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() + ) +] |