Add private browser key binding (#1324)

* Add private browser key binding

* Include other Firefox-based browsers

* Simplify implementation

* Add migration to add the hotkey

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
David Boot
2025-09-14 18:18:57 +02:00
committed by GitHub
parent b422281840
commit 8e4487ca41
3 changed files with 17 additions and 1 deletions

6
migrations/1757866485.sh Normal file
View File

@@ -0,0 +1,6 @@
echo "Add SUPER + SHIFT + B to start browser in private mode"
if [[ -f ~/.config/hypr/bindings.conf ]] && grep -q "SUPER, B, Browser, exec" ~/.config/hypr/bindings.conf; then
sed -i '/^bindd = SUPER, B, Browser, exec, \$browser$/a\
bindd = SUPER SHIFT, B, Browser (private), exec, $browser --private' ~/.config/hypr/bindings.conf
fi