Skip to content

Commit ac49ea4

Browse files
committed
home: fix waybar opening rofi, whenever I click
Waiting for Alexays/Waybar#1850 to be fixed. Workaround is ok.
1 parent c146e17 commit ac49ea4

File tree

1 file changed

+3
-2
lines changed
  • home-manager/desktop/hyprland

1 file changed

+3
-2
lines changed

home-manager/desktop/hyprland/bar.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
if pgrep -x rofi; then
1313
pkill rofi
1414
else
15-
rofi -show drun
15+
rofi -show drun -kb-cancel Super_L &
1616
fi
1717
'')
1818
];
@@ -211,7 +211,8 @@
211211
};
212212
"custom/launcher"= {
213213
format= "";
214-
on-click = "rofi_launch";
214+
# See https://github.com/Alexays/Waybar/issues/1850.
215+
on-click = "sleep 0.05 && rofi_launch";
215216
# on-click-right = "pkill rofi";
216217
tooltip= "false";
217218
};

0 commit comments

Comments
 (0)