[SOLVED] How to Add a Tray in herbstluftwm

Forum › Forums › New users › New Users and General Questions › [SOLVED] How to Add a Tray in herbstluftwm

  • This topic has 21 replies, 7 voices, and was last updated Sep 4-8:50 am by keshav-uses-linux.
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #180668
    keshav-uses-linux
    Member

      hlwm is my preferred WM. If you’re asking about a systray, then you can add a tray to polybar through one of its modules

      yeah, but i wanted to stick to the stock dzen2 for now just because of the hassle to learn a whole new program with it’s seperate config vocabullary and language.
      really appriciative of the wishes and the advices you gave which is rare to find in these forums!

      #180669
      keshav-uses-linux
      Member

        For a system tray, you can also use trayer (from the Debian repos), which is just nothing but a system tray, so it can be laid on top of dzen or whatever panel you use that doesn’t otherwise provide a system tray.

        thanks that seems very appealing as it can work by laying itself on top of the dzen2 window.

        So, i tried it and added this in my pannel.sh

        sudo apt install trayer
        

        ~/.config/herbstluftwm/panel.sh

        trayer --edge top --align right --margin 0 --height 16 --width 100 --widthtype pixel --distancefrom right --distance 160 --iconspacing 7 --padding 5
        

        this gave me an app tray with the height of the defualt pannel that comes with antix linux, herbstulfwm config

        • This reply was modified 1 year, 2 months ago by keshav-uses-linux.
        • This reply was modified 1 year, 2 months ago by keshav-uses-linux.
        #180673
        keshav-uses-linux
        Member

          Do have you tried what @chndz suggested?

          yeah, i very well do tried it! so what now?

          • This reply was modified 1 year, 2 months ago by keshav-uses-linux.
          #180678
          blur13
          Member

            Also, if you really lean on keybindings for your workflow, you can incorporate sxhkd into your hlwm config. This allows program-specific keybindings to have a dedicated configuration space (allows keychords like emacs) while your windowmanager-specific keybindings remain in the hlwm config file.

            Sorry for the off-topic, but this caught my attention. Could you elaborate on this? Having wm-specific keybindings hijacking program specific keyboard shortcuts is a bit annoying.

            #180685
            anticapitalista
            Forum Admin

              Do have you tried what @chndz suggested?

              yeah, i very well do tried it! so what now?

              Did it do what you want?
              Why have you marked the thread as solved?

              Later – OK you posted the answer in the first post.
              Glad to know you found a solution.

              Philosophers have interpreted the world in many ways; the point is to change it.

              antiX with runit - leaner and meaner.

              #180687
              keshav-uses-linux
              Member

                Later – OK you posted the answer in the first post.
                Glad to know you found a solutio

                Moral of the Story sometime i feel like people don’t understand how usefull and Convinent an Simple and concise thread is in a situation of hurry. I request all forum people to think about new users in a hurry searching for a problem on google and landing on a thread litter with unnecessary replies and paragraphs of text that doesn’t actually solve the problem directly. what a hellscape it must be

                • This reply was modified 1 year, 2 months ago by keshav-uses-linux.
                #184980
                keshav-uses-linux
                Member

                  So, on reboot, the stalonetray doesn’t seems to load even though its added to the “~/.config/herbstluftwm/pannel.sh” file.
                  when i start it from cli, it works but not on reboot?

                Viewing 7 posts - 16 through 22 (of 22 total)
                • You must be logged in to reply to this topic.