Regenerated

This commit is contained in:
2026-04-20 18:32:02 +02:00
parent d687b79111
commit d80aed8478
5 changed files with 360 additions and 496 deletions
+360 -360
View File
File diff suppressed because it is too large Load Diff
@@ -1,47 +0,0 @@
#!/usr/bin/env bash
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
# Auto-adjust scrolling column width based on window count
# Widths: 1 window = fullscreen (handled by hyprland)
# 2 windows = 0.5 each
# 3+ windows = 0.329 each
get_window_count() {
local ws_id=$1
hyprctl clients -j | jq "[.[] | select(.workspace.id == $ws_id)] | length"
}
get_active_workspace() {
hyprctl activeworkspace -j | jq -r '.id'
}
set_column_width() {
local width=$1
hyprctl dispatch layoutmsg "colresize all $width"
}
handle_event() {
local event=$1
case "$event" in
openwindow*|closewindow*|movewindow*)
ws_id=$(get_active_workspace)
count=$(get_window_count "$ws_id")
if [ "$count" -le 1 ]; then
# fullscreen_on_one_column handles this
:
elif [ "$count" -eq 2 ]; then
set_column_width 0.5
else
set_column_width 0.329
fi
;;
esac
}
# Listen to hyprland socket events
socket="/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
socat -U - "UNIX-CONNECT:$socket" | while read -r line; do
handle_event "$line"
done
@@ -1,28 +0,0 @@
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ pkgs, lib, ... }:
{
environment.systemPackages = [ pkgs.onlyoffice-desktopeditors ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "corefonts" ];
fonts.packages = with pkgs; [
corefonts
];
# Automatically copy corefonts to ~/.local/share/fonts for ONLYOFFICE
systemd.user.services.onlyoffice-fonts = {
description = "Copy corefonts to user font directory for ONLYOFFICE";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
script = ''
mkdir -p $HOME/.local/share/fonts
cp -f ${pkgs.corefonts}/share/fonts/truetype/* $HOME/.local/share/fonts/
chmod 644 $HOME/.local/share/fonts/*
${pkgs.fontconfig}/bin/fc-cache -f $HOME/.local/share/fonts
'';
};
}
@@ -1,10 +0,0 @@
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ ... }:
let
username = "henrov";
in
{
environment.systemPackages = [ nordvpn ];
services.nordvpnd.enable = true;
users.users.${username}.extraGroups = [ "nordvpn" ];
}
@@ -1,51 +0,0 @@
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
{ lib, pkgs, flakeRoot,... }:
let
aliasFile = "${flakeRoot}/generated/assets/aliases.conf";
content = builtins.readFile aliasFile;
lines =
lib.filter (l: l != "")
(map (l:
let
noComment = builtins.head (lib.splitString "#" l);
in lib.trim noComment
) (lib.splitString "\n" content));
parseLine = line:
let
parts = lib.splitString "=" line;
in
if lib.length parts < 2 then null else {
name = lib.head parts;
value = lib.concatStringsSep "=" (lib.tail parts);
};
parsed =
lib.filter (x: x != null)
(map parseLine lines);
functions =
lib.concatStringsSep "\n"
(map (x: ''
${x.name}() {
${x.value} "$@"
}
'') parsed);
in
{
environment.etc."profile.d/99-alias-functions.sh".text = ''
# system-wide functions generated from aliases.conf
${functions}
'';
environment.shellInit = ''
source /etc/profile
'';
interactiveShellInit = ''
source /etc/profile.d/99-alias-functions.sh
'';
}