From 7948dc60c27c9f246b1727b5b80a7977a5f1e784 Mon Sep 17 00:00:00 2001 From: sajenim Date: Tue, 2 May 2023 09:32:33 +0800 Subject: [PATCH] move xmobar-jsm to submodule --- .gitmodules | 3 + home-manager/jade/xmobar/xmobar-jsm | 1 + home-manager/jade/xmobar/xmobar-jsm/LICENSE | 28 ------- home-manager/jade/xmobar/xmobar-jsm/README.md | 1 - .../jade/xmobar/xmobar-jsm/flake.lock | 80 ------------------- home-manager/jade/xmobar/xmobar-jsm/flake.nix | 46 ----------- .../jade/xmobar/xmobar-jsm/src/xmobar-top.hs | 47 ----------- .../jade/xmobar/xmobar-jsm/xmobar-jsm.cabal | 21 ----- 8 files changed, 4 insertions(+), 223 deletions(-) create mode 160000 home-manager/jade/xmobar/xmobar-jsm delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/LICENSE delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/README.md delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/flake.lock delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/flake.nix delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/src/xmobar-top.hs delete mode 100644 home-manager/jade/xmobar/xmobar-jsm/xmobar-jsm.cabal diff --git a/.gitmodules b/.gitmodules index a1ade89..7951d61 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "home-manager/jade/xmonad/xmonad-jsm"] path = home-manager/jade/xmonad/xmonad-jsm url = git@github.com:sajenim/xmonad-jsm.git +[submodule "home-manager/jade/xmobar/xmobar-jsm"] + path = home-manager/jade/xmobar/xmobar-jsm + url = git@github.com:sajenim/xmobar-jsm.git diff --git a/home-manager/jade/xmobar/xmobar-jsm b/home-manager/jade/xmobar/xmobar-jsm new file mode 160000 index 0000000..29a52ad --- /dev/null +++ b/home-manager/jade/xmobar/xmobar-jsm @@ -0,0 +1 @@ +Subproject commit 29a52ad859b46eb8fdd08993c953a45c1cab1c93 diff --git a/home-manager/jade/xmobar/xmobar-jsm/LICENSE b/home-manager/jade/xmobar/xmobar-jsm/LICENSE deleted file mode 100644 index 300d3bb..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2023, sajenim - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/home-manager/jade/xmobar/xmobar-jsm/README.md b/home-manager/jade/xmobar/xmobar-jsm/README.md deleted file mode 100644 index 0548c77..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/README.md +++ /dev/null @@ -1 +0,0 @@ -# xmobar-jsm diff --git a/home-manager/jade/xmobar/xmobar-jsm/flake.lock b/home-manager/jade/xmobar/xmobar-jsm/flake.lock deleted file mode 100644 index 93ce87a..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/flake.lock +++ /dev/null @@ -1,80 +0,0 @@ -{ - "nodes": { - "flake-parts": { - "inputs": { - "nixpkgs-lib": "nixpkgs-lib" - }, - "locked": { - "lastModified": 1680392223, - "narHash": "sha256-n3g7QFr85lDODKt250rkZj2IFS3i4/8HBU2yKHO3tqw=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "dcc36e45d054d7bb554c9cdab69093debd91a0b5", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "haskell-flake": { - "locked": { - "lastModified": 1682714267, - "narHash": "sha256-DsGj9AIKqKcWQQOuwbFU77rkehaICzISHhH7aezZ6OQ=", - "owner": "srid", - "repo": "haskell-flake", - "rev": "a904caac3e4638f84a28102762bf767dd1ae50c0", - "type": "github" - }, - "original": { - "owner": "srid", - "repo": "haskell-flake", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1682779028, - "narHash": "sha256-tFfSbwSLobpHRznAa35KEU3R+fsFWTlmpFhTUdXq8RE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "54abe781c482f51ff4ff534ebaba77db5bd97442", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-lib": { - "locked": { - "dir": "lib", - "lastModified": 1680213900, - "narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "e3652e0735fbec227f342712f180f4f21f0594f2", - "type": "github" - }, - "original": { - "dir": "lib", - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "flake-parts": "flake-parts", - "haskell-flake": "haskell-flake", - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/home-manager/jade/xmobar/xmobar-jsm/flake.nix b/home-manager/jade/xmobar/xmobar-jsm/flake.nix deleted file mode 100644 index 252f28b..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/flake.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; - flake-parts.url = "github:hercules-ci/flake-parts"; - haskell-flake.url = "github:srid/haskell-flake"; - }; - outputs = inputs@{ self, nixpkgs, flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } { - systems = nixpkgs.lib.systems.flakeExposed; - imports = [ inputs.haskell-flake.flakeModule ]; - - perSystem = { self', pkgs, ... }: { - - # Typically, you just want a single project named "default". But - # multiple projects are also possible, each using different GHC version. - haskellProjects.default = { - # If you have a .cabal file in the root, this option is determined - # automatically. Otherwise, specify all your local packages here. - # packages.example.root = ./.; - - # The base package set representing a specific GHC version. - # By default, this is pkgs.haskellPackages. - # You may also create your own. See https://haskell.flake.page/package-set - # basePackages = pkgs.haskellPackages; - - # Dependency overrides go here. See https://haskell.flake.page/dependency - # source-overrides = { }; - # overrides = self: super: { }; - - # devShell = { - # # Enabled by default - # enable = true; - # - # # Programs you want to make available in the shell. - # # Default programs can be disabled by setting to 'null' - # tools = hp: { fourmolu = hp.fourmolu; ghcid = null; }; - # - # hlsCheck.enable = true; - # }; - }; - - # haskell-flake doesn't set the default package, but you can do it here. - packages.default = self'.packages.xmobar-jsm; - }; - }; -} diff --git a/home-manager/jade/xmobar/xmobar-jsm/src/xmobar-top.hs b/home-manager/jade/xmobar/xmobar-jsm/src/xmobar-top.hs deleted file mode 100644 index 64424fa..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/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/home-manager/jade/xmobar/xmobar-jsm/xmobar-jsm.cabal b/home-manager/jade/xmobar/xmobar-jsm/xmobar-jsm.cabal deleted file mode 100644 index fd4de83..0000000 --- a/home-manager/jade/xmobar/xmobar-jsm/xmobar-jsm.cabal +++ /dev/null @@ -1,21 +0,0 @@ -cabal-version: 3.0 -name: xmobar-jsm -version: 0.1.0.0 -synopsis: A Minimalistic Text Based Status Bar -description: my xmobar configuration -license: BSD-3-Clause -license-file: LICENSE -author: sajenim -maintainer: its.jassy@pm.me -homepage: https://github.com/sajenim/jade -build-type: Simple -extra-source-files: README.md - -executable xmobar-top - main-is: xmobar-top.hs - hs-source-dirs: src - ghc-options: -Wall -threaded - build-depends: base, - xmobar - default-language: Haskell2010 -