@@ 0,0 1,20 @@
+#!/bin/sh
+
+xrandr --output eDP-1 --dpi 204
+
+trayer --edge top --align right --SetDockType true --SetPartialStrut true \
+ --expand true --transparent true --alpha 0 --tint 0x000000 --width 10 --height 50 &
+
+feh --bg-fill --no-fehbg ~/.wallpaper.jpg
+
+xscreensaver -no-splash &
+
+xfce4-power-manager &
+
+dunst &
+
+if [ -x /usr/bin/nm-applet ] ; then
+ nm-applet --sm-disable &
+fi
+
+exec xmonad
@@ 0,0 1,45 @@
+Config { overrideRedirect = False
+ , font = "xft:Berkeley Mono-20"
+ , bgColor = "#000000"
+ , fgColor = "#ffffff"
+ , position = TopSize L 90 50
+ , commands = [ Run Cpu
+ [ "--template", "c: <total>%"
+ , "-L", "3"
+ , "-H", "50"
+ , "--high" , "#ff5f59"
+ , "--normal", "#44bc44"
+ ] 10
+ , Run Alsa "default" "Master"
+ [ "--template", "v: <volumestatus>"
+ , "--suffix" , "True"
+ , "--"
+ , "--on", ""
+ ]
+ , Run Battery
+ [ "--template" , "b: <acstatus>"
+ , "--Low" , "10"
+ , "--High" , "80"
+ , "--low" , "#ff5f59"
+ , "--normal" , "#fec43f"
+ , "--high" , "#44bc44"
+
+ , "--" -- battery specific options
+ -- discharging status
+ , "-o"
+ , "<left>% (<timeleft>)"
+ -- AC "on" status
+ , "-O"
+ , "Charging"
+ -- charged status
+ , "-i"
+ , "Charged"
+ ] 50
+ , Run Mpris2 "mpd" ["-t", "<artist> - <title>"] 10
+ , Run Date "%a %d <fc=#feacd0>%H:%M</fc>" "date" 10
+ , Run XMonadLog
+ ]
+ , sepChar = "%"
+ , alignSep = "}{"
+ , template = "%XMonadLog% }{ %battery% | %alsa:default:Master% | %cpu% | %mpris2% | %date% "
+ }
@@ 0,0 1,60 @@
+import XMonad
+
+import XMonad.Util.EZConfig
+import XMonad.Util.Ungrab
+
+import XMonad.Layout.ThreeColumns
+import XMonad.Layout.NoBorders
+import XMonad.Layout.Spacing
+import XMonad.Layout.Renamed
+
+import XMonad.Hooks.EwmhDesktops
+import XMonad.Hooks.DynamicLog
+import XMonad.Hooks.StatusBar
+import XMonad.Hooks.StatusBar.PP
+
+main :: IO ()
+main = xmonad
+ . ewmhFullscreen
+ . ewmh
+ . withEasySB (statusBarProp "xmobar" (pure myXmobarPP)) defToggleStrutsKey
+ $ myConfig
+
+myConfig = def
+ { modMask = mod4Mask -- rebind mod to super
+ , layoutHook = myLayout
+ , terminal = "alacritty"
+ , borderWidth = 4
+ , normalBorderColor = "#000000"
+ , focusedBorderColor = "#feacd0"
+ }
+ `additionalKeysP`
+ [ ("M-S-z" , spawn "xscreensaver-command -lock")
+ , ("M-C-s" , unGrab *> spawn "scrot -s")
+ , ("M-f" , spawn "firefox")
+ -- volume keys
+ , ("<XF86AudioRaiseVolume>" , spawn "pactl set-sink-volume 0 +5%")
+ , ("<XF86AudioLowerVolume>" , spawn "pactl set-sink-volume 0 -5%")
+ , ("<XF86AudioMute>" , spawn "pactl set-sink-mute 0 toggle")
+ -- media keys
+ , ("<XF86AudioPlay>" , spawn "playerctl play-pause")
+ , ("<XF86AudioNext>" , spawn "playerctl next")
+ , ("<XF86AudioPrev>" , spawn "playerctl previous")
+ ]
+
+myLayout = tiled ||| full ||| threeCol
+ where
+ tiled = renamed [Replace "[]="] . smartSpacing 8 . smartBorders $ Tall nmaster delta ratio
+ threeCol = renamed [Replace "=|="] . smartSpacing 8 . smartBorders $ ThreeColMid nmaster delta ratio
+ full = renamed [Replace "[z]"] $ smartBorders Full
+ nmaster = 1
+ ratio = 1/2
+ delta = 3/100
+
+myXmobarPP :: PP
+myXmobarPP = def
+ { ppCurrent = xmobarColor "#feacd0" "" . wrap "[" "]"
+ , ppTitle = xmobarColor "#d0d0d0" "" . shorten 30
+ , ppVisible = wrap "(" ")"
+ , ppUrgent = xmobarColor "#ff5f59" "#7a6100"
+ }