Merge branch 'main' of ssh://codeberg.org/dnscio/nix-config
This commit is contained in:
commit
fb5b9c6f85
5 changed files with 58 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
../modules/wezterm
|
../modules/wezterm
|
||||||
../modules/nvim
|
../modules/nvim
|
||||||
../modules/lazygit
|
../modules/lazygit
|
||||||
|
../modules/raycast
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
|
||||||
7
modules/raycast/default.nix
Normal file
7
modules/raycast/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
xdg.configFile."raycast-scripts" = {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/nix-config/modules/raycast/scripts";
|
||||||
|
};
|
||||||
|
}
|
||||||
18
modules/raycast/scripts/add-to-inbox.sh
Executable file
18
modules/raycast/scripts/add-to-inbox.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Required parameters:
|
||||||
|
# @raycast.schemaVersion 1
|
||||||
|
# @raycast.title Add to Inbox
|
||||||
|
# @raycast.mode silent
|
||||||
|
|
||||||
|
# Optional parameters:
|
||||||
|
# @raycast.icon 🤖
|
||||||
|
# @raycast.argument1 { "type": "text", "placeholder": "Placeholder" }
|
||||||
|
|
||||||
|
# Documentation:
|
||||||
|
# @raycast.description Adds a task to my org inbox
|
||||||
|
# @raycast.author dnsc
|
||||||
|
# @raycast.authorURL https://raycast.com/dnsc
|
||||||
|
|
||||||
|
emacsclient -e "(dnsc/add-to-inbox \"* TODO $1\n\")"
|
||||||
|
echo "Added new task to inbox"
|
||||||
16
modules/raycast/scripts/emacsclient.sh
Executable file
16
modules/raycast/scripts/emacsclient.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Required parameters:
|
||||||
|
# @raycast.schemaVersion 1
|
||||||
|
# @raycast.title Emacs Client
|
||||||
|
# @raycast.mode silent
|
||||||
|
|
||||||
|
# Optional parameters:
|
||||||
|
# @raycast.icon 🤖
|
||||||
|
|
||||||
|
# Documentation:
|
||||||
|
# @raycast.description Opens new emacsclient frame
|
||||||
|
# @raycast.author dnsc
|
||||||
|
# @raycast.authorURL https://raycast.com/dnsc
|
||||||
|
|
||||||
|
emacsclient -a "" -c
|
||||||
16
modules/raycast/scripts/open-agenda.sh
Executable file
16
modules/raycast/scripts/open-agenda.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Required parameters:
|
||||||
|
# @raycast.schemaVersion 1
|
||||||
|
# @raycast.title Open Agenda
|
||||||
|
# @raycast.mode silent
|
||||||
|
|
||||||
|
# Optional parameters:
|
||||||
|
# @raycast.icon 🤖
|
||||||
|
|
||||||
|
# Documentation:
|
||||||
|
# @raycast.description Opens org agenda.
|
||||||
|
# @raycast.author dnsc
|
||||||
|
# @raycast.authorURL https://raycast.com/dnsc
|
||||||
|
|
||||||
|
emacsclient -r --eval "(dnsc/open-agenda-only-window)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue