this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use notes for bookmarks

Ben C 3c26b29d f4cc1a93

+22 -1
+1 -1
homeModules/firefox.nix
··· 33 33 AppAutoUpdate = false; 34 34 DNSOverHTTPS.Enabled = true; 35 35 ShowHomeButton = true; 36 - DisplayBookmarksToolbar = "always"; 36 + DisplayBookmarksToolbar = "never"; 37 37 DisableProfileImport = true; 38 38 DisablePocket = true; 39 39 DisableFirefoxAccounts = true;
+1
homeModules/gdi.nix
··· 256 256 257 257 # Rofi 258 258 "Mod+S".action = spawnRofi "-show" "drun" "-show-icons"; 259 + "Mod+Space".action = spawnPkg pkgs.nushell "${../res/open-bookmark.nu}" "~/Documents/Docs/Note"; 259 260 "Mod+B".action = spawnPkg pkgs.rofi-bluetooth; 260 261 "Mod+Shift+E".action = spawnRofi "-modi" "emoji" "-show" "emoji"; 261 262 "Mod+Alt+C".action =
+20
res/open-bookmark.nu
··· 1 + #!/usr/bin/env nu 2 + 3 + def main [base: path = .] { 4 + let bookmarks = rg ".+: <https://.*>" $base --json | lines | par-each {from json} 5 + | where type == "match" | get data; 6 + 7 + let bookmarks_disp = $bookmarks | par-each {|it| 8 + let s = $it.lines.text | str trim | str trim --char "-" | str trim | split row "<"; 9 + let display = $s | first | str trim | str trim --char ":" | str replace --all "&" "&amp;"; 10 + let url = $s | get 1 | str trim --char ">" | str trim; 11 + let disp_url = $url | str replace "https://" "" | str trim --char "/" | str replace --all "&" "&amp;"; 12 + let m = char --integer 0x1f; 13 + let file = $it.path.text | str trim | path basename; 14 + $"($url)|($display)|($file)(char --integer 0x0)display($m)($display) <small>($disp_url)</small>" 15 + }; 16 + 17 + let choice = $bookmarks_disp | str join "\n" | rofi -i -dmenu -markup-rows | split row "|" | first; 18 + 19 + xdg-open $choice; 20 + }