Add more zellij bindings

main
trivernis 6 months ago
parent d3ef80baab
commit f04dd75bc6
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -433,7 +433,7 @@ kate
kazam kazam
kcalc kcalc
# kdeinit4 # kdeinit4
kdenlive # kdenlive
kdiff3 kdiff3
keepass keepass
keepass2 keepass2
@ -893,12 +893,12 @@ webstorm
weechat weechat
weechat-curses weechat-curses
wesnoth wesnoth
wget # wget
wget2 # wget2
whalebird whalebird
whois whois
widelands widelands
wine # wine
wire-desktop wire-desktop
wireshark wireshark
wireshark-gtk wireshark-gtk

@ -71,4 +71,11 @@ keybinds {
bind "Ctrl f" { ToggleFocusFullscreen; } bind "Ctrl f" { ToggleFocusFullscreen; }
bind "Alt p" { Run "nu" "-c" "use ide.nu; ide floating-prompt"; } bind "Alt p" { Run "nu" "-c" "use ide.nu; ide floating-prompt"; }
} }
shared_except "locked" {
bind "Alt h" "Alt Left" { MoveFocus "Left"; }
bind "Alt l" "Alt Right" { MoveFocus "Right"; }
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
}
} }

@ -35,3 +35,5 @@ fi
export XDG_DATA_DIRS=$HOME/.nix-profile/share:$HOME/.share:"${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}" export XDG_DATA_DIRS=$HOME/.nix-profile/share:$HOME/.share:"${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}"
# End Nix # End Nix
eval $(ssh-agent)

@ -0,0 +1,25 @@
#!/bin/env nu
export def main [] {
error make {msg: "missing subcommand"}
}
export def `main add-frame` [src: string, dst: string] {
try {
let avg = ( convert $src -resize 1x1! -format "%[fx:int(255*r+.5)],%[fx:int(255*g+.5)],%[fx:int(255*b+.5)]" info:- )
( magick $src
-bordercolor white
-border 100x100
-bordercolor $"srgb\(($avg)\)"
-border 5%x5%
-set option:wd "%[fx:(16/9)>(w/h)?(16/9*h):w]"
-set option:ht "%[fx:(16/9)>(w/h)?h:(w/(16/9))]"
-background $"srgb\(($avg)\)"
-gravity center
-extent "%[wd]x%[ht]"
$dst
)
} catch {|e|
print -e $e
}
}
Loading…
Cancel
Save