Add zsh vim bindings, change the MPC data, hotkey changes
This commit is contained in:
parent
e78895916f
commit
2550c9b195
|
@ -146,7 +146,7 @@
|
||||||
exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'";
|
exec-if = "mpc status | grep -q '^\\[playing\\] \\|^\\[paused\\]'";
|
||||||
exec = pkgs.writeScript "mpvMetadata" ''
|
exec = pkgs.writeScript "mpvMetadata" ''
|
||||||
get_metadata() {
|
get_metadata() {
|
||||||
mpc --format "%file%" | head -n 1 | sed -E 's/\.(mp3|mp4|m4a|mov|flac|opus|oga)$//; s/&/&/g'
|
mpc | head -n 1
|
||||||
}
|
}
|
||||||
|
|
||||||
truncate_string() {
|
truncate_string() {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "agnoster";
|
theme = "agnoster";
|
||||||
plugins = ["git"];
|
plugins = [ "git" ];
|
||||||
};
|
};
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
# NixOS aliases
|
# NixOS aliases
|
||||||
|
@ -46,6 +46,7 @@
|
||||||
spotdl = "spotdl --m3u --format opus";
|
spotdl = "spotdl --m3u --format opus";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
|
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
||||||
${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin; pfetch
|
${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin; pfetch
|
||||||
setopt HIST_IGNORE_SPACE
|
setopt HIST_IGNORE_SPACE
|
||||||
setopt RM_STAR_WAIT
|
setopt RM_STAR_WAIT
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
j = "down";
|
j = "down";
|
||||||
k = "up";
|
k = "up";
|
||||||
l = "right";
|
l = "right";
|
||||||
|
g = "macro(C-h)";
|
||||||
semicolon = "macro(C-l)";
|
semicolon = "macro(C-l)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue