From ddc4e5710969b8c99877ab9ff0080922e8ea282a Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Sun, 4 Jun 2023 16:28:33 +0100
Subject: [PATCH] feat(sway): add binding to open a browser

---
 config/sway/config | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/config/sway/config b/config/sway/config
index 66a8db62..a948ab8b 100644
--- a/config/sway/config
+++ b/config/sway/config
@@ -22,6 +22,8 @@ set $term alacritty
 # on the original workspace that the command was run on.
 set $menu wofi --show run
 
+set $browser firefox
+
 ### Output configuration
 #
 # Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/)
@@ -88,6 +90,8 @@ exec swayidle -w \
     # Start your launcher
     bindsym $mod+d exec $menu
 
+    bindsym $mod+Shift+b exec $browser
+
     # Drag floating windows by holding down $mod and left mouse button.
     # Resize them with right mouse button + $mod.
     # Despite the name, also works for non-floating windows.