From 777ebab1c4afaafb1a4a056fbea8b3611bc04667 Mon Sep 17 00:00:00 2001 From: Bun Date: Wed, 26 Mar 2025 01:41:48 -0400 Subject: [PATCH] Make ranger text editor work without X --- modules/home/programs/misc/school/default.nix | 2 +- modules/home/programs/terminal/ranger/default.nix | 12 +++++------- modules/home/programs/terminal/yt-dlp/default.nix | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/home/programs/misc/school/default.nix b/modules/home/programs/misc/school/default.nix index 0b904df0..78f34ef8 100644 --- a/modules/home/programs/misc/school/default.nix +++ b/modules/home/programs/misc/school/default.nix @@ -2,8 +2,8 @@ { home.packages = with pkgs; lib.mkIf config.home.school.enable [ freerdp + globalprotect-openconnect gpauth remmina - globalprotect-openconnect ]; } diff --git a/modules/home/programs/terminal/ranger/default.nix b/modules/home/programs/terminal/ranger/default.nix index c86fd380..2a679e18 100644 --- a/modules/home/programs/terminal/ranger/default.nix +++ b/modules/home/programs/terminal/ranger/default.nix @@ -15,7 +15,7 @@ rifle = [ # Media { - condition = ''mime ^image, has imv, X, flag f''; + condition = ''mime ^image, has imv, flag f''; command = ''imv -- "$@"''; } { @@ -35,11 +35,11 @@ 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 -- "$@"''; } { - 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 "$@"''; } @@ -75,7 +75,7 @@ command = ''7z x -- "$@"''; } { - condition = ''label open, has xdg-open''; + condition = ''label open''; command = ''vim -- "$@"''; } ]; @@ -88,9 +88,7 @@ }; } ]; - extraConfig = '' - default_linemode devicons2 - ''; + extraConfig = "default_linemode devicons2"; }; # Ranger's bookmarks and necessary tools diff --git a/modules/home/programs/terminal/yt-dlp/default.nix b/modules/home/programs/terminal/yt-dlp/default.nix index 9401d466..dae62169 100644 --- a/modules/home/programs/terminal/yt-dlp/default.nix +++ b/modules/home/programs/terminal/yt-dlp/default.nix @@ -11,6 +11,6 @@ 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"; }; }