setup custom xmobar package
This commit is contained in:
parent
1170a10612
commit
5c20a15385
6 changed files with 5 additions and 139 deletions
5
pkgs/xmobar-config/default.nix
Normal file
5
pkgs/xmobar-config/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.haskellPackages.developPackage {
|
||||
root = ./.;
|
||||
}
|
47
pkgs/xmobar-config/src/xmobar-top.hs
Normal file
47
pkgs/xmobar-config/src/xmobar-top.hs
Normal file
|
@ -0,0 +1,47 @@
|
|||
import Xmobar
|
||||
|
||||
-- | Configuration
|
||||
config :: Config
|
||||
config = defaultConfig
|
||||
-- general settings
|
||||
{ font = "Fira Code Semi Bold 9"
|
||||
, additionalFonts = [ "Symbols Nerd Font 2048-em 24" ]
|
||||
, bgColor = bg1
|
||||
, fgColor = fg0
|
||||
, position = Static { xpos = 0, ypos = 0, width = 2560, height = 24 }
|
||||
-- commands to run
|
||||
, commands =
|
||||
[ Run $ XPropertyLog "_XMONAD_LOG_1"
|
||||
, Run $ Com "uname" ["-r","-s"] "" 0
|
||||
, Run $ Date "%a %b %_d %Y <fc=#d8a657>%H:%M:%S</fc>" "date" 10
|
||||
, Run $ Weather "YPJT"
|
||||
[ "-t", "Temp: <fc=#d3869b><tempC>C</fc> <fc=#7c6f64>|</fc> Wind: <fc=#a9b665><windKmh>km/h</fc> <fc=#7c6f64>|</fc> Humidity: <fc=#e78a4e><rh>%</fc>" ]
|
||||
18000
|
||||
]
|
||||
-- format our bar
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = "<hspace=6/><fn=1>\59255</fn> <fc=#a9b665>%uname%</fc> <fc=#7c6f64>|</fc>%_XMONAD_LOG_1%}{%YPJT% <fc=#7c6f64>|</fc> %date%<hspace=6/>"
|
||||
}
|
||||
|
||||
-- | Gruvbox material
|
||||
bg0, bg1, fg0, fg1, red, orange, yellow, green, aqua, blue, purple :: String
|
||||
-- backgrounds
|
||||
bg0 = "#1d2021"
|
||||
bg1 = "#282828"
|
||||
-- foregrounds
|
||||
fg0 = "#d4be98"
|
||||
fg1 = "#ddc7a1"
|
||||
-- greys
|
||||
grey0 = "#7c6f64"
|
||||
-- colors
|
||||
red = "#ea6962"
|
||||
orange = "#e78a4e"
|
||||
yellow = "#d8a658"
|
||||
green = "#a9b665"
|
||||
aqua = "#89b482"
|
||||
blue = "#7daea3"
|
||||
purple = "#d3869b"
|
||||
|
||||
main :: IO ()
|
||||
main = configFromArgs config >>= xmobar
|
18
pkgs/xmobar-config/xmobar-config.cabal
Normal file
18
pkgs/xmobar-config/xmobar-config.cabal
Normal file
|
@ -0,0 +1,18 @@
|
|||
cabal-version: 3.0
|
||||
name: xmobar-config
|
||||
version: 0.1.0.0
|
||||
synopsis: A Minimalistic Text Based Status Bar
|
||||
description: my xmobar configuration
|
||||
license: BSD-3-Clause
|
||||
author: sajenim
|
||||
maintainer: its.jassy@pm.me
|
||||
build-type: Simple
|
||||
|
||||
executable xmobar-top
|
||||
main-is: xmobar-top.hs
|
||||
hs-source-dirs: src
|
||||
ghc-options: -Wall -threaded
|
||||
build-depends: base,
|
||||
xmobar
|
||||
default-language: Haskell2010
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue