This commit is contained in:
2026-03-24 13:00:41 +03:00
parent 163b7549e2
commit 5554de588b
14 changed files with 119 additions and 28 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
{
imports = [
./modules/zsh/zsh.nix
/.modules/openai.nix
./modules/openai.nix
./modules/kitty.nix
./modules/git.nix
./modules/programs.nix
+1 -1
View File
@@ -74,7 +74,7 @@
exec-once = [
"caelestia shell &"
"caelestia shell lock lock; until [ $? -eq 0 ]; do sleep 0.1; caelestia shell lock lock; done"
#"caelestia shell lock lock; until [ $? -eq 0 ]; do sleep 0.1; caelestia shell lock lock; done"
"AmneziaVPN & disown"
# "hyprlock --immediate-render --no-fade-in &"
"wal -R &"
@@ -42,8 +42,8 @@ def check_setup() -> None:
for prog in ["swww", "hyprpanel", "wal"]:
try:
subprocess.run([prog, "--version"], capture_output=True)
except FileNotFoundError:
print(f"Note: Optional program '{prog}' not found in PATH.")
except Exception as e:
print(f"{e}")
wallpaper_dir = pathlib.Path(WALLPAPERS_DIR)
if not wallpaper_dir.is_dir():
@@ -324,11 +324,12 @@ def next_wallpaper(
except FileNotFoundError:
pass
try:
subprocess.run(["hyprpanel", "-q"], check=False)
# subprocess.run(["hyprpanel", "-q"], check=False)
# restart in background
subprocess.Popen(
["hyprpanel"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)
# subprocess.Popen(
# ["hyprpanel"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
# )
pass
except FileNotFoundError:
pass
try:
+10 -2
View File
@@ -15,9 +15,17 @@
scrollback_lines = 5000;
mouse_hide_wait = 3.0;
background_opacity = "0.6";
background_opacity = "0.3";
#background_opacity = 0;
dynamic_background_opacity = "yes";
#backgroud_image = "/home/krosh/Pictures/kitty.jpg";
#backgroud_image = "kitty.jpg";
#backgroud_image = "/home/krosh/Pictures/wallpaper.png";
background_blur = 5;
#background_image_layout = "cscaled";
#background_image_linear = "yes";
background_tint = 0.8;
#background_tint_gaps = 0.5;
confirm_os_window_close = 0;
@@ -26,7 +34,7 @@
keybindings = {
"ctrl+shift+enter" = "new_window_with_cwd";
"ctrl+c" = "copy_or_interrupt";
"ctrl+c" = "copy_and_clear_or_interrupt";
"ctrl+v" = "paste_from_clipboard";
};
+8 -1
View File
@@ -6,5 +6,12 @@
f() { llm "$@" | tee >(cat) | glow --style=dark --width=100; unset -f f; }; f'';
};
home.packages = with pkgs; [ python312Packages.llm glow ];
home.packages = with pkgs; [
# python312Packages.llm
glow
(llm.withPlugins { llm-openai-plugin = true; })
];
}
+9 -6
View File
@@ -27,6 +27,9 @@
vlc
# yubikey-manager-qt
# paprefs
zed-editor
ollama
];
services.syncthing = { enable = true; };
@@ -40,13 +43,13 @@
imports = [ inputs.zen-browser.homeModules.default ];
programs.zen-browser = { enable = true; };
xdg.mimeApps = let
value = let
system = pkgs.stdenv.hostPlatform.system;
zen-browser = inputs.zen-browser.packages.${system}.default;
in zen-browser.meta.desktopFileName;
xdg.mimeApps =
let
value = "zen-beta.desktop";
associations = builtins.listToAttrs (map (name: { inherit name value; }) [
associations = builtins.listToAttrs (map (name: {
inherit name value;
}) [
"application/x-extension-shtml"
"application/x-extension-xhtml"
"application/x-extension-html"
+1
View File
@@ -7,6 +7,7 @@
matchBlocks = {
"kr0sh.ru" = {
host = "kr0sh.ru";
port = 2006;
user = "krosh";
identityFile = [ "~/.ssh/id" ];
};
+3
View File
@@ -80,6 +80,8 @@
];
};
sessionVariables = { EDITOR = "nvim"; };
shellAliases = {
ll = "ls -lh";
la = "ls -la";
@@ -177,6 +179,7 @@
printf "--- Hi, %s! ---\n" "$USER"
printf "Battery: %s%%\n" "$(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo "N/A")"
printf "Time: %s\n" "$(date +"%H:%M:%S")"
printf "Time you live: %s years :)\n" "$(python3 -c "from datetime import datetime; age_years = (datetime.now() - datetime(2006, 6, 16)).total_seconds() / (365.25 * 24 * 3600); print(f'{age_years:.10f}')")"