From 1a6f4f18f334bb1380b70f252922b852b31ca254 Mon Sep 17 00:00:00 2001 From: sajenim Date: Tue, 2 May 2023 03:11:50 +0800 Subject: [PATCH] remove xmobar-config --- pkgs/default.nix | 1 - pkgs/xmobar-config/default.nix | 9 ----- pkgs/xmobar-config/src/xmobar-top.hs | 47 -------------------------- pkgs/xmobar-config/xmobar-config.cabal | 17 ---------- 4 files changed, 74 deletions(-) delete mode 100644 pkgs/xmobar-config/default.nix delete mode 100644 pkgs/xmobar-config/src/xmobar-top.hs delete mode 100644 pkgs/xmobar-config/xmobar-config.cabal diff --git a/pkgs/default.nix b/pkgs/default.nix index 4a60de9..8c5e910 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,5 +3,4 @@ { pkgs ? (import ../nixpkgs.nix) { } }: { # example = pkgs.callPackage ./example { }; - xmobar = pkgs.callPackage ./xmobar-config { }; } diff --git a/pkgs/xmobar-config/default.nix b/pkgs/xmobar-config/default.nix deleted file mode 100644 index 53db48d..0000000 --- a/pkgs/xmobar-config/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ pkgs }: - -pkgs.haskellPackages.developPackage { - root = ./.; - modifier = drv: - pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; - [ cabal-install ] - ); -} diff --git a/pkgs/xmobar-config/src/xmobar-top.hs b/pkgs/xmobar-config/src/xmobar-top.hs deleted file mode 100644 index 64424fa..0000000 --- a/pkgs/xmobar-config/src/xmobar-top.hs +++ /dev/null @@ -1,47 +0,0 @@ -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 = 1920, 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 %H:%M:%S" "date" 10 - , Run $ Weather "YPJT" - [ "-t", "Temp: C | Wind: km/h | Humidity: %" ] - 18000 - ] - -- format our bar - , sepChar = "%" - , alignSep = "}{" - , template = "\59255 %uname% |%_XMONAD_LOG_1%}{%YPJT% | %date%" - } - --- | 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 diff --git a/pkgs/xmobar-config/xmobar-config.cabal b/pkgs/xmobar-config/xmobar-config.cabal deleted file mode 100644 index 034e834..0000000 --- a/pkgs/xmobar-config/xmobar-config.cabal +++ /dev/null @@ -1,17 +0,0 @@ -cabal-version: 3.0 -name: xmobar-config -version: 0.1.0.0 -description: xmobar configs -author: sajenim -maintainer: its.jassy@pm.me -license: BSD-3-Clause -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 -