Compare commits
3 commits
1c8e0b57d9
...
bbd78078c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbd78078c4 | ||
|
|
fef78a942e | ||
|
|
087ea5fb86 |
|
|
@ -88,15 +88,13 @@ in {
|
|||
blueman
|
||||
upower
|
||||
proselint # for prose lint
|
||||
glib
|
||||
] ++ # Basic utilities
|
||||
[ bitwarden-cli htop snore hledger hledger-ui ]
|
||||
++ # Personalized selection of command-line (CLI/TUI) apps
|
||||
[ terminal ] ++ # Terminal emulator
|
||||
[
|
||||
qutebrowser
|
||||
cinnamon.nemo
|
||||
gnome.file-roller
|
||||
cinnamon.nemo-fileroller
|
||||
evince
|
||||
imv
|
||||
vlc
|
||||
|
|
@ -168,8 +166,14 @@ in {
|
|||
}];
|
||||
};
|
||||
|
||||
# Fixes electron apps
|
||||
home.sessionVariables = { NIXOS_OZONE_WL = "1"; };
|
||||
# Fixes electron apps and also nnn
|
||||
home.sessionVariables =
|
||||
let detachedtext = pkgs.writeShellScript "detachedtext"
|
||||
(builtins.readFile "${scripts}/detachedtext.sh");
|
||||
in {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
VISUAL = detachedtext;
|
||||
};
|
||||
|
||||
# configure fonts correctly
|
||||
fonts.fontconfig.enable = true;
|
||||
|
|
@ -212,10 +216,25 @@ in {
|
|||
"application/x-shellscript"
|
||||
"text/x-c"
|
||||
"text/x-c++"
|
||||
"text/x-devicetree-source"
|
||||
];
|
||||
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 = {
|
||||
# enable = true;
|
||||
# };
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@ in {
|
|||
''
|
||||
exec dunst
|
||||
'' + # Enable notifications
|
||||
''
|
||||
exec "activate-linux -c 0.5-0.5-0.5-0.5"
|
||||
'' + # Enable Activate Linux
|
||||
''
|
||||
bindgesture swipe:4:up focus parent
|
||||
bindgesture swipe:4:left workspace prev
|
||||
|
|
|
|||
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