this repo has no description
0
fork

Configure Feed

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

:sparkles: added otter-launcher, fsel and micasa flakes

+564 -12
+402 -6
flake.lock
··· 40 40 "type": "github" 41 41 } 42 42 }, 43 + "fenix": { 44 + "inputs": { 45 + "nixpkgs": [ 46 + "fsel", 47 + "naersk", 48 + "nixpkgs" 49 + ], 50 + "rust-analyzer-src": "rust-analyzer-src" 51 + }, 52 + "locked": { 53 + "lastModified": 1752475459, 54 + "narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=", 55 + "owner": "nix-community", 56 + "repo": "fenix", 57 + "rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f", 58 + "type": "github" 59 + }, 60 + "original": { 61 + "owner": "nix-community", 62 + "repo": "fenix", 63 + "type": "github" 64 + } 65 + }, 66 + "flake-compat": { 67 + "flake": false, 68 + "locked": { 69 + "lastModified": 1767039857, 70 + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", 71 + "owner": "NixOS", 72 + "repo": "flake-compat", 73 + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", 74 + "type": "github" 75 + }, 76 + "original": { 77 + "owner": "NixOS", 78 + "repo": "flake-compat", 79 + "type": "github" 80 + } 81 + }, 82 + "flake-parts": { 83 + "inputs": { 84 + "nixpkgs-lib": "nixpkgs-lib" 85 + }, 86 + "locked": { 87 + "lastModified": 1768135262, 88 + "narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=", 89 + "owner": "hercules-ci", 90 + "repo": "flake-parts", 91 + "rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac", 92 + "type": "github" 93 + }, 94 + "original": { 95 + "owner": "hercules-ci", 96 + "repo": "flake-parts", 97 + "type": "github" 98 + } 99 + }, 100 + "flake-utils": { 101 + "inputs": { 102 + "systems": "systems" 103 + }, 104 + "locked": { 105 + "lastModified": 1731533236, 106 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 107 + "owner": "numtide", 108 + "repo": "flake-utils", 109 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 110 + "type": "github" 111 + }, 112 + "original": { 113 + "owner": "numtide", 114 + "repo": "flake-utils", 115 + "type": "github" 116 + } 117 + }, 118 + "flake-utils_2": { 119 + "inputs": { 120 + "systems": "systems_2" 121 + }, 122 + "locked": { 123 + "lastModified": 1731533236, 124 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 125 + "owner": "numtide", 126 + "repo": "flake-utils", 127 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 128 + "type": "github" 129 + }, 130 + "original": { 131 + "owner": "numtide", 132 + "repo": "flake-utils", 133 + "type": "github" 134 + } 135 + }, 136 + "fsel": { 137 + "inputs": { 138 + "flake-utils": "flake-utils", 139 + "naersk": "naersk", 140 + "nixpkgs": "nixpkgs_3" 141 + }, 142 + "locked": { 143 + "lastModified": 1772000104, 144 + "narHash": "sha256-PKMU7+iiuNf8dacbkIG+OaABs5WomdnHf0uVmUDm/eQ=", 145 + "owner": "Mjoyufull", 146 + "repo": "fsel", 147 + "rev": "e9da4e371997ee8479553433a5bb0b7da3df789a", 148 + "type": "github" 149 + }, 150 + "original": { 151 + "owner": "Mjoyufull", 152 + "repo": "fsel", 153 + "type": "github" 154 + } 155 + }, 156 + "git-hooks": { 157 + "inputs": { 158 + "flake-compat": "flake-compat", 159 + "gitignore": "gitignore", 160 + "nixpkgs": "nixpkgs_4" 161 + }, 162 + "locked": { 163 + "lastModified": 1772024342, 164 + "narHash": "sha256-+eXlIc4/7dE6EcPs9a2DaSY3fTA9AE526hGqkNID3Wg=", 165 + "owner": "cachix", 166 + "repo": "git-hooks.nix", 167 + "rev": "6e34e97ed9788b17796ee43ccdbaf871a5c2b476", 168 + "type": "github" 169 + }, 170 + "original": { 171 + "owner": "cachix", 172 + "repo": "git-hooks.nix", 173 + "type": "github" 174 + } 175 + }, 176 + "gitignore": { 177 + "inputs": { 178 + "nixpkgs": [ 179 + "micasa", 180 + "git-hooks", 181 + "nixpkgs" 182 + ] 183 + }, 184 + "locked": { 185 + "lastModified": 1709087332, 186 + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 187 + "owner": "hercules-ci", 188 + "repo": "gitignore.nix", 189 + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 190 + "type": "github" 191 + }, 192 + "original": { 193 + "owner": "hercules-ci", 194 + "repo": "gitignore.nix", 195 + "type": "github" 196 + } 197 + }, 43 198 "home-manager": { 44 199 "inputs": { 45 200 "nixpkgs": [ ··· 60 215 "type": "github" 61 216 } 62 217 }, 218 + "home-manager_2": { 219 + "inputs": { 220 + "nixpkgs": [ 221 + "otter-launcher", 222 + "nixpkgs" 223 + ] 224 + }, 225 + "locked": { 226 + "lastModified": 1769638001, 227 + "narHash": "sha256-hGwdJ/+oo+IRo2TiWV/V8BWWptQihcdFV/olTONaHqg=", 228 + "owner": "nix-community", 229 + "repo": "home-manager", 230 + "rev": "bd9f031efc634be4b80c5090b9171cc3a9f8e49c", 231 + "type": "github" 232 + }, 233 + "original": { 234 + "owner": "nix-community", 235 + "repo": "home-manager", 236 + "type": "github" 237 + } 238 + }, 239 + "micasa": { 240 + "inputs": { 241 + "flake-utils": "flake-utils_2", 242 + "git-hooks": "git-hooks", 243 + "nixpkgs": "nixpkgs_5" 244 + }, 245 + "locked": { 246 + "lastModified": 1772124990, 247 + "narHash": "sha256-ObAXntt/FJOMrRslsnPNDEQ/JC/xvz6tEokpqpHn+mE=", 248 + "owner": "cpcloud", 249 + "repo": "micasa", 250 + "rev": "1f95b1a7243adb88782533b56f1d007e53d12c2f", 251 + "type": "github" 252 + }, 253 + "original": { 254 + "owner": "cpcloud", 255 + "repo": "micasa", 256 + "type": "github" 257 + } 258 + }, 259 + "naersk": { 260 + "inputs": { 261 + "fenix": "fenix", 262 + "nixpkgs": "nixpkgs_2" 263 + }, 264 + "locked": { 265 + "lastModified": 1769799857, 266 + "narHash": "sha256-88IFXZ7Sa1vxbz5pty0Io5qEaMQMMUPMonLa3Ls/ss4=", 267 + "owner": "nix-community", 268 + "repo": "naersk", 269 + "rev": "9d4ed44d8b8cecdceb1d6fd76e74123d90ae6339", 270 + "type": "github" 271 + }, 272 + "original": { 273 + "owner": "nix-community", 274 + "repo": "naersk", 275 + "type": "github" 276 + } 277 + }, 63 278 "niri": { 64 279 "inputs": { 65 280 "niri-stable": "niri-stable", 66 281 "niri-unstable": "niri-unstable", 67 - "nixpkgs": "nixpkgs_2", 282 + "nixpkgs": "nixpkgs_6", 68 283 "nixpkgs-stable": "nixpkgs-stable", 69 284 "xwayland-satellite-stable": "xwayland-satellite-stable", 70 285 "xwayland-satellite-unstable": "xwayland-satellite-unstable" ··· 132 347 "type": "github" 133 348 } 134 349 }, 350 + "nixpkgs-lib": { 351 + "locked": { 352 + "lastModified": 1765674936, 353 + "narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=", 354 + "owner": "nix-community", 355 + "repo": "nixpkgs.lib", 356 + "rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85", 357 + "type": "github" 358 + }, 359 + "original": { 360 + "owner": "nix-community", 361 + "repo": "nixpkgs.lib", 362 + "type": "github" 363 + } 364 + }, 135 365 "nixpkgs-stable": { 136 366 "locked": { 137 367 "lastModified": 1770464364, ··· 150 380 }, 151 381 "nixpkgs_2": { 152 382 "locked": { 383 + "lastModified": 1752077645, 384 + "narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=", 385 + "owner": "NixOS", 386 + "repo": "nixpkgs", 387 + "rev": "be9e214982e20b8310878ac2baa063a961c1bdf6", 388 + "type": "github" 389 + }, 390 + "original": { 391 + "owner": "NixOS", 392 + "ref": "nixpkgs-unstable", 393 + "repo": "nixpkgs", 394 + "type": "github" 395 + } 396 + }, 397 + "nixpkgs_3": { 398 + "locked": { 399 + "lastModified": 1771848320, 400 + "narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=", 401 + "owner": "NixOS", 402 + "repo": "nixpkgs", 403 + "rev": "2fc6539b481e1d2569f25f8799236694180c0993", 404 + "type": "github" 405 + }, 406 + "original": { 407 + "owner": "NixOS", 408 + "ref": "nixos-unstable", 409 + "repo": "nixpkgs", 410 + "type": "github" 411 + } 412 + }, 413 + "nixpkgs_4": { 414 + "locked": { 415 + "lastModified": 1770073757, 416 + "narHash": "sha256-Vy+G+F+3E/Tl+GMNgiHl9Pah2DgShmIUBJXmbiQPHbI=", 417 + "owner": "NixOS", 418 + "repo": "nixpkgs", 419 + "rev": "47472570b1e607482890801aeaf29bfb749884f6", 420 + "type": "github" 421 + }, 422 + "original": { 423 + "owner": "NixOS", 424 + "ref": "nixpkgs-unstable", 425 + "repo": "nixpkgs", 426 + "type": "github" 427 + } 428 + }, 429 + "nixpkgs_5": { 430 + "locked": { 431 + "lastModified": 1772064736, 432 + "narHash": "sha256-xwL+opBKxhoIVlg/jjv1yghwKI+MZQLWyo/YWNXKOck=", 433 + "owner": "NixOS", 434 + "repo": "nixpkgs", 435 + "rev": "89b61a4c827bf12b223642f59fcc0753efd528cb", 436 + "type": "github" 437 + }, 438 + "original": { 439 + "owner": "NixOS", 440 + "ref": "nixos-unstable-small", 441 + "repo": "nixpkgs", 442 + "type": "github" 443 + } 444 + }, 445 + "nixpkgs_6": { 446 + "locked": { 153 447 "lastModified": 1770562336, 154 448 "narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=", 155 449 "owner": "NixOS", ··· 164 458 "type": "github" 165 459 } 166 460 }, 167 - "nixpkgs_3": { 461 + "nixpkgs_7": { 168 462 "locked": { 169 463 "lastModified": 1770562336, 170 464 "narHash": "sha256-ub1gpAONMFsT/GU2hV6ZWJjur8rJ6kKxdm9IlCT0j84=", ··· 180 474 "type": "github" 181 475 } 182 476 }, 183 - "nixpkgs_4": { 477 + "nixpkgs_8": { 478 + "locked": { 479 + "lastModified": 1769461804, 480 + "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=", 481 + "owner": "NixOS", 482 + "repo": "nixpkgs", 483 + "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d", 484 + "type": "github" 485 + }, 486 + "original": { 487 + "owner": "NixOS", 488 + "ref": "nixos-unstable", 489 + "repo": "nixpkgs", 490 + "type": "github" 491 + } 492 + }, 493 + "nixpkgs_9": { 184 494 "locked": { 185 495 "lastModified": 1762111121, 186 496 "narHash": "sha256-4vhDuZ7OZaZmKKrnDpxLZZpGIJvAeMtK6FKLJYUtAdw=", ··· 196 506 "type": "github" 197 507 } 198 508 }, 509 + "otter-launcher": { 510 + "inputs": { 511 + "flake-parts": "flake-parts", 512 + "home-manager": "home-manager_2", 513 + "nixpkgs": "nixpkgs_8", 514 + "systems": "systems_3" 515 + }, 516 + "locked": { 517 + "lastModified": 1771555910, 518 + "narHash": "sha256-tTqkVD4c8JK5UILju9IF9cXa7eP1S+mehnjWmVHb3sA=", 519 + "owner": "kuokuo123", 520 + "repo": "otter-launcher", 521 + "rev": "c07b437da5fd466d5eb511fc7a3a2b373c51747c", 522 + "type": "github" 523 + }, 524 + "original": { 525 + "owner": "kuokuo123", 526 + "repo": "otter-launcher", 527 + "type": "github" 528 + } 529 + }, 199 530 "root": { 200 531 "inputs": { 201 532 "ags": "ags", 533 + "fsel": "fsel", 202 534 "home-manager": "home-manager", 535 + "micasa": "micasa", 203 536 "niri": "niri", 204 - "nixpkgs": "nixpkgs_3", 537 + "nixpkgs": "nixpkgs_7", 538 + "otter-launcher": "otter-launcher", 205 539 "vicinae": "vicinae" 206 540 } 207 541 }, 542 + "rust-analyzer-src": { 543 + "flake": false, 544 + "locked": { 545 + "lastModified": 1752428706, 546 + "narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=", 547 + "owner": "rust-lang", 548 + "repo": "rust-analyzer", 549 + "rev": "591e3b7624be97e4443ea7b5542c191311aa141d", 550 + "type": "github" 551 + }, 552 + "original": { 553 + "owner": "rust-lang", 554 + "ref": "nightly", 555 + "repo": "rust-analyzer", 556 + "type": "github" 557 + } 558 + }, 208 559 "systems": { 209 560 "locked": { 210 561 "lastModified": 1681028828, ··· 220 571 "type": "github" 221 572 } 222 573 }, 574 + "systems_2": { 575 + "locked": { 576 + "lastModified": 1681028828, 577 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 578 + "owner": "nix-systems", 579 + "repo": "default", 580 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 581 + "type": "github" 582 + }, 583 + "original": { 584 + "owner": "nix-systems", 585 + "repo": "default", 586 + "type": "github" 587 + } 588 + }, 589 + "systems_3": { 590 + "locked": { 591 + "lastModified": 1689347949, 592 + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", 593 + "owner": "nix-systems", 594 + "repo": "default-linux", 595 + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", 596 + "type": "github" 597 + }, 598 + "original": { 599 + "owner": "nix-systems", 600 + "repo": "default-linux", 601 + "type": "github" 602 + } 603 + }, 604 + "systems_4": { 605 + "locked": { 606 + "lastModified": 1681028828, 607 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 608 + "owner": "nix-systems", 609 + "repo": "default", 610 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 611 + "type": "github" 612 + }, 613 + "original": { 614 + "owner": "nix-systems", 615 + "repo": "default", 616 + "type": "github" 617 + } 618 + }, 223 619 "vicinae": { 224 620 "inputs": { 225 - "nixpkgs": "nixpkgs_4", 226 - "systems": "systems" 621 + "nixpkgs": "nixpkgs_9", 622 + "systems": "systems_4" 227 623 }, 228 624 "locked": { 229 625 "lastModified": 1770672288,
+10
flake.nix
··· 10 10 niri.url = "github:sodiboo/niri-flake"; 11 11 ags.url = "github:Aylur/ags"; 12 12 vicinae.url = "github:vicinaehq/vicinae"; 13 + fsel.url = "github:Mjoyufull/fsel"; 14 + micasa.url = "github:cpcloud/micasa"; 15 + otter-launcher.url = "github:kuokuo123/otter-launcher"; 13 16 }; 14 17 15 18 outputs = { ··· 18 21 home-manager, 19 22 niri, 20 23 vicinae, 24 + fsel, 25 + micasa, 21 26 ... 22 27 } @ inputs: let 23 28 system = "x86_64-linux"; ··· 76 81 vicinae.homeManagerModules.default 77 82 ./home 78 83 ./home/personal.nix 84 + { 85 + home.packages = [ 86 + fsel.packages."${system}".default 87 + ]; 88 + } 79 89 ]; 80 90 }; 81 91 };
+2
home/default.nix
··· 37 37 just 38 38 tealdeer 39 39 bat 40 + fzf 41 + btop 40 42 41 43 # Tools 42 44 pass
+125
home/otter-launcher/config.toml
··· 1 + # ██████╗ ████████╗████████╗███████╗██████╗ 2 + # ██╔═══██╗╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗ 3 + # ██║ ██║ ██║ ██║ █████╗ ██████╔╝█████╗ 4 + # ██║ ██║ ██║ ██║ ██╔══╝ ██╔══██╗╚════╝ 5 + # ╚██████╔╝ ██║ ██║ ███████╗██║ ██║ 6 + # ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ 7 + # ██╗ █████╗ ██╗ ██╗███╗ ██╗ ██████╗██╗ ██╗███████╗██████╗ 8 + # ██║ ██╔══██╗██║ ██║████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗ 9 + # ██║ ███████║██║ ██║██╔██╗ ██║██║ ███████║█████╗ ██████╔╝ 10 + # ██║ ██╔══██║██║ ██║██║╚██╗██║██║ ██╔══██║██╔══╝ ██╔══██╗ 11 + # ███████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╗██║ ██║███████╗██║ ██║ 12 + # ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ 13 + 14 + # Terminal shell script launcher, written in rust 15 + # Source Code: https://github.com/kuokuo123/otter-launcher 16 + 17 + # Recommended to be used in companion with sway-launcher-desktop to launch desktop applications 18 + # https://github.com/Biont/sway-launcher-desktop 19 + 20 + 21 + [general] 22 + default_module = "gg" # module to run when no prefix is matched 23 + empty_module = "app" # run with an empty prompt 24 + exec_cmd = "sh -c" # exec command of your shell 25 + # for example: "bach -c" for bash; "zsh -c" for zsh; also accept wm commands like "hyprctl dispatch exec" 26 + vi_mode = true # set true to use vi keybinds, false emacs keybinds 27 + esc_to_abort = true # useful for vi users 28 + cheatsheet_entry = "?" # when prompted, will show a list of configured modules 29 + cheatsheet_viewer = "less -R; clear" # command to show cheatsheet; through piping stdout 30 + clear_screen_after_execution = false 31 + loop_mode = false # don't quit after executing a module, useful with scratchpads; stderr is hidden in loop mode 32 + external_editor = "nvim" # if set, press ctrl+x ctrl+ee (or v in vi normal mode) to edit prompt in the specified program 33 + delay_startup = 0 # sometimes the otter runs too fast even before the terminal window is ready; this slows it down by milliseconds; useful when chafa image is skewed 34 + #callback = "" # if set, will run after module execution; for example, calling swaymsg to adjust window size 35 + 36 + 37 + # ANSI color codes are allowed. However, \x1b should be replaced with \u001B, because the rust toml crate cannot read \x as an escaped character 38 + [interface] 39 + header = """ 40 + ┌ \u001B[1;34m $USER@$(echo $HOSTNAME) \u001B[0m─────┐ 41 + │ \u001B[90m󱎘 \u001B[31m󱎘 \u001B[32m󱎘 \u001B[33m󱎘 \u001B[34m󱎘 \u001B[35m󱎘 \u001B[36m󱎘\u001B[0m │ 42 + └ \u001B[90m󱎘 \u001B[31m󱎘 \u001B[32m󱎘 \u001B[33m󱎘 \u001B[34m󱎘 \u001B[35m󱎘 \u001B[36m󱎘\u001B[0m ┘ 43 + ┌ \u001B[33m \u001B[1;36m window \u001B[0m $XDG_CURRENT_DESKTOP ┐ 44 + │ \u001B[31m \u001B[1;36m loads\u001B[0m $(cat /proc/loadavg | cut -d ' ' -f 1) │ 45 + │ \u001B[32m \u001B[1;36m memory\u001B[0m $(free -h | awk 'FNR == 2 {print $3}') │ 46 + │ \u001B[90m\u001B[0m """ 47 + list_prefix = " └ \u001B[34m󱓞 " 48 + selection_prefix = " └ \u001B[31m󱓞 " 49 + default_module_message = " └ \u001B[34m󱓞 \u001B[33msearch\u001B[0m the internet" 50 + 51 + place_holder = "type & search" # at the input field 52 + suggestion_mode = "list" # available options: list, hint 53 + suggestion_lines = 1 # 0 to disable suggestions and tab completion 54 + empty_module_message = "" # shown when the empty module is in use 55 + customized_list_order = false # false to list modules alphabetically; true to list as per the configured order in the below [[modules]] section 56 + indicator_with_arg_module = "" # the sign showing whether a module should run with an argument 57 + indicator_no_arg_module = "" 58 + # below color options affect all modules; per-module coloring can be configured using ansi codes individually 59 + prefix_color = "\u001B[33m" 60 + description_color = "\u001B[39m" 61 + place_holder_color = "\u001B[30m" 62 + hint_color = "\u001B[30m" # suggestion color in hint mode 63 + # move the interface rightward or downward 64 + move_interface_right = 16 65 + move_interface_down = 1 66 + 67 + 68 + # overlay is a floating layer that can be printed with stdout and moved around; useful for integrating chafa images 69 + [overlay] 70 + # run a command and print stdout on the overlay layer 71 + overlay_cmd = """ 72 + cat ~/.config/otter-launcher/pikachu.example \ 73 + || echo -e "The file pickachu.example is not found. Pikachu can be at the below blank area. Fix this by modifying the overlay_cmd option in your config file.\n\n" 74 + """ 75 + overlay_trimmed_lines = 0 # remove trailing lines from overlay_cmd output 76 + overlay_height = 0 # set overlay size; 0 to be auto; 1 is one line, 2 two lines, etc; kitty & sixel image size can be determined automatically; others should be set mannually; try modify this whenever you meet issues releated to image height 77 + move_overlay_right = 0 # move the overlay layer around for theming 78 + move_overlay_down = 0 79 + 80 + 81 + # modules are defined as followed 82 + [[modules]] 83 + description = "google search" 84 + prefix = "gg" 85 + cmd = "xdg-open https://www.google.com/search?q='{}'" 86 + with_argument = true # if true, {} in cmd will be replaced with user input. if not explicitly set, taken as false. 87 + url_encode = true # should be true when calling webpages; this ensures special characters in url being readable to browsers; taken as false if not explicitly set 88 + unbind_proc = true # run cmd in a forked shell as opposed to as a child process (simply by prepending setsid -f to the configured cmd); useful for launching gui programs; taken as false if not explicitly set 89 + 90 + # fzf is needed to run below functions 91 + [[modules]] 92 + description = "desktop programs" 93 + prefix = "app" 94 + cmd = "fsel" 95 + 96 + [[modules]] 97 + description = "power menu (fzf)" 98 + prefix = "po" 99 + cmd = """ 100 + function power { 101 + if [[ -n $1 ]]; then 102 + case $1 in 103 + "logout") session=`loginctl session-status | head -n 1 | awk '{print $1}'`; loginctl terminate-session $session ;; 104 + "suspend") systemctl suspend ;; 105 + "hibernate") systemctl hibernate ;; 106 + "reboot") systemctl reboot ;; 107 + "shutdown") systemctl poweroff ;; 108 + esac fi } 109 + power $(echo -e 'reboot\nshutdown\nlogout\nsuspend\nhibernate' | fzf --padding 1,2 --info-command 'printf " power menu ($FZF_POS/$FZF_TOTAL_COUNT)"' --cycle --gutter " " --pointer " ▌" --color "bg+:-1,pointer:1,info:8,separator:8,scrollbar:0" --prompt ' ' | tail -1) 110 + """ 111 + 112 + [[modules]] 113 + description = "search packages" 114 + prefix = "np" 115 + cmd = "qutebrowser 'https://search.nixos.org/packages?channel=unstable&query={}'" 116 + with_argument = true 117 + url_encode = true 118 + unbind_proc = true 119 + 120 + [[modules]] 121 + description = "open files (fzf)" 122 + prefix = "fo" 123 + cmd = """ 124 + find $HOME -type f -not -path '*/.cache/*' 2>/dev/null | fzf --padding 1,3 --info-command 'printf " files ($FZF_POS/$FZF_TOTAL_COUNT)"' --cycle --gutter ' ' --pointer ' ▌' --color 'bg+:-1,pointer:1,info:8,separator:8,scrollbar:0' --prompt ' ' | setsid -f xargs -r -I [] xdg-open '[]' 125 + """
+4
home/otter-launcher/default.nix
··· 1 + { 2 + home.file.".config/otter-launcher/config.toml".source = ./config.toml; 3 + home.file.".config/otter-launcher/pikachu.example".source = ./pikachu.example; 4 + }
+8
home/otter-launcher/pikachu.example
··· 1 + [?25l▃▚▄ ▗╴▁▁▄▄▖▖▖  2 + ▇ ▂┈▁▌▇▆▉▄▖▁┈  3 +  ▁▄▇▆▇▁▁┈╶▄▗▎▎▁ 4 + ▗▝▖▄▌▉▇▇▄▘▝▝▄╴▂ 5 + ▇▝▂▏▁▂▄──▘▍▇▇▇▂ 6 + ▂▅▅▅▅▇▗▗▏▂▂▁▎▝▝ 7 + ▖▝▅▄▂▂▂▂▂▂▂▂▂▅▅ 8 + ▇▅▅▂▂▖▅▅▅▅▝▖╴▂▃ [?25h
+13 -6
home/personal.nix
··· 1 1 { 2 2 config, 3 3 pkgs, 4 + inputs, 4 5 ... 5 6 }: { 6 7 imports = [ 7 8 ./firefox 8 9 ./keyboard 10 + ./otter-launcher 9 11 ]; 10 12 11 13 # The home.packages option allows you to install Nix packages into your 12 14 # environment. 13 - home.packages = with pkgs; [ 14 - ghc 15 - ledger 16 - hledger 17 - qutebrowser 18 - ]; 15 + home.packages = with pkgs; 16 + [ 17 + ghc 18 + ledger 19 + hledger 20 + qutebrowser 21 + ] 22 + ++ [ 23 + inputs.micasa.packages."${system}".default 24 + inputs.otter-launcher.packages."${system}".default 25 + ]; 19 26 20 27 programs.git = { 21 28 settings.user.email = "pedro8correa@gmail.com";