Added glib for gio trash.
Added nnn with support for opening text files detached.
This commit is contained in:
parent
087ea5fb86
commit
fef78a942e
|
|
@ -88,15 +88,13 @@ in {
|
||||||
blueman
|
blueman
|
||||||
upower
|
upower
|
||||||
proselint # for prose lint
|
proselint # for prose lint
|
||||||
|
glib
|
||||||
] ++ # Basic utilities
|
] ++ # Basic utilities
|
||||||
[ bitwarden-cli htop snore hledger hledger-ui ]
|
[ bitwarden-cli htop snore hledger hledger-ui ]
|
||||||
++ # Personalized selection of command-line (CLI/TUI) apps
|
++ # Personalized selection of command-line (CLI/TUI) apps
|
||||||
[ terminal ] ++ # Terminal emulator
|
[ terminal ] ++ # Terminal emulator
|
||||||
[
|
[
|
||||||
qutebrowser
|
qutebrowser
|
||||||
cinnamon.nemo
|
|
||||||
gnome.file-roller
|
|
||||||
cinnamon.nemo-fileroller
|
|
||||||
evince
|
evince
|
||||||
imv
|
imv
|
||||||
vlc
|
vlc
|
||||||
|
|
@ -168,8 +166,14 @@ in {
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fixes electron apps
|
# Fixes electron apps and also nnn
|
||||||
home.sessionVariables = { NIXOS_OZONE_WL = "1"; };
|
home.sessionVariables =
|
||||||
|
let detachedtext = pkgs.writeShellScript "detachedtext"
|
||||||
|
(builtins.readFile "${scripts}/detachedtext.sh");
|
||||||
|
in {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
VISUAL = detachedtext;
|
||||||
|
};
|
||||||
|
|
||||||
# configure fonts correctly
|
# configure fonts correctly
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
@ -216,6 +220,20 @@ in {
|
||||||
categories = [ "Utility" "TextEditor" ];
|
categories = [ "Utility" "TextEditor" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.nnn = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
xdg.desktopEntries.nnn = {
|
||||||
|
name = "nnn";
|
||||||
|
genericName = "File Manager";
|
||||||
|
comment = "Terminal file manager";
|
||||||
|
exec = "nnn -Ade";
|
||||||
|
terminal = true;
|
||||||
|
mimeType = [ "inode/directory" ];
|
||||||
|
categories = [ "System" "FileTools" "FileManager" "ConsoleOnly" ];
|
||||||
|
settings.Keywords = "File;Manager;Management;Explorer;Launcher";
|
||||||
|
};
|
||||||
|
|
||||||
# programs.zathura = {
|
# programs.zathura = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# };
|
# };
|
||||||
|
|
|
||||||
9
scripts/detachedtext.sh
Normal file
9
scripts/detachedtext.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
if [ -n "$TMUX" ] ; then
|
||||||
|
# tmux session running
|
||||||
|
tmux split-window -h "$EDITOR \"$*\""
|
||||||
|
else
|
||||||
|
# Remove option --tab for new window
|
||||||
|
( alacritty -e xdg-open $* & )
|
||||||
|
fi
|
||||||
Loading…
Reference in a new issue