main
  1general:
  2  ui_type: native
  3  theme: light
  4  font_family: JetBrainsMono Nerd Font Mono
  5  font_size: 16
  6  window_width: 1200
  7  window_height: 760
  8  preview:
  9    width_percent: 50
 10  theme_colors:
 11    bg_base: '#ffffff'
 12    bg_input: '#f2f2f2'
 13    accent: '#005f5f'
 14    accent_hover: '#005e8b'
 15    text_main: '#000000'
 16    text_muted: '#595959'
 17    selection_bg: '#dae5ec'
 18    border: '#9f9f9f'
 19addons:
 20  currency:
 21    enabled: true
 22    trigger: €
 23    default_currency: EUR
 24    currencies:
 25    - EUR
 26    - USD
 27    - GBP
 28    - CHF
 29    - JPY
 30  calculator:
 31    enabled: true
 32  emoji:
 33    enabled: true
 34  file_browser:
 35    enabled: true
 36  windows:
 37    enabled: true
 38    trigger: win
 39  slack:
 40    enabled: true
 41    token_command: "passage show redhat/slack/token"
 42    cookie_command: "passage show redhat/slack/cookie"
 43    open_in: desktop
 44  script_filters:
 45  - name: Timezones
 46    keyword: tz
 47    command: batz
 48    args:
 49    - -j
 50    icon: clock
 51  - name: Worktrees
 52    keyword: wt
 53    command: ~/.config/raffi/scripts/lazyworktree-raffi
 54    icon: folder-git
 55    action: kitty --title Worktrees --directory {value} lazyworktree
 56  - name: Pull Requests
 57    keyword: lpr
 58    command: ~/.config/raffi/scripts/lazypr-raffi
 59    icon: github
 60    action: kitty --title 'PRs' lazypr {value}
 61  - name: Shpool Sessions
 62    keyword: sp
 63    command: ~/.config/raffi/scripts/shpool-raffi
 64    icon: utilities-terminal
 65    action: kitty --title shpool:{value} ssh {value}
 66  - name: Herdr
 67    keyword: hr
 68    command: ~/.config/raffi/scripts/herdr/herdr_filter.py
 69    icon: utilities-terminal
 70    env:
 71      HERDR_ICON_SET: mono-light
 72    action: >-
 73      case "$HERDR_KIND" in
 74        workspace) herdr workspace focus "$HERDR_FOCUS" ;;
 75        tab) herdr tab focus "$HERDR_FOCUS" ;;
 76        agent) herdr agent focus "$HERDR_FOCUS" ;;
 77        *) herdr tab focus "$HERDR_FOCUS" ;;
 78      esac
 79    secondary_action: >-
 80      case "$HERDR_KIND" in
 81        agent) ~/.config/raffi/scripts/herdr-raffi action message "$HERDR_FOCUS" ;;
 82      esac
 83  - name: Open in Emacs
 84    keyword: ed
 85    command: ~/.config/raffi/scripts/emacs-recentf-raffi
 86    icon: emacs
 87    action: emacsclient -c -a emacs {value}
 88  - name: Org Search
 89    keyword: org
 90    command: ~/.config/raffi/scripts/org-search-raffi
 91    icon: emacs
 92    action: emacsclient -c -a emacs --eval '(find-file "{value}")'
 93  - name: Denote Notes
 94    keyword: dn
 95    command: ~/.config/raffi/scripts/denote-raffi
 96    icon: emacs
 97    action: emacsclient -c -a emacs {value}
 98  - name: Kitty SSH
 99    keyword: ssh
100    command: ~/.config/raffi/scripts/ssh-raffi
101    icon: utilities-terminal
102    action: 'kitty --title ''SSH: {value}'' ssh {value}'
103  - name: Man Pages
104    keyword: man
105    command: ~/.config/raffi/scripts/man-raffi
106    icon: help-contents
107    action: kitty --title 'man {value}' sh -c 'man {value} | col -bx | bat -l man -p'
108  - name: Displays
109    keyword: display
110    command: ~/.config/raffi/scripts/niri-display-raffi
111    icon: video-display
112    action: ~/.config/raffi/scripts/niri-display {value}
113  - name: Kill Window
114    keyword: kill
115    command: ~/.config/raffi/scripts/niri-windows-raffi
116    icon: window-close
117    action: niri msg action close-window --id {value}
118  - name: Org Capture
119    keyword: cap
120    command: ~/.config/raffi/scripts/org-capture-raffi
121    icon: emacs
122    action: emacsclient -c -F '((name . "capture") (width . 150) (height . 90) (vde/window-popup-frame . t))' -e '(org-capture nil "{value}")' &
123  - name: Bluetooth
124    keyword: bt
125    command: ~/.config/raffi/scripts/bluetooth-raffi
126    icon: bluetooth
127    action: bluetoothctl connect {value}
128    secondary_action: bluetoothctl disconnect {value}
129  - name: IDs & Timestamps
130    keyword: uid
131    command: ~/.config/raffi/scripts/uid-raffi
132    icon: clock
133  - name: Power Profile
134    keyword: pw
135    command: ~/.config/raffi/scripts/power-profile-raffi
136    icon: battery
137    action: busctl set-property net.hadess.PowerProfiles /net/hadess/PowerProfiles net.hadess.PowerProfiles ActiveProfile s {value}
138  - name: YubiKey OATH
139    keyword: otp
140    command: ~/.config/raffi/scripts/yubikey-oath-raffi
141    icon: security-high
142    action: ~/.config/raffi/scripts/yubikey-oath-copy {value}
143  - name: Passage Passwords
144    keyword: passage
145    command: ~/.config/raffi/scripts/passage-raffi
146    icon: dialog-password
147    action: ~/.config/raffi/scripts/passage-raffi-copy {value}
148  - name: GitHub Pull Requests
149    keyword: pr
150    command: ~/.config/raffi/scripts/github/pr.py
151    icon: github
152    action: xdg-open {value}
153    secondary_action: echo -n {value} | wl-copy
154  text_snippets:
155  - name: Emails
156    keyword: em
157    icon: email
158    file: ~/sync/raffi-snippets/emails.yaml
159  - name: Addresses
160    keyword: addr
161    icon: contact
162    file: ~/sync/raffi-snippets/addresses.yaml
163  - name: Red Hat
164    keyword: rh
165    icon: key
166    file: ~/sync/raffi-snippets/redhat.yaml
167  - name: Links
168    keyword: lnk
169    icon: insert-link
170    snippets:
171    - name: GitHub (vdemeester)
172      value: https://github.com/vdemeester
173    - name: GitHub PRs (review requested)
174      value: https://github.com/pulls/review-requested
175    - name: NixOS Search
176      value: https://search.nixos.org
177    - name: Nix PR Tracker
178      value: https://nixpk.gs/pr-tracker.html
179    - name: Home Manager Options
180      value: https://nix-community.github.io/home-manager/options.xhtml
181    - name: Jira Board
182      value: https://issues.redhat.com/secure/RapidBoard.jspa
183    - name: Prow (OpenShift CI)
184      value: https://prow.ci.openshift.org
185  - name: Email Signatures
186    keyword: sig
187    icon: mail
188    file: ~/sync/raffi-snippets/signatures.yaml
189  - name: Git Trailers
190    keyword: git
191    icon: git
192    snippets:
193    - name: Signed-off-by
194      value: 'Signed-off-by: Vincent Demeester <vincent@sbr.pm>'
195    - name: Signed-off-by (Red Hat)
196      value: 'Signed-off-by: Vincent Demeester <vdemeest@redhat.com>'
197    - name: Acked-by
198      value: 'Acked-by: Vincent Demeester <vincent@sbr.pm>'
199    - name: Reviewed-by
200      value: 'Reviewed-by: Vincent Demeester <vincent@sbr.pm>'
201    - name: Tested-by
202      value: 'Tested-by: Vincent Demeester <vincent@sbr.pm>'
203    - name: Co-authored-by
204      value: 'Co-authored-by: Vincent Demeester <vincent@sbr.pm>'
205    - name: /lgtm
206      value: /lgtm
207    - name: /approve
208      value: /approve
209    - name: /lgtm + /approve
210      value: |-
211        /lgtm
212        /approve
213    - name: /retest
214      value: /retest
215    - name: LGTM message
216      value: Thanks for the contribution! LGTM.
217    - name: WIP
218      value: '[WIP] This is a work in progress, please do not merge yet.'
219  web_searches:
220  - name: Google
221    keyword: g
222    url: https://google.com/search?q={query}
223    icon: google
224  - name: GitHub
225    keyword: gh
226    url: https://github.com/search?q={query}&type=repositories
227    icon: github
228  - name: Nix Packages
229    keyword: nix
230    url: https://search.nixos.org/packages?query={query}
231    icon: nix
232  - name: YouTube
233    keyword: yt
234    url: https://www.youtube.com/results?search_query={query}
235    icon: youtube
236  - name: Wikipedia
237    keyword: wp
238    url: https://en.wikipedia.org/w/index.php?search={query}
239    icon: wikipedia
240version: 1
241launchers:
242  chrome-work:
243    binary: google-chrome-stable
244    args:
245    - --profile-directory=Default
246    description: Chrome Work
247    icon: google-chrome
248  chrome-personal:
249    binary: google-chrome-stable
250    args:
251    - --profile-directory=Profile 1
252    description: Chrome Personal
253    icon: google-chrome
254  firefox-work:
255    description: Firefox Work
256    icon: firefox
257    script: exec ~/.config/raffi/scripts/firefox-profile-raffi work
258  firefox-personal:
259    description: Firefox Personal
260    icon: firefox
261    script: exec ~/.config/raffi/scripts/firefox-profile-raffi personal
262  firefox:
263    binary: firefox
264    description: Firefox
265    icon: firefox
266  firefox-private:
267    binary: firefox
268    args:
269    - --private-window
270    description: Firefox Private Window
271    icon: firefox
272  firefox-profile-manager:
273    binary: firefox
274    args:
275    - --ProfileManager
276    description: Firefox Profile Manager
277    icon: firefox
278  feishin:
279    binary: feishin
280    description: Feishin (Music)
281    icon: feishin
282  slack:
283    description: Slack
284    icon: slack
285    script: |
286      if command -v slack >/dev/null; then exec slack
287      else exec flatpak run com.slack.Slack; fi
288  mpv-clipboard:
289    description: Play URL from clipboard (mpv)
290    icon: mpv
291    ifexist: mpv
292    script: |
293      wl-paste | xargs mpv
294  dino:
295    binary: dino
296    description: Dino (XMPP)
297    icon: dino
298  gh-news:
299    description: GitHub Notifications
300    icon: github
301    ifexist: gh
302    script: |
303      kitty --title "gh-news" gh-news
304  htop:
305    description: System Monitor
306    icon: htop
307    ifexist: htop
308    script: |
309      kitty --title "htop" htop
310  emacs:
311    binary: emacsclient
312    args:
313    - -c
314    - -a
315    - emacs
316    description: Emacs
317    icon: emacs
318  org-capture:
319    binary: org-capture
320    description: Org Capture
321    icon: emacs
322  kitty:
323    binary: kitty
324    description: Kitty Terminal
325    icon: kitty
326  nautilus:
327    binary: nautilus
328    args:
329    - ~/desktop/downloads
330    description: File Manager (Downloads)
331    icon: system-file-manager
332  cliphist:
333    binary: cliphist
334    args:
335    - list
336    description: Clipboard History
337    icon: accessories-clipboard
338    script: |
339      cliphist list | fuzzel -d | cliphist decode | wl-copy
340    ifenvset: NIRI_SOCKET
341  screenshot-select-clipboard:
342    binary: shotty
343    args:
344    - select-clipboard
345    description: Screenshot selection to clipboard
346    icon: applets-screenshooter
347    ifenvset: NIRI_SOCKET
348  screenshot-select-file:
349    binary: shotty
350    args:
351    - select-file
352    description: Screenshot selection to file
353    icon: applets-screenshooter
354    ifenvset: NIRI_SOCKET
355  screenshot-select-edit:
356    binary: shotty
357    args:
358    - select-edit
359    description: Screenshot selection and edit (satty)
360    icon: applets-screenshooter
361    ifenvset: NIRI_SOCKET
362  screenshot-window:
363    binary: shotty
364    args:
365    - window-file
366    description: Screenshot focused window
367    icon: applets-screenshooter
368    ifenvset: NIRI_SOCKET
369  screenshot-screen:
370    binary: shotty
371    args:
372    - screen-file
373    description: Screenshot full screen
374    icon: applets-screenshooter
375    ifenvset: NIRI_SOCKET
376  recording-toggle:
377    binary: shotty
378    args:
379    - record-toggle
380    - --audio
381    description: Toggle screen recording (with audio)
382    icon: media-record
383    ifenvset: NIRI_SOCKET
384  recording-stop:
385    binary: shotty
386    args:
387    - record-stop
388    description: Stop screen recording
389    icon: media-playback-stop
390    ifenvset: NIRI_SOCKET
391  toggle-color-scheme:
392    binary: toggle-color-scheme
393    description: Toggle dark/light color scheme
394    icon: preferences-desktop-theme
395  org-agenda:
396    description: Org Agenda
397    icon: emacs
398    ifexist: emacsclient
399    script: |
400      emacsclient -c -a emacs --eval '(vde/agenda)'
401  emacs-type:
402    description: Type & Paste (Emacs)
403    icon: emacs
404    ifexist: emacsclient
405    script: |
406      emacsclient -a emacs --eval '(vde/type)'
407  journal-entry:
408    description: Journal Entry
409    icon: emacs
410    ifexist: emacsclient
411    script: |
412      emacsclient -n -c -F '((name . "capture") (width . 150) (height . 90) (vde/window-popup-frame . t))' -e '(org-capture nil "j")'
413  mu4e:
414    description: Email (mu4e)
415    icon: mail-client
416    ifexist: emacsclient
417    script: |
418      emacsclient -c -a emacs --eval '(mu4e)'
419  magit:
420    description: Magit (Git)
421    icon: git
422    ifexist: emacsclient
423    script: |
424      emacsclient -c -a emacs --eval '(magit-status)'
425  obs-studio:
426    binary: obs
427    description: OBS Studio
428    icon: obs
429    ifexist: obs
430  pwvucontrol:
431    binary: pwvucontrol
432    description: Audio Settings
433    icon: audio-volume-high
434  redhat-vpn:
435    binary: redhat-vpn
436    description: Connect Red Hat VPN
437    icon: network-vpn
438    ifexist: redhat-vpn
439  redhat-vpn-disconnect:
440    binary: redhat-vpn-disconnect
441    description: Disconnect Red Hat VPN
442    icon: network-vpn
443    ifexist: redhat-vpn-disconnect