aboutsummaryrefslogtreecommitdiff
path: root/src/Internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/Internal')
-rw-r--r--src/Internal/DMenu.hs14
-rw-r--r--src/Internal/Keys.hs10
2 files changed, 21 insertions, 3 deletions
diff --git a/src/Internal/DMenu.hs b/src/Internal/DMenu.hs
index f964544..b611d87 100644
--- a/src/Internal/DMenu.hs
+++ b/src/Internal/DMenu.hs
@@ -16,9 +16,17 @@ data Colors =
bg :: String
} | DefaultColors
+menuCommand :: [String]
+menuCommand = ["rofi", "-monitor", "-4", "-dmenu"]
+
+menuCommandString :: String
+menuCommandString = unwords menuCommand
+
runDMenu :: X ()
runDMenu = void $
- safeSpawn "rofi" ["-display-run", "Execute", "-show", "run"]
+ safeSpawn
+ "rofi"
+ ["-monitor", "-4", "-display-run", "Execute", "-show", "run"]
runDMenuPrompt :: String -> Maybe String -> [String] -> X String
runDMenuPrompt prompt color select =
@@ -34,5 +42,5 @@ runDMenuPromptWithMap :: String -> Maybe String -> Map String a -> X (Maybe a)
runDMenuPromptWithMap prompt color map = do
let realColor = maybe [] (
\c -> ["-theme-str", printf "* {theme-color: %s;}" c]) color
- menuMapArgs "rofi"
- (["-p", prompt, "-dmenu"] ++ realColor) map
+ menuMapArgs (head menuCommand)
+ (tail menuCommand ++ ["-p", prompt] ++ realColor) map
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs
index bf9b62c..51a1453 100644
--- a/src/Internal/Keys.hs
+++ b/src/Internal/Keys.hs
@@ -228,6 +228,9 @@ keymap = runKeys $ do
str
(show (map ord str))
+ bind xK_n $ do
+ (justMod -|- noMod) $ spawn (terminal config ++ " -t Notes -e notes new")
+
bind xK_c $ do
shiftMod CopyWindow.killAllOtherCopies
@@ -237,6 +240,13 @@ keymap = runKeys $ do
bind xK_a $
(justMod -|- noMod) $ spawn "set-sink.sh"
+
+ bind xK_w $
+ (justMod -|- noMod) $ spawn "networkmanager_dmenu"
+
+ bind xK_v $ do
+ (justMod -|- noMod) $ spawn "set-volume.sh"
+ (shiftMod -|- rawMask shiftMask) $ spawn "set-volume.sh -a"
-- Double-tap Z to toggle zoom.