Compare commits

...

5 commits

Author SHA1 Message Date
Schrottkatze 3c11d4177b
flake.lock: Update
Flake lock file updates:

• Updated input 'crane':
    'github:ipetkov/crane/852a59f9672c3413d75bca2b3e9cb4c661cacfc3' (2024-08-03)
  → 'github:ipetkov/crane/4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4' (2024-08-06)
• Updated input 'fenix':
    'github:nix-community/fenix/0caa626457f1f4f8273a89775bf9081b7fc09823' (2024-08-04)
  → 'github:nix-community/fenix/d5f1b280af93acddbcce948d946bb5db2f8035fe' (2024-08-09)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/aa00ddcf654a35ba0eafe17247cf189958d33182' (2024-08-02)
  → 'github:rust-lang/rust-analyzer/dab022fb3127466e47e29e40769b11174b3e0ac3' (2024-08-08)
• Updated input 'helix-inline-diags':
    'github:helix-editor/helix/0a4432b104099534f7a25b8ea4148234db146ab6' (2024-08-02)
  → 'github:helix-editor/helix/e604d9f8e0fea2223a357be7c9dc6088daef47e7' (2024-08-09)
• Updated input 'home-manager':
    'github:nix-community/home-manager/afc892db74d65042031a093adb6010c4c3378422' (2024-08-02)
  → 'github:nix-community/home-manager/b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e' (2024-08-07)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d04953086551086b44b6f3c6b7eeb26294f207da' (2024-08-02)
  → 'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
• Updated input 'nixpkgs-unstable-small':
    'github:NixOS/nixpkgs/e17a38ddc27fc9c7a81b986c5866f83238d8b23e' (2024-08-03)
  → 'github:NixOS/nixpkgs/0048951e7a3eba3dce8bf6ba893390d29375c5d0' (2024-08-09)
2024-08-09 20:04:42 +02:00
Schrottkatze 2582b3796e
add command to find out when next the event is 2024-08-09 20:04:02 +02:00
Schrottkatze f07c54346b
remove zellij autostart and add keyboard shortcut for it 2024-08-09 20:02:59 +02:00
Schrottkatze e603b5ecd5
add event counter to shell startup 2024-08-09 20:02:08 +02:00
Schrottkatze bb3ed01418
new window in same dir 2024-08-09 20:01:46 +02:00
4 changed files with 79 additions and 31 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1721842668, "lastModified": 1722960479,
"narHash": "sha256-k3oiD2z2AAwBFLa4+xfU+7G5fisRXfkvrMTCJrjZzXo=", "narHash": "sha256-NhCkJJQhD5GUib8zN9JrmYGMwt4lCRp6ZVNzIiYCl0Y=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "529c1a0b1f29f0d78fa3086b8f6a134c71ef3aaf", "rev": "4c6c77920b8d44cd6660c1621dea6b3fc4b4c4f4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -28,11 +28,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1722320953, "lastModified": 1723185066,
"narHash": "sha256-DfGaJtgrzcwPQYLTvjL1KaVIjpvi85b2MpM6yEGvJzM=", "narHash": "sha256-u7guFfIrfspwUp6/SEWCDhs2tVoE1fcgft0Fw7LdNEU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "483df76def3e5010d709aa3a0418ba2088503994", "rev": "d5f1b280af93acddbcce948d946bb5db2f8035fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -104,11 +104,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1722305447, "lastModified": 1723218034,
"narHash": "sha256-2jG85FHBhKeoF8vNUkCHflrliuC8HCaMOzmERct9imc=", "narHash": "sha256-I6hMy00IkfQRcKVFVciHcZcCvuPmdnW/f58Xkstl13Y=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "ce809fb9ef4c5af59b5401419a2e8ae6964c8229", "rev": "e604d9f8e0fea2223a357be7c9dc6088daef47e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -124,11 +124,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1722321190, "lastModified": 1723015306,
"narHash": "sha256-WeVWVRqkgrbLzmk6FfJoloJ7Xe7HWD27Pv950IUG2kI=", "narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4fcd54df7cbb1d79cbe81209909ee8514d6b17a4", "rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -140,11 +140,11 @@
"lix": { "lix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1722357433, "lastModified": 1722484894,
"narHash": "sha256-bv8oI8t46KXY6elO4n0R9P3SPBLtuJFMYm0oDxLD/90=", "narHash": "sha256-mmbf3xFov+q8h+44xx3jI/RQnIqhSbVa6ljWYV/jF3c=",
"rev": "97a389b0bee7baf2d445121afa6ec84bef3a4bd7", "rev": "a3ab2cc78a736109435f3cc8e1364fcc366c6c97",
"type": "tarball", "type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/97a389b0bee7baf2d445121afa6ec84bef3a4bd7.tar.gz" "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/a3ab2cc78a736109435f3cc8e1364fcc366c6c97.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@ -161,11 +161,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720695775, "lastModified": 1722485024,
"narHash": "sha256-8Oqzl9QPjEe/n8y0R2tC6+2v/H6xBgABHXOJwxmnBg0=", "narHash": "sha256-+7RReWaFQUO8MfAhJYNm4FkALuM3rPGy2AlXXv9Jmc8=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "d70318fb946a0e720dfdd1fb10b0645c14e2a02a", "rev": "e350380d72f94035c309e19fda2fd550f6ab7376",
"revCount": 94, "revCount": 102,
"type": "git", "type": "git",
"url": "https://git.lix.systems/lix-project/nixos-module" "url": "https://git.lix.systems/lix-project/nixos-module"
}, },
@ -205,11 +205,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1722185531, "lastModified": 1722813957,
"narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=", "narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d", "rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -235,11 +235,11 @@
}, },
"nixpkgs-unstable-small": { "nixpkgs-unstable-small": {
"locked": { "locked": {
"lastModified": 1722309256, "lastModified": 1723197662,
"narHash": "sha256-Eqlu/hisMWE51b9YeKqehNaHLPhZOmkFkrx+VzI5YcM=", "narHash": "sha256-NSvqhZYv0LY2eh0a3yoAvJjGlWeOLSjmPpivSnY9pXg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3fcada1050e3820241590679838954bacf7d38f8", "rev": "0048951e7a3eba3dce8bf6ba893390d29375c5d0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -265,11 +265,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1722262053, "lastModified": 1723124382,
"narHash": "sha256-KxjkPVn9rQqYam6DhiN/V2NcMXtYW25maxkJoiVMpmE=", "narHash": "sha256-WdJYEBlc8qsif+y4qnkjaeEpDmOZhz8qA6i/2n1q2kw=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "a021b85be57d34b1eed687fcafd5d5ec64b2d853", "rev": "dab022fb3127466e47e29e40769b11174b3e0ac3",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,6 +5,9 @@
name = "FiraCode Nerd Font"; name = "FiraCode Nerd Font";
size = 11; size = 11;
}; };
keybindings = {
"ctrl+shift+n" = "new_os_window_with_cwd";
};
settings = { settings = {
#adjust_column_width = "70%"; #adjust_column_width = "70%";
color0 = "#282828"; color0 = "#282828";

View file

@ -335,6 +335,27 @@ $env.config = {
] ]
keybindings: [ keybindings: [
################################################################################
# Custom keybinds #
################################################################################
{
name: undo_change
modifier: control
keycode: char_z
mode: [vi_normal, vi_insert]
event: [
{ edit: Clear }
{
edit: InsertString
value: "zellij attach main -c"
}
{ send: Enter }
]
}
################################################################################
# Default keybinds #
################################################################################
{ {
name: completion_menu name: completion_menu
modifier: none modifier: none
@ -810,7 +831,7 @@ def start_zellij [] {
} }
} }
start_zellij # start_zellij
# plugin add nu_plugin_net # plugin add nu_plugin_net
# plugin add nu_plugin_gstat # plugin add nu_plugin_gstat
@ -858,6 +879,16 @@ def typed [
mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done" mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done"
} }
def nev [ unit = day ] {
( ( open Docs/dates.csv
| update datetime {|it| $it.datetime | into datetime }
| first
).datetime - (date now)
)
| into duration
| format duration $unit
}
alias gnix = cd ~/nix-configs; alias gnix = cd ~/nix-configs;
alias grepo = cd ~/Documents/repos; alias grepo = cd ~/Documents/repos;
alias wh = wormhole-rs; alias wh = wormhole-rs;

View file

@ -48,7 +48,21 @@ def flag [
def main [] { def main [] {
print (flag $TRANS); print (flag $TRANS);
print $"(ansi attr_bold) Hi jade, you're on HRT for ((date now) - ('2024-02-18T20:53' | into datetime) | format duration month)s now!"; let next_events = open ~/Docs/dates.csv
| update datetime {|ev| $ev.datetime | into datetime }
| sort-by datetime
| first
| each {|ev| $"(ansi attr_bold)($ev.event)(ansi reset) in (ansi attr_bold)(tfmt ($ev.datetime - (date now)))s(ansi reset)" };
print $"Hi jade, you're on HRT for (ansi reset)(ansi attr_bold)((date now) - ('2024-02-18T20:53' | into datetime) | format duration month)s(ansi reset) now! | Next Event: ($next_events)";
# print (flag $LESBIAN); # print (flag $LESBIAN);
} }
def tfmt [dur: duration] {
if ($dur < 1hr) {
return ($dur | format duration min);
} else if ($dur < 1day) {
return ($dur | format duration hr);
} else {
return ($dur | format duration day);
}
}