Find the answer to your Linux question:
Page 5 of 7 FirstFirst 1 2 3 4 5 6 7 LastLast
Results 41 to 50 of 62
Originally Posted by Miven So I thought: Why not just make it a 1x1 pixel window? It took a couple minor hacks, but now ALT-F9 toggles between fullscreen/floating/whatever and a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #41
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023

    Quote Originally Posted by Miven View Post
    So I thought: Why not just make it a 1x1 pixel window?

    It took a couple minor hacks, but now ALT-F9 toggles between fullscreen/floating/whatever and a 1x1 pixel window that sits in the top left corner.
    Smooth! That's a simple yet elegant solution!
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  2. #42
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    362
    Nah. Simple, yes. Elegant, no. It fails with term windows and multi view-pane stuff like gqview. But it does accomplish the goal I wanted.

    Does anyone know how to NOT draw an exisiting window without destroying it?

  3. #43
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Miven View Post
    So I thought: Why not just make it a 1x1 pixel window?
    But isn't it pretty hard to see what you are doing in oo-writer when the window is that small?

    haha... just kidding! That's really a great idea for that purpose. I'm going to keep that solution in mind for my own needs!
    oz

  4. #44
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    362
    You're right, the fonts are a bit small, but I can fit 786,432 1x1 windows on every screen. So it makes up in quantitiy what it lacks in quality.

  5. #45
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    362
    I figured out the simple AND elegant solution to the minimize issue:

    1. add a boolean ishidden to the client struct and toggle it with ALT-F9.

    2. if c->ishidden, XUnmap the window else XMap the window.

    3. In the unmapnotify handler, check for ishidden, and just return if it's set.

    This appears to do exactly what I want, without screwing up my term windows. There's a couple other tweaks to do yet, like change focus to the next window in the stack, and turning off ishidden if your trying to destroy a hidden window, stuff like that.

    Much better than that that 1x1 pixel trick, and it cleans the PB&J prints off my source code

  6. #46
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Miven View Post
    Much better than that that 1x1 pixel trick, and it cleans the PB&J prints off my source code
    Good job with that, and I'm glad to hear you are continuing to have fun hacking dwm!
    oz

  7. #47
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    I'd really like to install Xmonad and play around with it some, but it has a number of Haskell dependencies and in the end it increases my overall system install size by quite a bit, so I've been avoiding it. Still, I've heard from some users that Xmonad is like the ultimate in tiling window managers. It's a pretty large package itself, when compared to the tiny size of DWM.
    oz

  8. #48
    Linux User
    Join Date
    Dec 2011
    Location
    Turtle Island West
    Posts
    362
    I haven't recompiled dwm in 2 days, so I guess that means I have it tweaked just perfectly. I think it's a thing of beauty and I'm keeping it.

    Hazel asked to see it, so here it is. All 34k of it. That includes my statusbar program, but not the monospace font. That comes from Inconsolata
    Attached Files Attached Files

  9. #49
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Miven View Post
    here it is. All 34k of it. That includes my statusbar program, but not the monospace font. That comes from Inconsolata
    I don't currently have it installed but did install Inconsolata not too long back and really liked that font very much. I'll likely install it again in the near future.

    At the moment, I'm running MonsterWM and still switching back and forth between it, DWM, and Awesome. At some point, I'm going to settle on one of the three as my default tiler. MonsterWM is the lightest of the bunch, but it does quite a lot for only 700 lines of code, and the lack of add-on features is what many of its fans like about it.
    oz

  10. #50
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    For anyone that might be confused about tags vs workspaces in tiling window managers, I ran across this recent article giving some informative pointers and explanations regarding the differences:

    dwm: Tags are not workspaces - wongdev.com

    It takes a while to become accustomed to the way tilers handle windows but once you do so, you can begin to feel the power and benefits that they offer.
    oz

Page 5 of 7 FirstFirst 1 2 3 4 5 6 7 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •