Moved programs/ to snippets/ and made necessary modifications in config.

Edited clifmrc to make 'x' command work somewhat.
This commit is contained in:
vorboyvo 2024-11-29 16:31:36 -05:00
parent b011f8eaaa
commit b7261af069
20 changed files with 27 additions and 27 deletions

View file

@ -6,9 +6,9 @@ let
terminal = pkgs.alacritty; terminal = pkgs.alacritty;
in { in {
imports = [ imports = [
../../programs/kdeconnect.nix ../../snippets/kdeconnect.nix
../../programs/ssh.nix ../../snippets/ssh.nix
../../programs/zsh.nix ../../snippets/zsh.nix
]; ];
home.username = "alice"; home.username = "alice";
home.homeDirectory = "/home/alice"; home.homeDirectory = "/home/alice";
@ -139,12 +139,12 @@ in {
}; };
}; };
# wayland.windowManager.sway = import ../../programs/sway.nix { # wayland.windowManager.sway = import ../../snippets/sway.nix {
# inherit scripts extra config lib pkgs terminal; # inherit scripts extra config lib pkgs terminal;
#}; #};
#programs.waybar = #programs.waybar =
# import ../../programs/waybar.nix { inherit scripts config lib pkgs terminal; }; # import ../../snippets/waybar.nix { inherit scripts config lib pkgs terminal; };
#programs.swaylock = { #programs.swaylock = {
# enable = true; # enable = true;
@ -204,11 +204,11 @@ in {
# terminal emulator # terminal emulator
programs.alacritty.enable = true; programs.alacritty.enable = true;
# programs.neovim = import ./programs/neovim.nix; # programs.neovim = import ./snippets/neovim.nix;
programs.kakoune = import ../../programs/kakoune.nix pkgs; programs.kakoune = import ../../snippets/kakoune.nix pkgs;
xdg.configFile."kak-lsp/kak-lsp.toml".source = xdg.configFile."kak-lsp/kak-lsp.toml".source =
../../programs/kakoune/kak-lsp.toml; ../../snippets/kakoune/kak-lsp.toml;
xdg.desktopEntries.kakoune = { xdg.desktopEntries.kakoune = {
name = "Kakoune"; name = "Kakoune";
genericName = "Text Editor"; genericName = "Text Editor";
@ -255,7 +255,7 @@ in {
# }; # };
# }; # };
programs.firefox = import ../../programs/firefox.nix { inherit pkgs; }; programs.firefox = import ../../snippets/firefox.nix { inherit pkgs; };
programs.thunderbird = import ../../programs/thunderbird.nix; programs.thunderbird = import ../../snippets/thunderbird.nix;
} }

View file

@ -6,13 +6,13 @@ let
terminal = pkgs.alacritty; terminal = pkgs.alacritty;
in { in {
imports = [ imports = [
../../programs/gammastep.nix ../../snippets/gammastep.nix
../../programs/kdeconnect.nix ../../snippets/kdeconnect.nix
../../programs/ssh.nix ../../snippets/ssh.nix
../../programs/zsh.nix ../../snippets/zsh.nix
../../programs/taskwarrior.nix ../../snippets/taskwarrior.nix
../../programs/clifm.nix ../../snippets/clifm.nix
../../programs/git.nix ../../snippets/git.nix
]; ];
home.username = "alice"; home.username = "alice";
home.homeDirectory = "/home/alice"; home.homeDirectory = "/home/alice";
@ -136,12 +136,12 @@ in {
# }; # };
# }; # };
wayland.windowManager.sway = import ../../programs/sway.nix { wayland.windowManager.sway = import ../../snippets/sway.nix {
inherit scripts extra config lib pkgs terminal; inherit scripts extra config lib pkgs terminal;
}; };
programs.waybar = programs.waybar =
import ../../programs/waybar.nix { inherit scripts config lib pkgs terminal; }; import ../../snippets/waybar.nix { inherit scripts config lib pkgs terminal; };
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
@ -169,9 +169,9 @@ in {
# terminal emulator # terminal emulator
programs.alacritty.enable = true; programs.alacritty.enable = true;
programs.kakoune = import ../../programs/kakoune.nix pkgs; programs.kakoune = import ../../snippets/kakoune.nix pkgs;
xdg.configFile."kak-lsp/kak-lsp.toml".source = xdg.configFile."kak-lsp/kak-lsp.toml".source =
../../programs/kakoune/kak-lsp.toml; ../../snippets/kakoune/kak-lsp.toml;
xdg.desktopEntries.kakoune = { xdg.desktopEntries.kakoune = {
name = "Kakoune"; name = "Kakoune";
genericName = "Text Editor"; genericName = "Text Editor";
@ -227,7 +227,7 @@ in {
]; ];
}; };
programs.firefox = import ../../programs/firefox.nix { inherit pkgs; }; programs.firefox = import ../../snippets/firefox.nix { inherit pkgs; };
programs.thunderbird = import ../../programs/thunderbird.nix; programs.thunderbird = import ../../snippets/thunderbird.nix;
} }

View file

@ -366,7 +366,7 @@ TrashAsRm=true
# Only used when opening a directory via a new Clifm instance (with the # Only used when opening a directory via a new Clifm instance (with the
# 'x' command), this option specifies the command to be used to launch a # 'x' command), this option specifies the command to be used to launch a
# terminal emulator to run Clifm on it. # terminal emulator to run Clifm on it.
TerminalCmd="$TERM -e" TerminalCmd="alacritty -e"
# Set the file mode creation mask. Defaults to the value inherited from # Set the file mode creation mask. Defaults to the value inherited from
# the shell (though 077 is recommended). # the shell (though 077 is recommended).

View file

@ -124,7 +124,7 @@ X:N:.*\.abw$=abiword %x;libreoffice %x;soffice %x;ooffice %x
# Only for the open-with command (ow) and the --open command line switch. # Only for the open-with command (ow) and the --open command line switch.
# In graphical environments directories will be opened in a new window. # In graphical environments directories will be opened in a new window.
X:inode/directory=xterm -e clifm %x;xterm -e vifm %x;pcmanfm %x;thunar %x;xterm -e ncdu %x X:inode/directory=$TERM -e clifm %x;xterm -e vifm %x;pcmanfm %x;thunar %x;xterm -e ncdu %x
!X:inode/directory=vifm;ranger;nnn;ncdu !X:inode/directory=vifm;ranger;nnn;ncdu
#----------------------------- #-----------------------------
@ -140,7 +140,7 @@ X:^text/html$=$BROWSER;surf %x;vimprobable %x;vimprobable2 %x;qutebrowser %x;dwb
X:^text/rtf$=libreoffice %x;soffice %x;ooffice %x X:^text/rtf$=libreoffice %x;soffice %x;ooffice %x
X:(^text/.*|application/(json|javascript)|inode/x-empty)=$TERM -e $EDITOR %x;$TERM -e $VISUAL $x;kak;micro;dte;nvim;vim;vi;mg;emacs;nano;mili;leafpad %x;mousepad %x;featherpad %x;nedit %x;kate %x;gedit %x;pluma %x;io.elementary.code %x;liri-text %x;xed %x;atom %x;nota %x;gobby %x;kwrite %x;xedit %x X:(^text/.*|application/(json|javascript)|inode/x-empty)=$TERM -e $EDITOR %x;$TERM -e $VISUAL $x;kak;micro;dte;nvim;vim;vi;mg;emacs;nano;mili;leafpad %x;mousepad %x;featherpad %x;nedit %x;kate %x;gedit %x;pluma %x;io.elementary.code %x;liri-text %x;xed %x;atom %x;nota %x;gobby %x;kwrite %x;xedit %x
!X:(^text/.*|application/(json|javascript)|inode/x-empty)=$EDITOR;$VISUAL;kak;micro;dte;nvim;vim;vi;mg;emacs;nano !X:(^text/.*|application/(json|javascript)|inode/x-empty)=$TERM -e $EDITOR %x;$EDITOR;$VISUAL;kak;micro;dte;nvim;vim;vi;mg;emacs;nano
#----------------------------- #-----------------------------
# Office documents # Office documents
@ -170,7 +170,7 @@ X:.*/pdf$=mupdf %x;sioyek %x;llpp %x;lpdf %x;zathura %x;mupdf-x11 %x;apvlv %x;xp
X:^image/gif$=animate %x;pqiv %x;sxiv -a %x;nsxiv -a %x;feh %x X:^image/gif$=animate %x;pqiv %x;sxiv -a %x;nsxiv -a %x;feh %x
X:^image/svg=display;inkscape %x X:^image/svg=display;inkscape %x
X:^image/.*=sxiv %x;nsxiv %x;pqiv %x;gpicview %x;qview %x;qimgv %x;mirage %x;ristretto %x;loupe %x;eog %x;eom %x;xviewer %x;viewnior %x;nomacs %x;geeqie %x;gwenview %x;gthumb %x;gimp %x X:^image/.*=imv %x;sxiv %x;nsxiv %x;pqiv %x;gpicview %x;qview %x;qimgv %x;mirage %x;ristretto %x;loupe %x;eog %x;eom %x;xviewer %x;viewnior %x;nomacs %x;geeqie %x;gwenview %x;gthumb %x;gimp %x
!X:^image/.*=fim;img2txt;cacaview;fbi;fbv !X:^image/.*=fim;img2txt;cacaview;fbi;fbv
#----------------------------- #-----------------------------