mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
5 commits
36af139254
...
c22260ba0f
| Author | SHA1 | Date | |
|---|---|---|---|
| c22260ba0f | |||
| 530977a139 | |||
| 8e7cfef3f2 | |||
| 70e7b70875 | |||
| f2ab0ac3a3 |
7 changed files with 56 additions and 15 deletions
|
|
@ -18,6 +18,7 @@
|
|||
lib.makeBinPath [
|
||||
ghc
|
||||
pkgs.libnotify
|
||||
pkgs.hrt-time
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -62,9 +62,6 @@ config =
|
|||
|
||||
, commands =
|
||||
[ Run $ DateZone "%a %d %H:%M:%S" "" "" "hereClock" (1 &second)
|
||||
, Run $ DateZone "%H:%M" "" "Europe/Dublin" "dublinClock" (10 &second)
|
||||
, Run $ DateZone "%H:%M" "" "Europe/Paris" "parisClock" (10 &second)
|
||||
, Run $ DateZone "%H:%M" "" "Asia/Taipei" "tstClock" (10 &second)
|
||||
, Run $
|
||||
Com
|
||||
"tomorrow"
|
||||
|
|
@ -103,6 +100,7 @@ config =
|
|||
]
|
||||
(6 &second)
|
||||
, Run $ Com "powerprofilesctl" ["get"] "" (6 &second)
|
||||
, Run $ Com "hrt-time" ["days"] "" (60 &minute)
|
||||
, Run XMonadLog
|
||||
, Run $
|
||||
Weather
|
||||
|
|
@ -123,15 +121,9 @@ config =
|
|||
" %XMonadLog% "
|
||||
<> alignSep config
|
||||
<> intercalate "|"
|
||||
[ (unwords . map greyFg)
|
||||
[ "[DUB: %dublinClock%]"
|
||||
, "[CDG: %parisClock%]"
|
||||
, "[TPE: %tstClock%]"
|
||||
]
|
||||
<> " "
|
||||
, " %RCSS% "
|
||||
[ " %RCSS% "
|
||||
, " %battery%, %powerprofilesctl%) "
|
||||
, " %hereClock% (%tomorrow%) "
|
||||
, " %hereClock% (%tomorrow%, %hrt-time%) "
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ isElement = isFirefox <&&> title ~? "Element"
|
|||
isFirefoxPip :: Query Bool
|
||||
isFirefoxPip = isFirefox <&&> title =? "Incrustation vidéo"
|
||||
|
||||
isPavucontrol :: Query Bool
|
||||
isPavucontrol = className =? "pavucontrol"
|
||||
|
||||
isFeh :: Query Bool
|
||||
isFeh = className =? "feh"
|
||||
|
||||
|
|
@ -153,6 +156,7 @@ myManageHook :: ManageHook
|
|||
myManageHook =
|
||||
composeAll
|
||||
[ isNautilusPreviewer --> customFloating centeredFloat
|
||||
, isPavucontrol --> customFloating centeredFloat
|
||||
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
|
||||
, isMinder --> customFloating centeredFloat
|
||||
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
|
||||
|
|
|
|||
|
|
@ -61,11 +61,14 @@
|
|||
#
|
||||
|
||||
# This is the fascist one, just block it because I can't tell
|
||||
nixos.wiki
|
||||
0.0.0.0 nixos.wiki
|
||||
|
||||
# Gotta purify my smoos brain for a while
|
||||
0.0.0.0 instagram.com
|
||||
0.0.0.0 www.instagram.com
|
||||
|
||||
0.0.0.0 linkedin.com
|
||||
0.0.0.0 www.linkedin.com
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
11
nix/packages/by-name/hrt-time/my-day.patch
Normal file
11
nix/packages/by-name/hrt-time/my-day.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
diff --git a/hrt-time.sh b/hrt-time.sh
|
||||
index d9811dd..f37aa6f 100755
|
||||
--- a/hrt-time.sh
|
||||
+++ b/hrt-time.sh
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
secondsNow=$(date +%s)
|
||||
-secondsThen=$(date -d "october 17 2024 19:00" +%s)
|
||||
+secondsThen=$(date -d "november 12 2021" +%s)
|
||||
seconds=$((secondsNow - secondsThen))
|
||||
30
nix/packages/by-name/hrt-time/package.nix
Normal file
30
nix/packages/by-name/hrt-time/package.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
}:
|
||||
let
|
||||
rev = "b344ab770e4c08d0bb13c38ea61979b282e24db7";
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "hrt-time";
|
||||
version = "unstable-" + lib.substring 0 8 rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ariannelafraise";
|
||||
repo = "hrt-time";
|
||||
inherit rev;
|
||||
hash = "sha256-+AhLkcCETVnF6S+ov1oKxhs3M9F6ghyyERoLN3aMMxw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp hrt-time.sh $out/bin/hrt-time
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./my-day.patch
|
||||
];
|
||||
|
||||
meta.mainProgram = "hrt-time";
|
||||
}
|
||||
|
|
@ -11,8 +11,8 @@ let
|
|||
domain = "git.confusedcompiler.org";
|
||||
owner = "leana8959";
|
||||
repo = "ruler";
|
||||
rev = "0cad6d87e2e607b39fe72fc292924c069e661293";
|
||||
hash = "sha256-AIjGG2FxMiojO1E8jJxBXs9ZaRy3OEAtEp5CwicllRE=";
|
||||
rev = "adb153af8aab6e0350e396de1f26316d97df3add";
|
||||
hash = "sha256-8+at3h5udcLXqbsaPcQ5HMGZMd6brZ21d/VW3kSyMFw=";
|
||||
}) { };
|
||||
|
||||
cabalOverrides = o: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue