mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 11:00:27 +10:00
Adding new colorscheme variables to config.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
- [[#about-this-config][About This Config]]
|
||||
- [[#imports][Imports]]
|
||||
- [[#variables][Variables]]
|
||||
- [[#color-scheme][Color Scheme]]
|
||||
- [[#autostart-the-startup-hook][Autostart (The Startup Hook)]]
|
||||
- [[#gridselect][Gridselect]]
|
||||
- [[#scratchpads][Scratchpads]]
|
||||
@@ -105,6 +104,19 @@ import XMonad.Util.EZConfig (additionalKeysP)
|
||||
import XMonad.Util.NamedScratchpad
|
||||
import XMonad.Util.Run (runProcessWithInput, safeSpawn, spawnPipe)
|
||||
import XMonad.Util.SpawnOnce
|
||||
|
||||
-- ColorScheme module (SET ONLY ONE!)
|
||||
-- Possible choice are:
|
||||
-- DoomOne
|
||||
-- Dracula
|
||||
-- GruvboxDark
|
||||
-- MonokaiPro
|
||||
-- Nord
|
||||
-- OceanicNext
|
||||
-- SolarizedDark
|
||||
-- SolarizedLight
|
||||
-- TomorrowNight
|
||||
import Colors.DoomOne
|
||||
#+END_SRC
|
||||
|
||||
* Variables
|
||||
@@ -143,32 +155,6 @@ windowCount :: X (Maybe String)
|
||||
windowCount = gets $ Just . show . length . W.integrate' . W.stack . W.workspace . W.current . windowset
|
||||
#+END_SRC
|
||||
|
||||
* Color Scheme
|
||||
Set the color scheme for xmobar.
|
||||
#+begin_src haskell
|
||||
-- Set the color scheme. The following are valid color schemes:
|
||||
-- doom-one
|
||||
-- dracula
|
||||
-- gruvbox-dark
|
||||
-- monokai-pro
|
||||
-- nord
|
||||
-- oceanic-next
|
||||
-- solarized-dark
|
||||
-- solarized-light
|
||||
-- tomorrow-night
|
||||
|
||||
colorScheme :: String
|
||||
colorScheme = "doom-one"
|
||||
|
||||
colorCurrent01 = "#c792ea"
|
||||
colorVisible01 = "#c792ea"
|
||||
colorHidden01 = "#82aaff"
|
||||
colorHiddenNW01 = "#82aaff"
|
||||
colorTitle01 = "#b3afc2"
|
||||
colorSep01 = "#b3afc2"
|
||||
colorUrgent01 = "#c45500"
|
||||
#+end_src
|
||||
|
||||
* Autostart (The Startup Hook)
|
||||
These are commands we want XMonad to execute on startup, such as running a compositor, setting our wallpaper, starting the emacs daemon, and starting our system tray and the applications that belong in it.
|
||||
|
||||
@@ -656,21 +642,21 @@ main = do
|
||||
>> hPutStrLn xmproc1 x -- xmobar on monitor 2
|
||||
>> hPutStrLn xmproc2 x -- xmobar on monitor 3
|
||||
-- Current workspace
|
||||
, ppCurrent = xmobarColor colorCurrent01 "" . wrap
|
||||
("<box type=Bottom width=2 mb=2 color=" ++ colorCurrent01 ++ ">") "</box>"
|
||||
, ppCurrent = xmobarColor color06 "" . wrap
|
||||
("<box type=Bottom width=2 mb=2 color=" ++ color06 ++ ">") "</box>"
|
||||
-- Visible but not current workspace
|
||||
, ppVisible = xmobarColor colorVisible01 "" . clickable
|
||||
, ppVisible = xmobarColor color06 "" . clickable
|
||||
-- Hidden workspace
|
||||
, ppHidden = xmobarColor colorHidden01 "" . wrap
|
||||
("<box type=Top width=2 mt=2 color=" ++ colorHidden01 ++ ">") "</box>" . clickable
|
||||
, ppHidden = xmobarColor color05 "" . wrap
|
||||
("<box type=Top width=2 mt=2 color=" ++ color05 ++ ">") "</box>" . clickable
|
||||
-- Hidden workspaces (no windows)
|
||||
, ppHiddenNoWindows = xmobarColor colorHiddenNW01 "" . clickable
|
||||
, ppHiddenNoWindows = xmobarColor color05 "" . clickable
|
||||
-- Title of active window
|
||||
, ppTitle = xmobarColor colorTitle01 "" . shorten 60
|
||||
, ppTitle = xmobarColor color16 "" . shorten 60
|
||||
-- Separator character
|
||||
, ppSep = "<fc=" ++ colorSep01 ++ "> <fn=1>|</fn> </fc>"
|
||||
, ppSep = "<fc=" ++ color09 ++ "> <fn=1>|</fn> </fc>"
|
||||
-- Urgent workspace
|
||||
, ppUrgent = xmobarColor colorUrgent01 "" . wrap "!" "!"
|
||||
, ppUrgent = xmobarColor color02 "" . wrap "!" "!"
|
||||
-- Adding # of windows on current workspace to the bar
|
||||
, ppExtras = [windowCount]
|
||||
-- order of things in xmobar
|
||||
|
||||
Reference in New Issue
Block a user