chore: Formatting

This commit is contained in:
Donovan Glover 2023-06-21 03:08:20 -04:00
parent 2b415d3bd4
commit 0cd00a7734
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 147 additions and 142 deletions

View File

@ -129,17 +129,20 @@
yml."inherit" = "text_default";
# archive formats
"7z".app_list = [ { command = "7z"; args = [ "x" ]; confirm_exit = true; } ];
"7z".app_list = [{ command = "7z"; args = [ "x" ]; confirm_exit = true; }];
rar.app_list = [
{ command = "unrar"; args = [ "x" ]; confirm_exit = true; }
{ command = "file-roller"; fork = true; silent = true; } ];
{ command = "file-roller"; fork = true; silent = true; }
];
zip.app_list = [
{ command = "unzip"; confirm_exit = true; }
{ command = "file-roller"; fork = true; silent = true; } ];
{ command = "file-roller"; fork = true; silent = true; }
];
# misc formats
aup.app_list = [
{ command = "audacity"; fork = true; silent = true; } ];
{ command = "audacity"; fork = true; silent = true; }
];
odt."inherit" = "libreoffice_default";
odf."inherit" = "libreoffice_default";
@ -166,10 +169,12 @@
{ command = "micro"; }
{ command = "gedit"; fork = true; silent = true; }
{ command = "bat"; confirm_exit = true; }
{ command = "pdflatex"; } ];
{ command = "pdflatex"; }
];
torrent.app_list = [
{ command = "transmission-gtk"; } ];
{ command = "transmission-gtk"; }
];
};
mimetype = {
@ -182,168 +187,168 @@
keymap = {
default_view = {
keymap = [
{ keys = ["escape"]; command = "escape"; }
{ keys = ["ctrl+t"]; command = "new_tab"; }
{ keys = ["alt+t"]; command = "new_tab --cursor"; }
{ keys = ["T"]; command = "new_tab --current"; }
{ keys = ["W"]; command = "close_tab"; }
{ keys = ["ctrl+w"]; command = "close_tab"; }
{ keys = ["q"]; command = "close_tab"; }
{ keys = ["ctrl+c"]; command = "quit"; }
{ keys = ["o"]; command = "quit --output-selected-files"; }
{ keys = [ "escape" ]; command = "escape"; }
{ keys = [ "ctrl+t" ]; command = "new_tab"; }
{ keys = [ "alt+t" ]; command = "new_tab --cursor"; }
{ keys = [ "T" ]; command = "new_tab --current"; }
{ keys = [ "W" ]; command = "close_tab"; }
{ keys = [ "ctrl+w" ]; command = "close_tab"; }
{ keys = [ "q" ]; command = "close_tab"; }
{ keys = [ "ctrl+c" ]; command = "quit"; }
{ keys = [ "o" ]; command = "quit --output-selected-files"; }
{ keys = ["R"]; command = "reload_dirlist"; }
{ keys = ["z" "h"]; command = "toggle_hidden"; }
{ keys = ["ctrl+h"]; command = "toggle_hidden"; }
{ keys = ["\t"]; command = "tab_switch 1"; }
{ keys = ["backtab"]; command = "tab_switch -1"; }
{ keys = [ "R" ]; command = "reload_dirlist"; }
{ keys = [ "z" "h" ]; command = "toggle_hidden"; }
{ keys = [ "ctrl+h" ]; command = "toggle_hidden"; }
{ keys = [ "\t" ]; command = "tab_switch 1"; }
{ keys = [ "backtab" ]; command = "tab_switch -1"; }
{ keys = ["alt+1"]; command = "tab_switch_index 1"; }
{ keys = ["alt+2"]; command = "tab_switch_index 2"; }
{ keys = ["alt+3"]; command = "tab_switch_index 3"; }
{ keys = ["alt+4"]; command = "tab_switch_index 4"; }
{ keys = ["alt+5"]; command = "tab_switch_index 5"; }
{ keys = [ "alt+1" ]; command = "tab_switch_index 1"; }
{ keys = [ "alt+2" ]; command = "tab_switch_index 2"; }
{ keys = [ "alt+3" ]; command = "tab_switch_index 3"; }
{ keys = [ "alt+4" ]; command = "tab_switch_index 4"; }
{ keys = [ "alt+5" ]; command = "tab_switch_index 5"; }
{ keys = ["1"]; command = "numbered_command 1"; }
{ keys = ["2"]; command = "numbered_command 2"; }
{ keys = ["3"]; command = "numbered_command 3"; }
{ keys = ["4"]; command = "numbered_command 4"; }
{ keys = ["5"]; command = "numbered_command 5"; }
{ keys = ["6"]; command = "numbered_command 6"; }
{ keys = ["7"]; command = "numbered_command 7"; }
{ keys = ["8"]; command = "numbered_command 8"; }
{ keys = ["9"]; command = "numbered_command 9"; }
{ keys = [ "1" ]; command = "numbered_command 1"; }
{ keys = [ "2" ]; command = "numbered_command 2"; }
{ keys = [ "3" ]; command = "numbered_command 3"; }
{ keys = [ "4" ]; command = "numbered_command 4"; }
{ keys = [ "5" ]; command = "numbered_command 5"; }
{ keys = [ "6" ]; command = "numbered_command 6"; }
{ keys = [ "7" ]; command = "numbered_command 7"; }
{ keys = [ "8" ]; command = "numbered_command 8"; }
{ keys = [ "9" ]; command = "numbered_command 9"; }
# arrow keys
{ keys = ["arrow_up"]; command = "cursor_move_up"; }
{ keys = ["arrow_down"]; command = "cursor_move_down"; }
{ keys = ["arrow_left"]; command = "cd .."; }
{ keys = ["arrow_right"]; command = "open"; }
{ keys = ["\n"]; command = "open"; }
{ keys = ["home"]; command = "cursor_move_home"; }
{ keys = ["end"]; command = "cursor_move_end"; }
{ keys = ["page_up"]; command = "cursor_move_page_up"; }
{ keys = ["page_down"]; command = "cursor_move_page_down"; }
{ keys = ["ctrl+u"]; command = "cursor_move_page_up 0.5"; }
{ keys = ["ctrl+d"]; command = "cursor_move_page_down 0.5"; }
{ keys = [ "arrow_up" ]; command = "cursor_move_up"; }
{ keys = [ "arrow_down" ]; command = "cursor_move_down"; }
{ keys = [ "arrow_left" ]; command = "cd .."; }
{ keys = [ "arrow_right" ]; command = "open"; }
{ keys = [ "\n" ]; command = "open"; }
{ keys = [ "home" ]; command = "cursor_move_home"; }
{ keys = [ "end" ]; command = "cursor_move_end"; }
{ keys = [ "page_up" ]; command = "cursor_move_page_up"; }
{ keys = [ "page_down" ]; command = "cursor_move_page_down"; }
{ keys = [ "ctrl+u" ]; command = "cursor_move_page_up 0.5"; }
{ keys = [ "ctrl+d" ]; command = "cursor_move_page_down 0.5"; }
# vim-like keybindings
{ keys = ["j"]; command = "cursor_move_down"; }
{ keys = ["k"]; command = "cursor_move_up"; }
{ keys = ["h"]; command = "cd .."; }
{ keys = ["l"]; command = "open"; }
{ keys = ["g" "g"]; command = "cursor_move_home"; }
{ keys = ["G"]; command = "cursor_move_end"; }
{ keys = ["r"]; command = "open_with"; }
{ keys = [ "j" ]; command = "cursor_move_down"; }
{ keys = [ "k" ]; command = "cursor_move_up"; }
{ keys = [ "h" ]; command = "cd .."; }
{ keys = [ "l" ]; command = "open"; }
{ keys = [ "g" "g" ]; command = "cursor_move_home"; }
{ keys = [ "G" ]; command = "cursor_move_end"; }
{ keys = [ "r" ]; command = "open_with"; }
{ keys = ["H"]; command = "cursor_move_page_home"; }
{ keys = ["L"]; command = "cursor_move_page_middle"; }
{ keys = ["M"]; command = "cursor_move_page_end"; }
{ keys = [ "H" ]; command = "cursor_move_page_home"; }
{ keys = [ "L" ]; command = "cursor_move_page_middle"; }
{ keys = [ "M" ]; command = "cursor_move_page_end"; }
{ keys = ["["]; command = "parent_cursor_move_up"; }
{ keys = ["]"]; command = "parent_cursor_move_down"; }
{ keys = [ "[" ]; command = "parent_cursor_move_up"; }
{ keys = [ "]" ]; command = "parent_cursor_move_down"; }
{ keys = ["c" "d"]; command = ":cd "; }
{ keys = ["d" "d"]; command = "cut_files"; }
{ keys = ["y" "y"]; command = "copy_files"; }
{ keys = ["y" "n"]; command = "copy_filename"; }
{ keys = ["y" "."]; command = "copy_filename_without_extension"; }
{ keys = ["y" "p"]; command = "copy_filepath"; }
{ keys = ["y" "d"]; command = "copy_dirpath"; }
{ keys = [ "c" "d" ]; command = ":cd "; }
{ keys = [ "d" "d" ]; command = "cut_files"; }
{ keys = [ "y" "y" ]; command = "copy_files"; }
{ keys = [ "y" "n" ]; command = "copy_filename"; }
{ keys = [ "y" "." ]; command = "copy_filename_without_extension"; }
{ keys = [ "y" "p" ]; command = "copy_filepath"; }
{ keys = [ "y" "d" ]; command = "copy_dirpath"; }
{ keys = ["p" "l"]; command = "symlink_files --relative=false"; }
{ keys = ["p" "L"]; command = "symlink_files --relative=true"; }
{ keys = [ "p" "l" ]; command = "symlink_files --relative=false"; }
{ keys = [ "p" "L" ]; command = "symlink_files --relative=true"; }
{ keys = ["delete"]; command = "delete_files"; }
{ keys = ["d" "D"]; command = "delete_files"; }
{ keys = [ "delete" ]; command = "delete_files"; }
{ keys = [ "d" "D" ]; command = "delete_files"; }
{ keys = ["p" "p"]; command = "paste_files"; }
{ keys = ["p" "o"]; command = "paste_files --overwrite=true"; }
{ keys = [ "p" "p" ]; command = "paste_files"; }
{ keys = [ "p" "o" ]; command = "paste_files --overwrite=true"; }
{ keys = ["a"]; command = "rename_append"; }
{ keys = ["A"]; command = "rename_prepend"; }
{ keys = [ "a" ]; command = "rename_append"; }
{ keys = [ "A" ]; command = "rename_prepend"; }
{ keys = ["f" "t"]; command = ":touch "; }
{ keys = [ "f" "t" ]; command = ":touch "; }
{ keys = [" "]; command = "select --toggle=true"; }
{ keys = ["t"]; command = "select --all=true --toggle=true"; }
{ keys = ["V"]; command = "toggle_visual"; }
{ keys = [ " " ]; command = "select --toggle=true"; }
{ keys = [ "t" ]; command = "select --all=true --toggle=true"; }
{ keys = [ "V" ]; command = "toggle_visual"; }
{ keys = ["w"]; command = "show_tasks --exit-key=w"; }
{ keys = ["b" "b"]; command = "bulk_rename"; }
{ keys = ["="]; command = "set_mode"; }
{ keys = [ "w" ]; command = "show_tasks --exit-key=w"; }
{ keys = [ "b" "b" ]; command = "bulk_rename"; }
{ keys = [ "=" ]; command = "set_mode"; }
{ keys = [":"]; command = ":"; }
{ keys = [";"]; command = ":"; }
{ keys = [ ":" ]; command = ":"; }
{ keys = [ ";" ]; command = ":"; }
{ keys = ["'"]; command = ":shell "; }
{ keys = ["m" "k"]; command = ":mkdir "; }
{ keys = ["c" "w"]; command = ":rename "; }
{ keys = [ "'" ]; command = ":shell "; }
{ keys = [ "m" "k" ]; command = ":mkdir "; }
{ keys = [ "c" "w" ]; command = ":rename "; }
{ keys = ["/"]; command = ":search "; }
{ keys = ["|"]; command = ":search_inc "; }
{ keys = ["\\"]; command = ":search_glob "; }
{ keys = ["S"]; command = "search_fzf"; }
{ keys = ["C"]; command = "subdir_fzf"; }
{ keys = [ "/" ]; command = ":search "; }
{ keys = [ "|" ]; command = ":search_inc "; }
{ keys = [ "\\" ]; command = ":search_glob "; }
{ keys = [ "S" ]; command = "search_fzf"; }
{ keys = [ "C" ]; command = "subdir_fzf"; }
{ keys = ["n"]; command = "search_next"; }
{ keys = ["N"]; command = "search_prev"; }
{ keys = [ "n" ]; command = "search_next"; }
{ keys = [ "N" ]; command = "search_prev"; }
{ keys = ["s" "r"]; command = "sort reverse"; }
{ keys = ["s" "l"]; command = "sort lexical"; }
{ keys = ["s" "m"]; command = "sort mtime"; }
{ keys = ["s" "n"]; command = "sort natural"; }
{ keys = ["s" "s"]; command = "sort size"; }
{ keys = ["s" "e"]; command = "sort ext"; }
{ keys = [ "s" "r" ]; command = "sort reverse"; }
{ keys = [ "s" "l" ]; command = "sort lexical"; }
{ keys = [ "s" "m" ]; command = "sort mtime"; }
{ keys = [ "s" "n" ]; command = "sort natural"; }
{ keys = [ "s" "s" ]; command = "sort size"; }
{ keys = [ "s" "e" ]; command = "sort ext"; }
{ keys = ["m" "s"]; command = "linemode size"; }
{ keys = ["m" "m"]; command = "linemode mtime"; }
{ keys = ["m" "M"]; command = "linemode sizemtime"; }
{ keys = [ "m" "s" ]; command = "linemode size"; }
{ keys = [ "m" "m" ]; command = "linemode mtime"; }
{ keys = [ "m" "M" ]; command = "linemode sizemtime"; }
{ keys = ["g" "r"]; command = "cd /"; }
{ keys = ["g" "c"]; command = "cd ~/.config"; }
{ keys = ["g" "d"]; command = "cd ~/Downloads"; }
{ keys = ["g" "e"]; command = "cd /etc"; }
{ keys = ["g" "h"]; command = "cd ~/"; }
{ keys = ["?"]; command = "help"; }
{ keys = [ "g" "r" ]; command = "cd /"; }
{ keys = [ "g" "c" ]; command = "cd ~/.config"; }
{ keys = [ "g" "d" ]; command = "cd ~/Downloads"; }
{ keys = [ "g" "e" ]; command = "cd /etc"; }
{ keys = [ "g" "h" ]; command = "cd ~/"; }
{ keys = [ "?" ]; command = "help"; }
];
};
task_view = {
keymap = [
# arrow keys
{ keys = ["arrow_up"]; command = "cursor_move_up"; }
{ keys = ["arrow_down"]; command = "cursor_move_down"; }
{ keys = ["home"]; command = "cursor_move_home"; }
{ keys = ["end"]; command = "cursor_move_end"; }
{ keys = [ "arrow_up" ]; command = "cursor_move_up"; }
{ keys = [ "arrow_down" ]; command = "cursor_move_down"; }
{ keys = [ "home" ]; command = "cursor_move_home"; }
{ keys = [ "end" ]; command = "cursor_move_end"; }
# vim-like keybindings
{ keys = ["j"]; command = "cursor_move_down"; }
{ keys = ["k"]; command = "cursor_move_up"; }
{ keys = ["g" "g"]; command = "cursor_move_home"; }
{ keys = ["G"]; command = "cursor_move_end"; }
{ keys = [ "j" ]; command = "cursor_move_down"; }
{ keys = [ "k" ]; command = "cursor_move_up"; }
{ keys = [ "g" "g" ]; command = "cursor_move_home"; }
{ keys = [ "G" ]; command = "cursor_move_end"; }
{ keys = ["w"]; command = "show_tasks"; }
{ keys = ["escape"]; command = "show_tasks"; }
{ keys = [ "w" ]; command = "show_tasks"; }
{ keys = [ "escape" ]; command = "show_tasks"; }
];
};
help_view = {
keymap = [
# arrow keys
{ keys = ["arrow_up"]; command = "cursor_move_up"; }
{ keys = ["arrow_down"]; command = "cursor_move_down"; }
{ keys = ["home"]; command = "cursor_move_home"; }
{ keys = ["end"]; command = "cursor_move_end"; }
{ keys = [ "arrow_up" ]; command = "cursor_move_up"; }
{ keys = [ "arrow_down" ]; command = "cursor_move_down"; }
{ keys = [ "home" ]; command = "cursor_move_home"; }
{ keys = [ "end" ]; command = "cursor_move_end"; }
# vim-like keybindings
{ keys = ["j"]; command = "cursor_move_down"; }
{ keys = ["k"]; command = "cursor_move_up"; }
{ keys = ["g" "g"]; command = "cursor_move_home"; }
{ keys = ["G"]; command = "cursor_move_end"; }
{ keys = [ "j" ]; command = "cursor_move_down"; }
{ keys = [ "k" ]; command = "cursor_move_up"; }
{ keys = [ "g" "g" ]; command = "cursor_move_home"; }
{ keys = [ "G" ]; command = "cursor_move_end"; }
{ keys = ["w"]; command = "show_tasks"; }
{ keys = ["escape"]; command = "show_tasks"; }
{ keys = [ "w" ]; command = "show_tasks"; }
{ keys = [ "escape" ]; command = "show_tasks"; }
];
};
};

View File

@ -21,22 +21,22 @@
theme = let inherit (config.lib.formats.rasi) mkLiteral; in lib.mkForce {
"*" = {
font = "Noto Sans CJK JP Bold 12";
font = "Noto Sans CJK JP Bold 12";
bg0 = mkLiteral "#242424dd";
bg1 = mkLiteral "#363636";
bg2 = mkLiteral "#f5f5f520";
bg3 = mkLiteral "#f5f5f540";
bg4 = mkLiteral "#0860f2E6";
bg0 = mkLiteral "#242424dd";
bg1 = mkLiteral "#363636";
bg2 = mkLiteral "#f5f5f520";
bg3 = mkLiteral "#f5f5f540";
bg4 = mkLiteral "#0860f2E6";
fg0 = mkLiteral "#f5f5f5";
fg1 = mkLiteral "#f5f5f580";
fg0 = mkLiteral "#f5f5f5";
fg1 = mkLiteral "#f5f5f580";
background-color = mkLiteral "transparent";
foreground = mkLiteral "#f8f8f2";
text-color = mkLiteral "@fg0";
padding = mkLiteral "0px";
margin = mkLiteral "0px";
background-color = mkLiteral "transparent";
foreground = mkLiteral "#f8f8f2";
text-color = mkLiteral "@fg0";
padding = mkLiteral "0px";
margin = mkLiteral "0px";
};
window = {

View File

@ -18,7 +18,7 @@
i18n.inputMethod = lib.mkForce {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc ];
};
};
# services.gnome.core-utilities.enable = false;
environment.gnome.excludePackages = [ pkgs.gnome-tour ];

View File

@ -8,8 +8,8 @@
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
auto-optimise-store = true;
substituters = ["https://nix-gaming.cachix.org"];
trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="];
substituters = [ "https://nix-gaming.cachix.org" ];
trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" ];
};
};
}