You are not logged in.

#1 2021-09-23 10:54:57

benfrain
Member
Registered: 2021-09-23
Posts: 10

[SOLVED]Sway configuration – how to toggle uLauncher correctly?

Have Arch with SwayWM installed and added uLauncher. I can start uLauncher with `ulauncher` and it behaves as expected.

I have added the following line to my Sway config in the hope this would start uLauncher  when I use `mod+d`:

set $menu /usr/bin/ulauncher | ulauncher-toggle | xargs swaymsg exec --

This is starting uLauncher when I use `mod+d` but it immediately toggles back off, so I only see it for a split second. Does anyone know why that might be?

Last edited by benfrain (2021-09-25 13:33:04)

Offline

#2 2021-09-23 17:22:56

HaCeMei
Member
Registered: 2013-03-24
Posts: 37

Re: [SOLVED]Sway configuration – how to toggle uLauncher correctly?

Try either

 set $menu ulauncher  | xargs swaymsg exec --

or

 set $menu ulauncher-toggle | xargs swaymsg exec --

No new thing under the sun

Offline

#3 2021-09-23 19:21:44

benfrain
Member
Registered: 2021-09-23
Posts: 10

Re: [SOLVED]Sway configuration – how to toggle uLauncher correctly?

Perfect; thanks. First one worked.

Offline

#4 2021-09-25 12:26:59

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED]Sway configuration – how to toggle uLauncher correctly?

Please remember to mark your thread [SOLVED] (edit the title of your first post).


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB