From b0ad81e7ba9407cc49b245f4f32d94495f86421c Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 20 May 2022 21:45:12 +0530 Subject: Modularised my XMonad Config --- .config/XMonad/lib/Defaults.hs | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .config/XMonad/lib/Defaults.hs (limited to '.config/XMonad/lib/Defaults.hs') diff --git a/.config/XMonad/lib/Defaults.hs b/.config/XMonad/lib/Defaults.hs new file mode 100644 index 0000000..34d81e9 --- /dev/null +++ b/.config/XMonad/lib/Defaults.hs @@ -0,0 +1,42 @@ +module Defaults where + +import XMonad +import XMonad.Layout.Spacing +import XMonad.Layout.Tabbed + +-- variables +myModMask = mod4Mask +altMask = mod1Mask +myLockscreen = "notify-send 'to be set up!' 'to be set up!'" +myColorPicker = "colorpicker --short --one-shot --preview | xsel -b" +myFont = "xft:Sauce Code Pro:style=Regular:size=14" +volUp = "pamixer -i 5" +volDown = "pamixer -d 5" +volMute = "pamixer -t" +backlightUp = "brightnessctl s +5" +backlightDown = "brightnessctl s 5-" +screenshot = "flameshot screen" +fullScreenshot = "flameshot full" +customScreenshot = "flameshot gui" + +-- workspaces +myExtraWorkspaces = [(xK_0, "十")] -- , (xK_comma, " 十一 "), (xK_period, " 十二 "), (xK_slash, " 十三 ")] +myWorkspaces = ["一", "二", "三", "四", "五", "六", "七", "八", "九"] ++ map snd myExtraWorkspaces + +-- screen gaps +sGap = 4 +wGap = 6 + +myGap = spacingRaw True (Border sGap sGap sGap sGap) True (Border wGap wGap wGap wGap) True +myGap' = spacingRaw False (Border sGap sGap sGap sGap) True (Border wGap wGap wGap wGap) True + +myTabTheme = def { + fontName = myFont + , activeColor = "#755999" + , inactiveColor = "#282c35" + , activeBorderColor = "#755999" + , inactiveBorderColor = "#313846" + , activeTextColor = "#FFFFFF" + , inactiveTextColor = "#d0d0d0" + , decoHeight = 20 + } -- cgit v1.2.3