added sturfff
This commit is contained in:
parent
0b8167a31d
commit
a37f81751e
7 changed files with 122 additions and 20 deletions
|
|
@ -15,6 +15,7 @@ in
|
|||
awscli
|
||||
minio-client
|
||||
opentofu
|
||||
python3
|
||||
(azPkgs.azure-cli.withExtensions (
|
||||
with azPkgs.azure-cli.extensions;
|
||||
[
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) concatStringsSep mkOption types;
|
||||
|
|
@ -95,20 +100,30 @@ in
|
|||
interactiveShellInit =
|
||||
let
|
||||
fzfOpts = catppuccinFzfOptions.${config.fish.theme};
|
||||
in ''
|
||||
fish_vi_key_bindings
|
||||
set fish_greeting
|
||||
set FLAKE_DIR "/home/fw/nix"
|
||||
set JIRA_API_TOKEN ATATT3xFfGF0_fkpGB1ne-QOSJzFVG0yH31j2CRtdNqbePCyEm9enpnA2uA3go75_GQwZPFX_IO9tf10ALJWvDLjsuHl8MSOUkNd703Vqr4uuGLAbHY73Z_b9fDJVrfodTrGAN9sZ5Sp75opCVkXB7MVXSAIvlWimRdwe-tqDPH4vhwY9Hqcs6M=0510D6CD
|
||||
set -Ux FZF_CTRL_R_OPTS "--reverse"
|
||||
set -Ux FZF_TMUX_OPTS "-p"
|
||||
set -e GOROOT
|
||||
set -x -U GOPATH $HOME/.go
|
||||
gh completion -s fish > ~/.config/fish/completions/gh.fish
|
||||
set -gx PATH $PATH $HOME/scripts
|
||||
set -gx PATH $PATH $HOME/.krew/bin
|
||||
in
|
||||
''
|
||||
fish_vi_key_bindings
|
||||
set fish_greeting
|
||||
set FLAKE_DIR "/home/fw/nix"
|
||||
set JIRA_API_TOKEN ATATT3xFfGF0_fkpGB1ne-QOSJzFVG0yH31j2CRtdNqbePCyEm9enpnA2uA3go75_GQwZPFX_IO9tf10ALJWvDLjsuHl8MSOUkNd703Vqr4uuGLAbHY73Z_b9fDJVrfodTrGAN9sZ5Sp75opCVkXB7MVXSAIvlWimRdwe-tqDPH4vhwY9Hqcs6M=0510D6CD
|
||||
set -gx GITHUB_PERSONAL_ACCESS_TOKEN (cat /run/secrets/github_token)
|
||||
set -gx GITHUB_HOST "https://github.com"
|
||||
set -gx GRAFANA_SERVICE_ACCOUNT_TOKEN (cat /run/secrets/grafana_token)
|
||||
set -gx GRAFANA_URL "https://monitoring.internalifacts.se"
|
||||
set -Ux FZF_CTRL_R_OPTS "--reverse"
|
||||
set -Ux FZF_TMUX_OPTS "-p"
|
||||
set -e GOROOT
|
||||
set -x -U GOPATH $HOME/.go
|
||||
gh completion -s fish > ~/.config/fish/completions/gh.fish
|
||||
set -gx PATH $PATH $HOME/scripts
|
||||
set -gx PATH $PATH $HOME/.krew/bin
|
||||
|
||||
set -Ux FZF_DEFAULT_OPTS "${fzfOpts}"
|
||||
if not set -q SSH_AUTH_SOCK
|
||||
eval (ssh-agent -c)
|
||||
ssh-add ~/.ssh/id_ed25519 >/dev/null 2>&1
|
||||
end
|
||||
|
||||
set -Ux FZF_DEFAULT_OPTS "${fzfOpts}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
palettes = {
|
||||
latte = {
|
||||
|
|
@ -73,10 +78,41 @@ with lib;
|
|||
"fetch_status" = false;
|
||||
"fetch_upstream_icon" = false;
|
||||
};
|
||||
"template" = "{{ .HEAD }} ";
|
||||
"template" = "{{ .HEAD }}";
|
||||
"style" = "plain";
|
||||
"type" = "git";
|
||||
}
|
||||
{
|
||||
"type" = "terraform";
|
||||
"style" = "plain";
|
||||
"foreground" = "p:peach";
|
||||
"properties" = {
|
||||
"command" = "tofu";
|
||||
};
|
||||
"template" = " {{.WorkspaceName}}";
|
||||
}
|
||||
{
|
||||
"type" = "kubectl";
|
||||
"style" = "plain";
|
||||
"foreground" = "p:lavender";
|
||||
"template" = " {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}";
|
||||
"options" = {
|
||||
"context_aliases" = {
|
||||
"prd-mmo" = "prd-mmo";
|
||||
"test-mmo" = "test-mmo";
|
||||
};
|
||||
"cluster_aliases" = {
|
||||
"prd-mmo" = "prd-mmo";
|
||||
"test-mmo" = "test-mmo";
|
||||
};
|
||||
};
|
||||
}
|
||||
# {
|
||||
# "type" = "argocd";
|
||||
# "style" = "plain";
|
||||
# "foreground" = "p:blue";
|
||||
# "template" = " {{ .Server }}";
|
||||
# }
|
||||
{
|
||||
"style" = "plain";
|
||||
"foreground" = "p:closer";
|
||||
|
|
@ -85,7 +121,7 @@ with lib;
|
|||
{
|
||||
"foreground" = "p:mauve";
|
||||
"style" = "plain";
|
||||
"template" = "{{ .UserName }}@";
|
||||
"template" = " {{ .UserName }}@";
|
||||
"type" = "session";
|
||||
}
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,6 +75,9 @@
|
|||
quickemu
|
||||
virt-viewer
|
||||
go-passbolt-cli
|
||||
wf-recorder
|
||||
slurp
|
||||
|
||||
|
||||
dbeaver-bin
|
||||
(
|
||||
|
|
|
|||
|
|
@ -294,6 +294,11 @@ with lib;
|
|||
"$mod SHIFT, s, exec, ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png"
|
||||
"$mod SHIFT, c, exec, ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" \"$HOME/$(date +screenshot-%Y%m%d-%H%M%S.png)\""
|
||||
|
||||
# GIFs
|
||||
"$mod SHIFT, g, exec, ${pkgs.bash}/bin/bash -lc 'ts=$(date +recording-%Y%m%d-%H%M%S); dir=\"$HOME/misc/clips\"; mp4=\"$dir/$ts.mp4\"; gif=\"$dir/$ts.gif\"; mkdir -p \"$dir\"; ${pkgs.wf-recorder}/bin/wf-recorder -g \"$(${pkgs.slurp}/bin/slurp)\" -f \"$mp4\" && ${pkgs.ffmpeg}/bin/ffmpeg -i \"$mp4\" -vf \"fps=20,scale=1200:-1:flags=lanczos,palettegen\" -y /tmp/palette.png && ${pkgs.ffmpeg}/bin/ffmpeg -i \"$mp4\" -i /tmp/palette.png -filter_complex \"fps=20,scale=1200:-1:flags=lanczos[x];[x][1:v]paletteuse\" -y \"$gif\" && rm -f \"$mp4\"'"
|
||||
"$mod SHIFT, f, exec, pkill -INT wf-recorder"
|
||||
|
||||
|
||||
# special
|
||||
"SUPER+SHIFT, code:201, exec, confetti"
|
||||
",XF86Tools , exec, ${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue