mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
No commits in common. "c22260ba0fd673110f054deb486faf8371822b30" and "36af1392540e4da307333073c3c54d55eea7b030" have entirely different histories.
c22260ba0f
...
36af139254
7 changed files with 15 additions and 56 deletions
|
|
@ -18,7 +18,6 @@
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
ghc
|
ghc
|
||||||
pkgs.libnotify
|
pkgs.libnotify
|
||||||
pkgs.hrt-time
|
|
||||||
]
|
]
|
||||||
}"
|
}"
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,9 @@ config =
|
||||||
|
|
||||||
, commands =
|
, commands =
|
||||||
[ Run $ DateZone "%a %d %H:%M:%S" "" "" "hereClock" (1 &second)
|
[ 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 $
|
, Run $
|
||||||
Com
|
Com
|
||||||
"tomorrow"
|
"tomorrow"
|
||||||
|
|
@ -100,7 +103,6 @@ config =
|
||||||
]
|
]
|
||||||
(6 &second)
|
(6 &second)
|
||||||
, Run $ Com "powerprofilesctl" ["get"] "" (6 &second)
|
, Run $ Com "powerprofilesctl" ["get"] "" (6 &second)
|
||||||
, Run $ Com "hrt-time" ["days"] "" (60 &minute)
|
|
||||||
, Run XMonadLog
|
, Run XMonadLog
|
||||||
, Run $
|
, Run $
|
||||||
Weather
|
Weather
|
||||||
|
|
@ -121,9 +123,15 @@ config =
|
||||||
" %XMonadLog% "
|
" %XMonadLog% "
|
||||||
<> alignSep config
|
<> alignSep config
|
||||||
<> intercalate "|"
|
<> intercalate "|"
|
||||||
[ " %RCSS% "
|
[ (unwords . map greyFg)
|
||||||
|
[ "[DUB: %dublinClock%]"
|
||||||
|
, "[CDG: %parisClock%]"
|
||||||
|
, "[TPE: %tstClock%]"
|
||||||
|
]
|
||||||
|
<> " "
|
||||||
|
, " %RCSS% "
|
||||||
, " %battery%, %powerprofilesctl%) "
|
, " %battery%, %powerprofilesctl%) "
|
||||||
, " %hereClock% (%tomorrow%, %hrt-time%) "
|
, " %hereClock% (%tomorrow%) "
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,6 @@ isElement = isFirefox <&&> title ~? "Element"
|
||||||
isFirefoxPip :: Query Bool
|
isFirefoxPip :: Query Bool
|
||||||
isFirefoxPip = isFirefox <&&> title =? "Incrustation vidéo"
|
isFirefoxPip = isFirefox <&&> title =? "Incrustation vidéo"
|
||||||
|
|
||||||
isPavucontrol :: Query Bool
|
|
||||||
isPavucontrol = className =? "pavucontrol"
|
|
||||||
|
|
||||||
isFeh :: Query Bool
|
isFeh :: Query Bool
|
||||||
isFeh = className =? "feh"
|
isFeh = className =? "feh"
|
||||||
|
|
||||||
|
|
@ -156,7 +153,6 @@ myManageHook :: ManageHook
|
||||||
myManageHook =
|
myManageHook =
|
||||||
composeAll
|
composeAll
|
||||||
[ isNautilusPreviewer --> customFloating centeredFloat
|
[ isNautilusPreviewer --> customFloating centeredFloat
|
||||||
, isPavucontrol --> customFloating centeredFloat
|
|
||||||
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
|
, isFeh --> doF copyToAll <> customFloating buttomRightFloat
|
||||||
, isMinder --> customFloating centeredFloat
|
, isMinder --> customFloating centeredFloat
|
||||||
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
|
, isFirefoxPip --> doF copyToAll <> customFloating buttomRightFloat
|
||||||
|
|
|
||||||
|
|
@ -61,14 +61,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# This is the fascist one, just block it because I can't tell
|
# This is the fascist one, just block it because I can't tell
|
||||||
0.0.0.0 nixos.wiki
|
nixos.wiki
|
||||||
|
|
||||||
# Gotta purify my smoos brain for a while
|
# Gotta purify my smoos brain for a while
|
||||||
0.0.0.0 instagram.com
|
0.0.0.0 instagram.com
|
||||||
0.0.0.0 www.instagram.com
|
0.0.0.0 www.instagram.com
|
||||||
|
|
||||||
0.0.0.0 linkedin.com
|
|
||||||
0.0.0.0 www.linkedin.com
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
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))
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
{
|
|
||||||
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";
|
domain = "git.confusedcompiler.org";
|
||||||
owner = "leana8959";
|
owner = "leana8959";
|
||||||
repo = "ruler";
|
repo = "ruler";
|
||||||
rev = "adb153af8aab6e0350e396de1f26316d97df3add";
|
rev = "0cad6d87e2e607b39fe72fc292924c069e661293";
|
||||||
hash = "sha256-8+at3h5udcLXqbsaPcQ5HMGZMd6brZ21d/VW3kSyMFw=";
|
hash = "sha256-AIjGG2FxMiojO1E8jJxBXs9ZaRy3OEAtEp5CwicllRE=";
|
||||||
}) { };
|
}) { };
|
||||||
|
|
||||||
cabalOverrides = o: {
|
cabalOverrides = o: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue