Compare commits

...

6 commits

Author SHA1 Message Date
ItsDrike e52008cf2c
flake: update 2024-08-01 13:13:47 +02:00
ItsDrike 092ad13727
flake: update 2024-07-31 23:36:30 +02:00
ItsDrike 31da020c32
zsh: Optimize up loading shell completions 2024-07-31 23:36:19 +02:00
ItsDrike f765e8935b
eww: Avoid newlines in window name 2024-07-31 23:16:32 +02:00
ItsDrike e1818d2abd
Add vdhcoapp 2024-07-29 18:54:15 +02:00
ItsDrike e344135588
Add webp image association 2024-07-29 18:50:09 +02:00
5 changed files with 34 additions and 17 deletions

View file

@ -304,11 +304,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722067813, "lastModified": 1722462338,
"narHash": "sha256-nxpzoKXwn+8RsxpxwD86mtEscOMw64ZD/vGSNWzGMlA=", "narHash": "sha256-ss0G8t8RJVDewA3MyqgAlV951cWRK6EtVhVKEZ7J5LU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "975b83ca560d17db51a66cb2b0dc0e44213eab27", "rev": "6e090576c4824b16e8759ebca3958c5b09659ee8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -389,11 +389,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721874161, "lastModified": 1722479120,
"narHash": "sha256-w0/TnOrm3w2t+fX7aY3PsxyrmXDk7IDZkvTNpQfFf1o=", "narHash": "sha256-P0fXZvYT56dKd5Zjuao4uQqgw9YFZ5AE2V31f4iluXI=",
"owner": "nixpak", "owner": "nixpak",
"repo": "nixpak", "repo": "nixpak",
"rev": "4e7ff8dfbf4143b429a5d389ba28c098255b36ca", "rev": "c53bd63c6851f6972fb1f1f192e608775fb54a9f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -430,11 +430,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1721924956, "lastModified": 1722185531,
"narHash": "sha256-Sb1jlyRO+N8jBXEX9Pg9Z1Qb8Bw9QyOgLDNMEpmjZ2M=", "narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5ad6a14c6bf098e98800b091668718c336effc95", "rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -603,11 +603,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722053480, "lastModified": 1722485526,
"narHash": "sha256-DG1jdoSIcRLkQvCs63MSMJmssHTwm4zGOmP3hUtAzSY=", "narHash": "sha256-bIO63IKm8Frw9lLCqthj/fYphS0i3oGCfw1Lkh5HkPI=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "e954f700aeaeb1b4df261c68c2391089f655fac8", "rev": "e42c13fcca982699b5b56da962a474401c109228",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -654,11 +654,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722092938, "lastModified": 1722436631,
"narHash": "sha256-Tr/B0RnPnQjMBLtk30Fno8gZhpJ72hvdKOH4gJ0s1A8=", "narHash": "sha256-CdmXKOgRnPIg7H8Cc8PKmw9+l3yJF3xP83tZ7a9i7kQ=",
"owner": "abenz1267", "owner": "abenz1267",
"repo": "walker", "repo": "walker",
"rev": "4bf1dece38bf7d5dc0260e54d63d99b8077a6df8", "rev": "b21d226d9ec6e379b13b633515af301d223cedcd",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -97,6 +97,7 @@ def main() -> None:
formatted_name = new_name formatted_name = new_name
break break
formatted_name = formatted_name.split("\n")[0]
if len(formatted_name) > MAX_LENGTH: if len(formatted_name) > MAX_LENGTH:
formatted_name = formatted_name[: MAX_LENGTH - 3] + "..." formatted_name = formatted_name[: MAX_LENGTH - 3] + "..."

View file

@ -13,5 +13,9 @@ in {
enable = true; enable = true;
# TODO: Finish this # TODO: Finish this
}; };
home.packages = with pkgs; [
vdhcoapp # video download helper plugin companion app
];
}; };
} }

View file

@ -2,7 +2,18 @@
autoload -Uz compinit autoload -Uz compinit
zmodload -i zsh/complist # load completion list zmodload -i zsh/complist # load completion list
compinit -d $ZSH_COMPDUMP # Specify compdump file
if [[ -n "$(print ${ZDOTDIR:-$HOME}/.zcompdump(Nmh+5))" ]]; then
# Re-check for new completions, re-creating .zcompdump if necessary.
# This check can be quite slow and it's rare that we actually have new completions to load.
# For that reason, we only do this if the compdump file is older than 5 hours.
compinit
else
# This will omit the check for new completions,
# only re-creating .zcompdump if it doesn't yet exist.
compinit -C
fi
zstyle ':completion:*' menu select # select completions with arrow keys zstyle ':completion:*' menu select # select completions with arrow keys
zstyle ':completion:*' group-name '' # group results by category zstyle ':completion:*' group-name '' # group results by category
zstyle ':completion:::::' completer _expand _complete _ignored _approximate #enable approximate matches for completion zstyle ':completion:::::' completer _expand _complete _ignored _approximate # enable approximate matches for completion

View file

@ -34,6 +34,7 @@ in {
"image/jpeg" = [imageViewer]; "image/jpeg" = [imageViewer];
"image/jpg" = [imageViewer]; "image/jpg" = [imageViewer];
"image/png" = [imageViewer]; "image/png" = [imageViewer];
"image/webp" = [imageViewer];
"image/tiff" = [imageViewer]; "image/tiff" = [imageViewer];
"image/x-bmp" = [imageViewer]; "image/x-bmp" = [imageViewer];
"image/x-pcx" = [imageViewer]; "image/x-pcx" = [imageViewer];