question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Work with floating windows: move_floating and resize_floating

See original GitHub issue

YT link: https://www.youtube.com/watch?v=skT9CZJ7V4Y Old config file: https://github.com/bavardage/qtile/blob/master/examples/config/bavardage-config.py

I tried the block from the config:

for key, x, y in [("Left", -10, 0), 
                  ("Right", 10, 0), 
                  ("Up", 0, -10),
                  ("Down", 0, 10)]:
    keys.append(Key([modkey, "control"], key, lazy.window.move_floating(x, y)))
    keys.append(Key([modkey, "shift"], key, lazy.window.resize_floating(x, y)))
    keys.append(Key([modkey, "mod1"], key, lazy.window.move_to_screen_edge(key)))

but doesn’t work. The window.move_to_screen_edge function doesn’t exists also.

How can I use this pair of functions for this kind of window manipulation with keyboard?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ramnescommented, Jul 6, 2019

The reason of those empty arguments is because cmd_set_position need them, and that this function and the ones you’re trying to use are meant to be called at the same place and thus prepared the same way: https://github.com/qtile/qtile/blob/v0.14.2/libqtile/core/manager.py#L1072

I’m about to push a commit that will modify cmd_set_position so that we leverage #1305, that made the coordinates of the mouse always available, so that we can remove those useless arguments all around. 👍

0reactions
github-actions[bot]commented, Apr 19, 2020

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Floating windows are moving and resizing randomly
When restarting visual studio an well as when starting and stopping the debug mode, most floating windows change their position and size randomly....
Read more >
Is it possible to move around floating windows and resize ...
Is it possible to move around floating windows and resize them using the keyboard? : r/qtile.
Read more >
floating windows - instantOS
Each window has two modes: Floating and tiling. Tiling is explained here Floating mode allows you to freely move and resize any window....
Read more >
Some questions about floating window move and resize #125
At the moment, we neet press Win key before move or resize a window, it it possible to do the job while don't...
Read more >
Xmonad: when floating a window, move or resize it
Ideally, upon shifting to the float layer, I'd have them move to the center of the screen and/or resize. The best solution would...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found