Reorganized my xmonad.org

This commit is contained in:
Emmet 2023-05-09 16:21:22 -05:00
parent c6dc7aef60
commit 396c8cd9d8

View file

@ -1,7 +1,7 @@
#+title: Xmonad Config #+title: Xmonad Config
#+author: librephoenix #+author: librephoenix
* XMonad * XMonad Config
The main configuration file for XMonad is [[./xmonad.hs][~/.xmonad/xmonad.hs]]. The main configuration file for XMonad is [[./xmonad.hs][~/.xmonad/xmonad.hs]].
** Imports ** Imports
First I import a bunch of libraries: First I import a bunch of libraries:
@ -885,12 +885,12 @@ main = do
startupHook = myStartupHook startupHook = myStartupHook
} }
#+END_SRC #+END_SRC
* XMobar * XMobar Config
I utilize xmobar as a status bar on one of my monitors. To manage my xmobar configs, three main files are used: I utilize xmobar as a status bar on my monitors. To manage my xmobar configs, three main files are used:
- [[./base-xmobarrc][base-xmobarrc]] which contains the structure of my xmobar config - [[./base-xmobarrc][base-xmobarrc]] which contains the structure of my xmobar config
- [[./startup.sh][startup.sh]] which has a section which generates a copy of my xmobarrcs for the current color scheme I set in [[./xmonad.hs][xmonad.hs]] - [[./startup.sh][startup.sh]] which has a section which generates a copy of my xmobarrcs for the current color scheme I set in [[./xmonad.hs][xmonad.hs]]
** Base xmobarrc ** Base xmobarrc
This is my base xmobarrc. This also depends on =Inconsolata= and =Symbols Nerd Font=. This is my base xmobarrc. This is a full xmobar config with placeholders for the colors (i.e. =colorFgNormal=, =colorBgNormal=, =color01Normal=, =color01Bright=, etc...). [[./startup.sh][startup.sh]] copies this into =xmobarrc= with my current base16 color scheme. This also depends on =Inconsolata= and =Symbols Nerd Font=.
#+BEGIN_SRC haskell :tangle base-xmobarrc #+BEGIN_SRC haskell :tangle base-xmobarrc
Config { font = "Inconsolata 18" Config { font = "Inconsolata 18"
, additionalFonts = ["Symbols Nerd Font 14"] , additionalFonts = ["Symbols Nerd Font 14"]
@ -938,3 +938,14 @@ Config { font = "Inconsolata 18"
} }
#+END_SRC #+END_SRC
* Nix Integration
In order to have Nix put my xmonad/xmobar configuration in the proper places, I have [[./xmonad.nix][xmonad.nix]], which I source in the =imports= block of my [[../../home.nix][home.nix]].
#+BEGIN_SRC nix :tangle xmonad.nix
{ config, pkgs, ... }:
{
home.file.".config/xmonad/xmonad.hs".source = ./xmonad.hs;
home.file.".config/xmobar/base-xmobarrc".source = ./base-xmobarrc;
home.file.".config/xmonad/startup.sh".source = ./startup.sh;
}
#+END_SRC