add shortcut for setting working directory

This commit is contained in:
Maximilian Keßler 2022-07-19 21:40:32 +02:00
parent 562c8b68fb
commit be10c83957

View file

@ -7,7 +7,7 @@ import qualified XMonad.StackSet as W
import XMonad.Custom.BindingUtils import XMonad.Custom.BindingUtils
import XMonad.Custom.TopicSpace import XMonad.Custom.TopicSpace
import XMonad.Custom.Prompt
myBasicKeyBindings :: [([Char], X ())] myBasicKeyBindings :: [([Char], X ())]
myBasicKeyBindings = addMainModifierToBinding $ myFocusBindings ++ mySwapBindings ++ myMasterBindings ++ myXMonadBindings ++ myLaunchBindings myBasicKeyBindings = addMainModifierToBinding $ myFocusBindings ++ mySwapBindings ++ myMasterBindings ++ myXMonadBindings ++ myLaunchBindings
@ -59,7 +59,8 @@ myMasterBindings = [
myXMonadBindings :: [([Char], X ())] myXMonadBindings :: [([Char], X ())]
myXMonadBindings = [ myXMonadBindings = [
("q", restartXMonad), ("q", restartXMonad),
("S-q", quitXMonad) ("S-q", quitXMonad),
("k", promptSetTopicDir myXPConfig)
] ]
where where
quitXMonad = io exitSuccess quitXMonad = io exitSuccess