Make ranger text editor work without X
This commit is contained in:
parent
181ec9575f
commit
777ebab1c4
3 changed files with 7 additions and 9 deletions
|
@ -2,8 +2,8 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; lib.mkIf config.home.school.enable [
|
home.packages = with pkgs; lib.mkIf config.home.school.enable [
|
||||||
freerdp
|
freerdp
|
||||||
|
globalprotect-openconnect
|
||||||
gpauth
|
gpauth
|
||||||
remmina
|
remmina
|
||||||
globalprotect-openconnect
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
rifle = [
|
rifle = [
|
||||||
# Media
|
# Media
|
||||||
{
|
{
|
||||||
condition = ''mime ^image, has imv, X, flag f'';
|
condition = ''mime ^image, has imv, flag f'';
|
||||||
command = ''imv -- "$@"'';
|
command = ''imv -- "$@"'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -35,11 +35,11 @@
|
||||||
command = ''mpv --shuffle --no-audio-display -- "$@"'';
|
command = ''mpv --shuffle --no-audio-display -- "$@"'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
condition = ''ext x?html?|pdf, has firefox, X, flag f'';
|
condition = ''ext x?html?|pdf, has firefox, flag f'';
|
||||||
command = ''firefox -- "$@"'';
|
command = ''firefox -- "$@"'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
condition = ''ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f'';
|
condition = ''ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, flag f'';
|
||||||
command = ''libreoffice "$@"'';
|
command = ''libreoffice "$@"'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
command = ''7z x -- "$@"'';
|
command = ''7z x -- "$@"'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
condition = ''label open, has xdg-open'';
|
condition = ''label open'';
|
||||||
command = ''vim -- "$@"'';
|
command = ''vim -- "$@"'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -88,9 +88,7 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = "default_linemode devicons2";
|
||||||
default_linemode devicons2
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ranger's bookmarks and necessary tools
|
# Ranger's bookmarks and necessary tools
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
output = ''"%(artist)s - %(title)s.%(ext)s"'';
|
output = ''"%(artist)s - %(title)s.%(ext)s"'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
|
home.shellAliases.opusdl = "yt-dlp -f ba -x --audio-quality 0";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue