aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-03-28 22:57:25 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commit4b448be1c8c4cc1d973561f94b4527962d09bdd7 (patch)
treefc147a29518a76edd04f3140da7e8b59d821d468
parent860b066cc2d2af8f193fdb52775543210d81fa7d (diff)
downloadrde-4b448be1c8c4cc1d973561f94b4527962d09bdd7.tar.gz
rde-4b448be1c8c4cc1d973561f94b4527962d09bdd7.tar.bz2
rde-4b448be1c8c4cc1d973561f94b4527962d09bdd7.zip
Add firefox to the browsers list
-rw-r--r--src/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 0018fa2..44fb358 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -23,7 +23,6 @@ import Internal.RebindKeys
import qualified XMonad as X
import qualified XMonad.StackSet as W
-
main = do
-- Execute some commands.
@@ -37,7 +36,9 @@ main = do
(=<<) X.xmonad $
applyKeys $ ewmh $ docks $ windowHooks (composeAll [
- (className =? "Google-chrome" <||> className =? "Brave-browser") --> composeAll [
+ let browsers = ["Google-chrome", "Brave-browser", "firefox-default"] in
+
+ (flip elem browsers <$> className) --> composeAll [
-- The geniuses that made chrome decided that Ctrl+W should kill
-- the current tab! This makes it consistent with the rest of the
-- world ... ctrl+w deletes the last word (ctrl+backspace).