diff --git a/.config/xmobar/xmobar-laptop.config b/.config/xmobar/xmobar-laptop.config index 2a68f85..f745f3e 100644 --- a/.config/xmobar/xmobar-laptop.config +++ b/.config/xmobar/xmobar-laptop.config @@ -16,14 +16,16 @@ Config { font = "xft:monospace" , allDesktops = True , overrideRedirect = True , commands = [ - Run Cpu ["-L","3","-H","50", "--normal","green","--high","red"] 10 + Run Cpu ["-L","3","-H","50"] 5 , Run Memory ["-t","Mem: %"] 10 , Run Swap [] 10 , Run Com "uname" ["-s","-r"] "" 36000 + , Run Weather "EDDN" [ "-t",": °C, " ] 900 , Run Date "%H:%M - %d.%m.%Y" "date" 10 - , Run Wireless "wlp1s0" [ "-t", "" ] 10 + , Run DynNetwork [ "-S","True","-t", ": , " ] 15 + , Run Volume "default" "Master" [] 2 , Run Battery [ - "-t", ": % ", + "-t", ": % - ", "--", --"-c", "charge_full", "-O", "AC", @@ -34,6 +36,6 @@ Config { font = "xft:monospace" ] , sepChar = "%" , alignSep = "}{" - , template = " %cpu% | %memory% * %swap% }\ - \{ %wlp1s0wi% | %battery% | %date% | %uname% " + , template = " %cpu% | %memory% | %swap% | %battery% | %default:Master% }\ + \{ %dynnetwork% | %EDDN% | %date% | %uname% " } diff --git a/.xmonad/xmonad-laptop.hs b/.xmonad/xmonad-laptop.hs index c8110e6..6283ab2 100644 --- a/.xmonad/xmonad-laptop.hs +++ b/.xmonad/xmonad-laptop.hs @@ -32,15 +32,17 @@ myFocusFollowsMouse = True myClickJustFocuses :: Bool myClickJustFocuses = False -myBorderWidth = 5 - myModMask = mod4Mask myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] +myBorderWidth = 5 myNormalBorderColor = "#dddddd" myFocusedBorderColor = "#ff8700" +-- screen spacing, then window spacing +mySpacing x y = spacingRaw False (Border x x x x) True (Border y y y y) True + myKeys :: [(String, X ())] myKeys = [ -- spawning keybindings @@ -63,6 +65,12 @@ myKeys = [ ("M-" , windows W.focusDown), ("M-S-" , windows W.focusMaster), + -- spacing keybindings + ("M4-S-" , incWindowSpacing 1), + ("M4-S-" , decWindowSpacing 1), + ("M1-S-" , incScreenSpacing 1), + ("M1-S-" , decScreenSpacing 1), + -- brightness keybindings ("" , spawn "light -A 2"), ("" , spawn "light -U 2"), @@ -100,9 +108,11 @@ myMouseBindings (XConfig {XMonad.modMask = modm}) = -- you may also bind events to the mouse scroll wheel (button4 and button5) ] -myLayout = spacing 12 $ avoidStruts (tiled ||| Mirror tiled ||| Full) + + +myLayoutHook = avoidStruts (tiled ||| Mirror tiled ||| Full) where - tiled = Tall nmaster delta ratio + tiled = mySpacing 32 8 $ Tall nmaster delta ratio nmaster = 1 ratio = 1/2 delta = 3/100 @@ -115,7 +125,8 @@ myEventHook = mempty myLogHook = return () -myStartupHook = return () +myStartupHook = do + spawnOnce "xsetroot -cursor_name left_ptr" main = do xmproc0 <- spawnPipe "nitrogen --restore" @@ -137,7 +148,7 @@ defaults = def { mouseBindings = myMouseBindings, -- hooks - layoutHook = myLayout, + layoutHook = myLayoutHook, manageHook = myManageHook, handleEventHook = myEventHook, logHook = myLogHook, diff --git a/scripts/basic-setup b/scripts/basic-setup index 4869d26..3aa2ecf 100755 --- a/scripts/basic-setup +++ b/scripts/basic-setup @@ -34,6 +34,7 @@ ipkg yay # setup git ipkg git ipkg libsecret +ipkg gnome-keyring git config --global credential.helper /usr/lib/git-core/git-credential-libsecret