mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
firefox: sessions
This commit is contained in:
parent
d82799ad46
commit
63861d797e
5 changed files with 41 additions and 5 deletions
|
|
@ -71,8 +71,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-hard.yaml";
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-dawn.yaml";
|
||||
image = ./wallpaper.jpg;
|
||||
polarity = "dark";
|
||||
polarity = "light";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ in {
|
|||
# proton-vpn
|
||||
styl-us
|
||||
kiss-translator
|
||||
auto-tab-discard
|
||||
|
||||
# Disabled
|
||||
# view-page-archive # Web Archives
|
||||
|
|
|
|||
|
|
@ -17,15 +17,22 @@
|
|||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"toolkit.tabbox.switchByScrolling" = true;
|
||||
"browser.uidensity" = 1;
|
||||
# Disable Menu when pressing <Alt>
|
||||
### Disable Menu when pressing <Alt>
|
||||
"ui.key.menuAccessKey" = -1;
|
||||
"ui.key.menuAccessKeyFocuses" = false;
|
||||
# Disable Translations
|
||||
### Disable Translations
|
||||
"browser.translations.enable" = false;
|
||||
"browser.translations.automaticallyPopup" = false;
|
||||
# CJK IME Optimisation
|
||||
### CJK IME Optimisation
|
||||
"browser.urlbar.keepPanelOpenDuringImeComposition" = true;
|
||||
"browser.tabs.closeTabByDblclick" = true;
|
||||
### Session
|
||||
# * 0: Blank Page
|
||||
# * 1: Home Page
|
||||
# * 2: Last Visited Pages
|
||||
# * 3: Restore Previous Session
|
||||
"browser.startup.page" = 3;
|
||||
"browser.sessionstore.resume_from_crash" = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
in {
|
||||
imports = [
|
||||
./vimrc-support.nix
|
||||
./obsidian-grep.nix
|
||||
];
|
||||
programs.obsidian = {
|
||||
enable = false;
|
||||
|
|
|
|||
27
nixcfgs/users/js0ny/programs/obsidian/obsidian-grep.nix
Normal file
27
nixcfgs/users/js0ny/programs/obsidian/obsidian-grep.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{pkgs, ...}: {
|
||||
obsidian-grep = pkgs.writeShellApplication {
|
||||
name = "obsidian-grep";
|
||||
runtimeInputs = with pkgs; [fzf rg];
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
BASE_DIR="$HOME/Obsidian"
|
||||
VAULT="Obsidian"
|
||||
# PATTERN="''${1:-ob}"
|
||||
|
||||
cd "$BASE_DIR" || {
|
||||
echo "Error: Cannot access $BASE_DIR"
|
||||
exit 1
|
||||
}
|
||||
|
||||
rg --line-number --color=always "" |
|
||||
fzf --ansi \
|
||||
--delimiter : \
|
||||
--preview 'bat --color=always --highlight-line {2} {1}' \
|
||||
--preview-window 'up,+{2}/2' \
|
||||
--header $'Enter: open file Ctrl-O: open in Obsidian Ctrl-T: Tag search Esc: quit' \
|
||||
--bind 'enter:execute(xdg-open {1})+abort' \
|
||||
--bind "ctrl-o:execute(sh -c 'encoded=\$(printf %s \"{1}\" | sed \"s/ /%20/g\"); xdg-open \"obsidian://open?vault=''${VAULT}&file=\$encoded\"')+abort"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue