Compare commits
8 commits
e9a1461924
...
96a2acd8cd
Author | SHA1 | Date | |
---|---|---|---|
96a2acd8cd | |||
f8a322ca8e | |||
78deecc427 | |||
554b573699 | |||
db11ba184c | |||
1e19aa996b | |||
e16b9be120 | |||
9a23089b23 |
9 changed files with 21 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
# Thanks @ kloenk (@kloenk@catcatnya.com) for making this for me at MRMCD 2024 :33
|
||||
{pkgs, ...}: let
|
||||
{pkgs-stable, ...}: let
|
||||
caDir = "/var/lib/easyroam";
|
||||
uuid = "821ad781-76a3-447f-a2e8-c7f18a1df3bc";
|
||||
in {
|
||||
|
@ -7,7 +7,7 @@ in {
|
|||
requires = ["NetworkManager.service"];
|
||||
after = ["NetworkManager.service"];
|
||||
requiredBy = ["network-online.target"];
|
||||
path = with pkgs; [networkmanager openssl gnused];
|
||||
path = with pkgs-stable; [networkmanager openssl gnused];
|
||||
script = ''
|
||||
set -x
|
||||
openssl pkcs12 -password pass: -in ${caDir}/my_easyroam_cert.p12 -legacy -nokeys | openssl x509 > ${caDir}/easyroam_client_cert.pem
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
:exclusive true
|
||||
:geometry (geometry
|
||||
:width "100%"
|
||||
:height "32px"
|
||||
:height "33px"
|
||||
:anchor "bottom center")
|
||||
(bottomBar))
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
:exclusive true
|
||||
:geometry (geometry
|
||||
:width "100%"
|
||||
:height "32px"
|
||||
:height "33px"
|
||||
:anchor "top center")
|
||||
(topBar))
|
||||
|
||||
|
|
|
@ -8,12 +8,14 @@
|
|||
domain = "forge.katzen.cafe";
|
||||
owner = "schrottkatze";
|
||||
repo = "typst-configs";
|
||||
rev = "3a09cd374f0508c8e0c5d95f5ad7358adc50bafa";
|
||||
rev = "569cd8525a85878140baf5952597f27fd7ea51d3";
|
||||
sha256 = "sha256-4pAammwrFGhpSquEsh4QSd8Hw/ioHm3fMiC5oqNgbAQ=";
|
||||
};
|
||||
flow = pkgs.fetchFromGithub {
|
||||
flow = pkgs.fetchFromGitHub {
|
||||
owner = "MultisampledNight";
|
||||
repo = "flow";
|
||||
rev = "f5c653c706d80145165ec684b217b803a0246e8c";
|
||||
sha256 = "sha256-tXfogxo1DGmsrwjOhF2h+60825P6NVcgQGN6Q1tspZA=";
|
||||
};
|
||||
};
|
||||
mkTypstPath = name: ".local/share/typst/packages/local/${name}/0.1.0";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["FiraCode" "AnonymousPro"];})
|
||||
nerd-fonts.fira-code
|
||||
google-fonts
|
||||
montserrat
|
||||
noto-fonts
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
home-manager.users.jade = {pkgs, ...}: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ in {
|
|||
fonts = [
|
||||
{
|
||||
name = "FiraCode Nerd Font";
|
||||
package = pkgs.nerdfonts.override {fonts = ["FiraCode"];};
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
}
|
||||
];
|
||||
extraConfig = "font-size=14";
|
||||
|
|
|
@ -271,7 +271,7 @@ $env.config = {
|
|||
render_right_prompt_on_last_line: false # true or false to enable or disable right prompt to be rendered on last line of the prompt.
|
||||
|
||||
hooks: {
|
||||
pre_prompt: { null }
|
||||
pre_prompt: []
|
||||
pre_execution: [{ $env.CMD_COUNT = $env.CMD_COUNT + 1; }] # run before the repl input is run
|
||||
env_change: {
|
||||
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
|
||||
|
|
|
@ -39,10 +39,10 @@ def flag [
|
|||
|
||||
let amount = $rest / 2;
|
||||
|
||||
$cols = ($cols | update 0 { $in | update width {|w| ($w.width + $amount) } } | update $last { $in | update width {|w| ($w.width + $amount) } });
|
||||
$cols = ($cols | update 0 { $in | update width {|w| (($w.width | into int) + $amount) } } | update $last { $in | update width {|w| ($w.width + $amount) } });
|
||||
|
||||
$cols | each {|col|
|
||||
$character | std repeat $col.width | prepend (ansi {fg: $"#($col.color)" }) | str join
|
||||
$character | std repeat ($col.width | into int) | prepend (ansi {fg: $"#($col.color)" }) | str join
|
||||
} | prepend (ansi attr_bold) | append (ansi reset) | str join
|
||||
}
|
||||
|
||||
|
@ -51,10 +51,14 @@ def main [] {
|
|||
let next_events = open ~/Docs/dates.csv
|
||||
| update datetime {|ev| $ev.datetime | into datetime }
|
||||
| sort-by datetime
|
||||
| filter {|ev| ($ev.datetime > (date now))}
|
||||
| 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)";
|
||||
| filter {|ev| ($ev.datetime > (date now))};
|
||||
|
||||
let evstr = if ($next_events | is-not-empty) {
|
||||
let ev = $next_events | first;
|
||||
$" | Next Event: (ansi attr_bold)($ev.event)(ansi reset) in (ansi attr_bold)(tfmt ($ev.datetime - (date now)))s(ansi reset)"
|
||||
} else "";
|
||||
|
||||
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!($evstr)";
|
||||
}
|
||||
|
||||
def tfmt [dur: duration] {
|
||||
|
|
Loading…
Add table
Reference in a new issue