Biont / sway-launcher-desktop

TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
GNU General Public License v3.0
606 stars 28 forks source link

Not floating #36

Closed fuzunspm closed 3 years ago

fuzunspm commented 3 years ago

By default config, it's not floating unless i manually switch to floating

swaymsg -t get_tree | grep app_id

won't output launcher

.config

set $term termite
set $menu exec $term --class=launcher -e sway-launcher-desktop
bindsym $mod+d exec $menu
for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10
skrat commented 3 years ago

Same issue

skrat commented 3 years ago

I was only able to get this work with termite -t some-title then matching on title

Biont commented 3 years ago

You can check what window_properties to match against with swaymsg -t get_tree | grep -C 10 launcher (or something more fancy using jq). In my case, it looks like this with URxvt:

              "window_properties": {
                "class": "URxvt",
                "instance": "launcher",
                "title": "env",
                "transient_for": null
              }

Consequently, I actually have this in my config: for_window [class="URxvt" instance="launcher"] floating enable, border pixel 10, sticky enable.

See if that helps you and please report what worked for you so I can update the README

skrat commented 3 years ago

For termite, you can use --name=foo and that will result in app_id=foo

fuzunspm commented 3 years ago

thanks for the suggestions