Compare commits

..

No commits in common. "9fd52db5bbe0660ffc0cec22100b96cd2990c267" and "2a3142634e6b4c018b8577baac11c57c5423b40d" have entirely different histories.

9 changed files with 45 additions and 54 deletions

View file

@ -47,14 +47,7 @@ in
nix.package = pkgs.nix-monitored; nix.package = pkgs.nix-monitored;
system.nixos = system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision;
let
rev = lib.substring 0 8 sources.nixpkgs.revision;
in
{
versionSuffix = "-git:${rev}";
revision = rev;
};
} }
./hetzner_benchmark/nixos/hardware-configuration.nix ./hetzner_benchmark/nixos/hardware-configuration.nix

View file

@ -53,14 +53,7 @@ in
nix.package = pkgs.nix-monitored; nix.package = pkgs.nix-monitored;
system.nixos = system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision;
let
rev = lib.substring 0 8 sources.nixpkgs.revision;
in
{
versionSuffix = "-git:${rev}";
revision = rev;
};
} }
./hydrogen/nixos/misc.nix ./hydrogen/nixos/misc.nix

View file

@ -4,9 +4,6 @@
# figured out an elegant (enough) way to do it while keeping my secrets # figured out an elegant (enough) way to do it while keeping my secrets
# encrypted. # encrypted.
# #
let
sources = import ../../npins;
in
{ {
pkgs, pkgs,
lib, lib,
@ -44,15 +41,6 @@ in
]; ];
}; };
system.nixos =
let
rev = lib.substring 0 8 sources.nixpkgs.revision;
in
{
versionSuffix = "-git:${rev}";
revision = rev;
};
isoImage.squashfsCompression = "zstd -Xcompression-level 3"; isoImage.squashfsCompression = "zstd -Xcompression-level 3";
environment.systemPackages = [ environment.systemPackages = [

View file

@ -78,14 +78,7 @@ in
nix.package = pkgs.nix-monitored; nix.package = pkgs.nix-monitored;
system.nixos = system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision;
let
rev = lib.substring 0 8 sources.nixpkgs.revision;
in
{
versionSuffix = "-git:${rev}";
revision = rev;
};
} }
# #

View file

@ -26,6 +26,7 @@ import XMonad.Util.NamedScratchpad
import XMonad.Util.SpawnOnce import XMonad.Util.SpawnOnce
import XMonad.Layout.Magnifier import XMonad.Layout.Magnifier
import Data.Function
import Data.Char.Greek import Data.Char.Greek
import Data.Ratio import Data.Ratio
import Data.Semigroup import Data.Semigroup
@ -356,17 +357,35 @@ fullFloat = W.RationalRect 0 0 1 1
buttomRightFloat = W.RationalRect (1%2) (1%2) (1%2) (1%2) buttomRightFloat = W.RationalRect (1%2) (1%2) (1%2) (1%2)
xmobarConfig :: StatusBarConfig xmobarConfig :: StatusBarConfig
xmobarConfig = statusBarProp "xmobar -x 0" (pure myPrettyPrinter) xmobarConfig = statusBarProp "xmobar -x 0" myPrettyPrinter
where where
myPrettyPrinter :: PP mkPpCurrent :: X (String -> String)
myPrettyPrinter = mkPpCurrent = do
filterOutWsPP [scratchpadWorkspaceTag] windowCount <- gets $ length . W.integrate' . W.stack . W.workspace . W.current . windowset
$ def pure $ \wid ->
{ ppCurrent = xmobarColor "#000000" "#ffffff" . wrap " " " " wid <> (if windowCount > 1 then ":" <> show windowCount else mempty)
, ppHiddenNoWindows = xmobarColor "#9c9c9c" "" . const "" & xmobarColor "#000000" "#ffffff" . wrap " " " "
, ppHidden = xmobarColor "#ffffff" ""
, ppSep = " | " mkPpHidden :: X (String -> String)
} mkPpHidden = do
m <- gets $ M.fromList . map (\x -> (W.tag x, length . W.integrate' . W.stack $ x)) . W.hidden . windowset
pure $ \wid ->
let windowCount = m M.! wid
in wid <> (if windowCount > 1 then ":" <> show windowCount else mempty)
& xmobarColor "#ffffff" ""
myPrettyPrinter :: X PP
myPrettyPrinter = do
myPpCurrent <- mkPpCurrent
myPpHidden <- mkPpHidden
pure
$ filterOutWsPP [scratchpadWorkspaceTag]
$ def
{ ppCurrent = myPpCurrent
, ppHiddenNoWindows = xmobarColor "#9c9c9c" "" . const ""
, ppHidden = myPpHidden
, ppSep = " | "
}
myScratchpads :: [NamedScratchpad] myScratchpads :: [NamedScratchpad]
myScratchpads = myScratchpads =

View file

@ -29,11 +29,13 @@ in
"eBay" "eBay"
"Perplexity" "Perplexity"
]; ];
Default = "DuckDuckGo Lite"; Default = "Brave";
Add = [ Add = [
{ {
Name = "DuckDuckGo Lite"; Name = "Brave";
URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}"; Alias = "@br";
URLTemplate = "https://search.brave.com/search?&summary=0&q={searchTerms}&source=web";
SuggestURLTemplate = "https://suggestqueries.google.com/complete/search?q={searchTerms}";
} }
]; ];
}; };

View file

@ -29,11 +29,13 @@ in
"eBay" "eBay"
"Perplexity" "Perplexity"
]; ];
Default = "DuckDuckGo Lite"; Default = "Brave";
Add = [ Add = [
{ {
Name = "DuckDuckGo Lite"; Name = "Brave";
URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}"; Alias = "@br";
URLTemplate = "https://search.brave.com/search?&summary=0&q={searchTerms}&source=web";
SuggestURLTemplate = "https://suggestqueries.google.com/complete/search?q={searchTerms}";
} }
]; ];
}; };

View file

@ -11,8 +11,8 @@ let
domain = "git.confusedcompiler.org"; domain = "git.confusedcompiler.org";
owner = "leana8959"; owner = "leana8959";
repo = "ruler"; repo = "ruler";
rev = "2556b4985065d093b1db3a14a2c5c37115871c78"; rev = "52d8b95245aec702ec4105bcb040ea44771a77bc";
hash = "sha256-OvNhDpyAbZp+d0rSXLE55BvM5jT3OI8q79D6aVaA2FI="; hash = "sha256-UIpt8NPEyVM2BR0WAhAv66XvpVj124odzzAC6tpTZVU=";
}) { }; }) { };
cabalOverrides = o: { cabalOverrides = o: {

View file

@ -26,6 +26,7 @@ pkgs.mkShell {
self.xmonad-extras self.xmonad-extras
self.xmobar self.xmobar
])) ]))
haskell-language-server
cabal-install cabal-install
]; ];
} }