Make xzoom float in i3wm

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm trying to configure i3 so that xzoom is always launched in floating mode.



The problem is that xzoom's window does not have a WM_CLASS and its WM_NAME is not set at window creation, but after a small delay.



Here is what the properties look like for the first few ms:



$ xzoom & sleep .01; xprop -id 0x2200001
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
WM_ICON_NAME(STRING) = "xzoom"


As you can see, the only thing that tells it apart is the WM_ICON_NAME.
After a few ms the title is added:



$ xprop
WM_NAME(STRING) = "xzoom x4"
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
WM_ICON_NAME(STRING) = "xzoom"


If I match the window using WM_NAME, the screen flashes horribly, as the other windows are re-arranged before falling back to their positions:



for_window [title="xzoom*"] floating enable


I tried looking for a command criterion that would look at the WM_ICON_NAME, but I couldn't find any.



Is there an alternative way to start this program in floating mode?







share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm trying to configure i3 so that xzoom is always launched in floating mode.



    The problem is that xzoom's window does not have a WM_CLASS and its WM_NAME is not set at window creation, but after a small delay.



    Here is what the properties look like for the first few ms:



    $ xzoom & sleep .01; xprop -id 0x2200001
    _NET_WM_DESKTOP(CARDINAL) = 0
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
    WM_ICON_NAME(STRING) = "xzoom"


    As you can see, the only thing that tells it apart is the WM_ICON_NAME.
    After a few ms the title is added:



    $ xprop
    WM_NAME(STRING) = "xzoom x4"
    _NET_WM_DESKTOP(CARDINAL) = 0
    WM_STATE(WM_STATE):
    window state: Normal
    icon window: 0x0
    WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
    WM_ICON_NAME(STRING) = "xzoom"


    If I match the window using WM_NAME, the screen flashes horribly, as the other windows are re-arranged before falling back to their positions:



    for_window [title="xzoom*"] floating enable


    I tried looking for a command criterion that would look at the WM_ICON_NAME, but I couldn't find any.



    Is there an alternative way to start this program in floating mode?







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm trying to configure i3 so that xzoom is always launched in floating mode.



      The problem is that xzoom's window does not have a WM_CLASS and its WM_NAME is not set at window creation, but after a small delay.



      Here is what the properties look like for the first few ms:



      $ xzoom & sleep .01; xprop -id 0x2200001
      _NET_WM_DESKTOP(CARDINAL) = 0
      WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
      WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
      WM_ICON_NAME(STRING) = "xzoom"


      As you can see, the only thing that tells it apart is the WM_ICON_NAME.
      After a few ms the title is added:



      $ xprop
      WM_NAME(STRING) = "xzoom x4"
      _NET_WM_DESKTOP(CARDINAL) = 0
      WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
      WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
      WM_ICON_NAME(STRING) = "xzoom"


      If I match the window using WM_NAME, the screen flashes horribly, as the other windows are re-arranged before falling back to their positions:



      for_window [title="xzoom*"] floating enable


      I tried looking for a command criterion that would look at the WM_ICON_NAME, but I couldn't find any.



      Is there an alternative way to start this program in floating mode?







      share|improve this question














      I'm trying to configure i3 so that xzoom is always launched in floating mode.



      The problem is that xzoom's window does not have a WM_CLASS and its WM_NAME is not set at window creation, but after a small delay.



      Here is what the properties look like for the first few ms:



      $ xzoom & sleep .01; xprop -id 0x2200001
      _NET_WM_DESKTOP(CARDINAL) = 0
      WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
      WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
      WM_ICON_NAME(STRING) = "xzoom"


      As you can see, the only thing that tells it apart is the WM_ICON_NAME.
      After a few ms the title is added:



      $ xprop
      WM_NAME(STRING) = "xzoom x4"
      _NET_WM_DESKTOP(CARDINAL) = 0
      WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
      WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
      WM_ICON_NAME(STRING) = "xzoom"


      If I match the window using WM_NAME, the screen flashes horribly, as the other windows are re-arranged before falling back to their positions:



      for_window [title="xzoom*"] floating enable


      I tried looking for a command criterion that would look at the WM_ICON_NAME, but I couldn't find any.



      Is there an alternative way to start this program in floating mode?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 21 '17 at 17:27









      Thomas

      3,62141124




      3,62141124










      asked Oct 21 '17 at 12:58









      Tobia

      234111




      234111

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399540%2fmake-xzoom-float-in-i3wm%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399540%2fmake-xzoom-float-in-i3wm%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Christian Cage

          How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?