diff options
author | Azat Bahawi <azahi@teknik.io> | 2020-11-20 23:13:14 +0300 |
---|---|---|
committer | Azat Bahawi <azahi@teknik.io> | 2020-11-20 23:13:14 +0300 |
commit | 4181e8c47883dc456db4310f42212262d5a8ad1a (patch) | |
tree | 5c4f279b290b2cd8a2ac14488bfa2e7b7df12c85 /src/XMonad/Custom/Scratchpads.hs | |
parent | Sync submodules (diff) |
bump dependencies + brittany/cabal-fmt
Diffstat (limited to '')
-rw-r--r-- | src/XMonad/Custom/Scratchpads.hs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/XMonad/Custom/Scratchpads.hs b/src/XMonad/Custom/Scratchpads.hs index 90656aa..157a1fb 100644 --- a/src/XMonad/Custom/Scratchpads.hs +++ b/src/XMonad/Custom/Scratchpads.hs @@ -8,13 +8,13 @@ -- module XMonad.Custom.Scratchpads - ( scratchpads - ) where + ( scratchpads + ) where import XMonad.Core -import XMonad.Custom.Misc as C +import XMonad.Custom.Misc as C import XMonad.ManageHook -import qualified XMonad.StackSet as S +import qualified XMonad.StackSet as S import XMonad.Util.NamedScratchpad spawnTerminalWith :: String -> String -> String @@ -22,28 +22,28 @@ spawnTerminalWith t c = term applications ++ " -title " ++ t ++ " -e " ++ c floatingNSP :: ManageHook floatingNSP = customFloating $ S.RationalRect x y w h - where - x = (1 - w) / 2 - y = (1 - h) / 2 - w = 1 / 2 - h = 1 / 2.5 + where + x = (1 - w) / 2 + y = (1 - h) / 2 + w = 1 / 2 + h = 1 / 2.5 scratchpads :: [NamedScratchpad] scratchpads = - [ NS "console" - (spawnTerminalWith "NSPConsole" "~/.xmonad/scripts/nsp-console.sh") - (title =? "NSPConsole") - floatingNSP - , NS "volume" - (spawnTerminalWith "NSPVolume" (C.mixer C.applications)) - (title =? "NSPVolume") - floatingNSP - , NS "music" - (spawnTerminalWith "NSPMusic" (C.player C.applications)) - (title =? "NSPMusic") - floatingNSP - , NS "top" - (spawnTerminalWith "NSPTop" (C.top C.applications)) - (title =? "NSPTop") - floatingNSP - ] + [ NS "console" + (spawnTerminalWith "NSPConsole" "~/.xmonad/scripts/nsp-console.sh") + (title =? "NSPConsole") + floatingNSP + , NS "volume" + (spawnTerminalWith "NSPVolume" (C.mixer C.applications)) + (title =? "NSPVolume") + floatingNSP + , NS "music" + (spawnTerminalWith "NSPMusic" (C.player C.applications)) + (title =? "NSPMusic") + floatingNSP + , NS "top" + (spawnTerminalWith "NSPTop" (C.top C.applications)) + (title =? "NSPTop") + floatingNSP + ] |