Git Product home page Git Product logo

Comments (12)

AlynxZhou avatar AlynxZhou commented on July 17, 2024

I use Hyprland, and even if I dispatch "togglefloating" to it, it stays floating always.

I don't use Hyprland, so I can only guess the reason, maybe it requires window to be resizable to tile it? Unfortunately currently I set it to false, I have a testing branch that removes resizable as a side effect, but not released yet, I don't know if you are interested to build and try it: https://github.com/AlynxZhou/showmethekey/tree/click-through-switch.

from showmethekey.

raffaem avatar raffaem commented on July 17, 2024

I use Hyprland, and even if I dispatch "togglefloating" to it, it stays floating always.

I don't use Hyprland, so I can only guess the reason, maybe it requires window to be resizable to tile it? Unfortunately currently I set it to false, I have a testing branch that removes resizable as a side effect, but not released yet, I don't know if you are interested to build and try it: https://github.com/AlynxZhou/showmethekey/tree/click-through-switch.

Yep that tiles it. Thanks! :)

from showmethekey.

raffaem avatar raffaem commented on July 17, 2024

Even if I turn off the "Clickable" switch, the "Clickable" text is gone, but the keys still take up the same space as before, with taking up the empty space that was occupied by the "Clickable" text.

Is there a way to have the keys occupy all the available space?

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

Even if I turn off the "Clickable" switch, the "Clickable" text is gone, but the keys still take up the same space as before, with taking up the empty space that was occupied by the "Clickable" text.

Is there a way to have the keys occupy all the available space?

I am sorry, no solution, it's the title bar, window must have a title bar (so you could drag it). See #17 (comment).

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

I use Hyprland, and even if I dispatch "togglefloating" to it, it stays floating always.

I don't use Hyprland, so I can only guess the reason, maybe it requires window to be resizable to tile it? Unfortunately currently I set it to false, I have a testing branch that removes resizable as a side effect, but not released yet, I don't know if you are interested to build and try it: https://github.com/AlynxZhou/showmethekey/tree/click-through-switch.

Yep that tiles it. Thanks! :)

It should be easy to allow this in master, but I am thinking about merging the branch into master, if you have time please read #17 (comment) and give some opinion (because you just used the branch), thanks.

from showmethekey.

raffaem avatar raffaem commented on July 17, 2024

Even if I turn off the "Clickable" switch, the "Clickable" text is gone, but the keys still take up the same space as before, with taking up the empty space that was occupied by the "Clickable" text.
Is there a way to have the keys occupy all the available space?

I am sorry, no solution, it's the title bar, window must have a title bar (so you could drag it). See #17 (comment).

Thank you.

I don't understand this point.

For instance, as an image viewer I use feh, which does not seem to have a title bar? Also mpv does not seem to have one? Also kitty does not have one?

I think I render all of those without window decorations.

I can drag them / move them (not sure if they are exactly the same) with mouse bindings

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

Even if I turn off the "Clickable" switch, the "Clickable" text is gone, but the keys still take up the same space as before, with taking up the empty space that was occupied by the "Clickable" text.
Is there a way to have the keys occupy all the available space?

I am sorry, no solution, it's the title bar, window must have a title bar (so you could drag it). See #17 (comment).

Thank you.

I don't understand this point.

For instance, as an image viewer I use feh, which does not seem to have a title bar? Also mpv does not seem to have one? Also kitty does not have one?

I think I render all of those without window decorations.

I can drag them / move them (not sure if they are exactly the same) with mouse bindings

It may be OK to remove titlebar from a GtkWindow, but not all people use Hyprland and get used to move window with a key pressed, for most people dragging window with titlebar is naturally, so I decide to keep it.

from showmethekey.

raffaem avatar raffaem commented on July 17, 2024

It may be OK to remove titlebar from a GtkWindow, but not all people use Hyprland and get used to move window with a key pressed, for most people dragging window with titlebar is naturally, so I decide to keep it.

I think it's a feature of all tiling window managers, not only Hyprland (i3, sway, bspwm, etc.).

Maybe we can have a command line switch that remove windows decoration. So who uses a floating window manager can have the decorations.

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

It may be OK to remove titlebar from a GtkWindow, but not all people use Hyprland and get used to move window with a key pressed, for most people dragging window with titlebar is naturally, so I decide to keep it.

I think it's a feature of all tiling window managers, not only Hyprland (i3, sway, bspwm, etc.).

The problem is most users are using floating window manager.

Maybe we can have a command line switch that remove windows decoration. So who uses a floating window manager can have the decorations.

It could, but I don't want to take time on this, the title bar is little and should not waste too much screen space. Maybe I could make it smaller, but I have little interests on removing it.

from showmethekey.

raffaem avatar raffaem commented on July 17, 2024

It may be OK to remove titlebar from a GtkWindow, but not all people use Hyprland and get used to move window with a key pressed, for most people dragging window with titlebar is naturally, so I decide to keep it.

I think it's a feature of all tiling window managers, not only Hyprland (i3, sway, bspwm, etc.).

The problem is most users are using floating window manager.

Maybe we can have a command line switch that remove windows decoration. So who uses a floating window manager can have the decorations.

It could, but I don't want to take time on this, the title bar is little and should not waste too much screen space. Maybe I could make it smaller, but I have little interests on removing it.

Would you consider a PR that creates a new switch "Show Title Bar" in the main window?

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

It may be OK to remove titlebar from a GtkWindow, but not all people use Hyprland and get used to move window with a key pressed, for most people dragging window with titlebar is naturally, so I decide to keep it.

I think it's a feature of all tiling window managers, not only Hyprland (i3, sway, bspwm, etc.).

The problem is most users are using floating window manager.

Maybe we can have a command line switch that remove windows decoration. So who uses a floating window manager can have the decorations.

It could, but I don't want to take time on this, the title bar is little and should not waste too much screen space. Maybe I could make it smaller, but I have little interests on removing it.

Would you consider a PR that creates a new switch "Show Title Bar" in the main window?

I personally don't consider it, because many people don't use it. The initial design is a floating window, it happens to be able to tile now, but not the main goal. Sorry.

from showmethekey.

AlynxZhou avatar AlynxZhou commented on July 17, 2024

The window is resizable so user should be able to tile it, and I won't consider to remove window decorations (because I am a floating WM user), so I'll close this.

from showmethekey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.