This commit is contained in:
2026-08-05 02:57:59 +01:00
parent a93ff98461
commit e79146364c
6 changed files with 60 additions and 45 deletions
+8 -3
View File
@@ -56,7 +56,7 @@
# "npm:@vanillagreen/pi-qol"
"npm:pi-vitals"
"npm:pi-spark"
"npm:pi-caveman"
# "npm:pi-caveman"
"npm:@tmustier/pi-usage-extension"
"npm:@heyhuynhgiabuu/pi-pretty"
"npm:pi-lens"
@@ -64,6 +64,8 @@
# "npm:@rohaquinlop/pi-deepseek-cache"
"npm:pi-cache-optimizer"
"npm:pi-opencode-go-cache"
"npm:@pi-vault/pi-dcp"
"git:github.com/DietrichGebert/ponytail"
];
};
context = ''
@@ -108,6 +110,7 @@
rightSegments = [
"separator"
"cost"
"model_cost"
"context_pct"
];
icons = {
@@ -124,6 +127,7 @@
cacheWrite = "";
contextPct = "";
cost = "$";
modelCost = "(in/out)";
separator = "";
};
colors = {
@@ -138,6 +142,7 @@
contextWarn = "warning";
contextError = "error";
cost = "text";
modelCost = "text";
tokens = "muted";
separator = "dim";
};
@@ -188,12 +193,12 @@
home.file.".pi/agent/extensions/model-filter.ts" = {
source = ./model-filter.ts;
};
# Show model cost in status bar
home.file.".pi/agent/extensions/model-cost.ts" = {
source = ./model-cost.ts;
};
# Model filter config: per-provider filters applied by model-filter.ts
home.file.".pi/agent/model-filters.json" = {
text = builtins.toJSON {
+9 -5
View File
@@ -54,11 +54,15 @@
xdg.configFile."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm" = {
text = ''{"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"}'';
};
wayland.windowManager.hyprland.settings = lib.mkIf settings.default {
binds = [
"$mainMod, E, exec, helium"
];
};
wayland.windowManager.hyprland.extraLuaFiles = lib.mkIf settings.default {
"helium-bind.lua" = {
autoLoad = true;
content = ''
-- Helium launcher bind (lua config: settings.bind cannot express dispatchers)
hl.bind("SUPER + E", hl.dsp.exec_cmd("helium"))
'';
};
};
};
};
}
+13 -11
View File
@@ -173,24 +173,21 @@
"-- Window rules"
"hl.window_rule({ suppress_event = \"maximize\" })"
"hl.window_rule({ match = { class = \"gamescope\" }, workspace = \"5\", immediate = true, confine_pointer = true })"
"hl.window_rule({ match = { class = \"steam\" }, workspace = \"6 silent\" })"
"hl.window_rule({ match = { class = \"vesktop\" }, workspace = \"8 silent\" })"
"hl.window_rule({ match = { class = \"org.telegram.desktop\" }, workspace = \"8 silent\" })"
"hl.window_rule({ match = { class = \"com.obsproject.Studio\" }, workspace = \"10 silent\" })"
"hl.window_rule({ match = { initial_title = \"OBS Studio Crash Detected\" }, pin = true })"
"hl.window_rule({ match = { initial_title = \"Discord Popout\" }, workspace = \"1 silent\" })"
""
"-- Layer rules"
"hl.layer_rule({ match = { namespace = \"notifications\" }, no_screen_share = true })"
""
"-- Host-specific overrides"
"-- Host-specific overrides: load ~/.config/hypr/hyprland-local.lua if present (must be valid Lua)"
"local home = os.getenv(\"HOME\")"
"if home then"
" local f = io.open(home .. '/.config/hypr/hyprland-local.lua', 'r')"
" local localPath = home .. '/.config/hypr/hyprland-local.lua'"
" local f = io.open(localPath, 'r')"
" if f then"
" _ = f:close()"
" local config = loadfile(home .. '/.config/hypr/hyprland-local.lua')"
" if config then config() end"
" f:close()"
" local chunk, err = loadfile(localPath)"
" if chunk then chunk() else io.stderr:write('hyprland-local.lua error: ' .. err .. '\\n') end"
" end"
"end"
]
@@ -232,8 +229,13 @@
# partOf = [ "hyprland-session.target" ];
# after = [ "hyprland-session.target" ];
# };
xdg.configFile."hypr/hyprland.lua" = {
source = pkgs.writeText "hyprland.lua" hlBindCode;
# Hand-written config as extraLuaFile so Home Manager still
# generates hypr/hyprland.lua itself, including the systemd
# session activation hooks (hyprland-session.target start/stop
# + dbus-update-activation-environment --systemd --all).
wayland.windowManager.hyprland.extraLuaFiles."hl-main.lua" = {
autoLoad = true;
content = hlBindCode;
};
};
};
+9 -5
View File
@@ -42,11 +42,15 @@
];
in
{
wayland.windowManager.hyprland.settings = lib.mkIf settings.default {
bind = [
"$mainMod, E, exec, zen"
];
};
wayland.windowManager.hyprland.extraLuaFiles = lib.mkIf settings.default {
"zen-browser-bind.lua" = {
autoLoad = true;
content = ''
-- Zen launcher bind (lua config: settings.bind cannot express dispatchers)
hl.bind("SUPER + E", hl.dsp.exec_cmd("zen"))
'';
};
};
home.packages = [
(pkgs.wrapFirefox
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped