| 1 | /* rofi settings. The look lives in the theme file; this is behaviour only. */ |
| 2 | configuration { |
| 3 | /* Modes reachable with `rofi -show <name>`. drun is the launcher (it |
| 4 | reads .desktop files, so entries get icons and their real names), run |
| 5 | is bare executables on PATH, window switches to something already |
| 6 | open, and combi searches drun + run + window at once. */ |
| 7 | modes: "drun,run,window,combi,filebrowser,ssh,keys"; |
| 8 | combi-modes: "drun,run,window"; |
| 9 | |
| 10 | /* Fuzzy matching with sorting: "fx" finds "firefox", and the closest |
| 11 | match still comes first. Set matching to "normal" for plain substring |
| 12 | search if fuzzy ever feels too loose. */ |
| 13 | matching: "fuzzy"; |
| 14 | sort: true; |
| 15 | |
| 16 | show-icons: true; |
| 17 | icon-theme: "Adwaita"; |
| 18 | |
| 19 | /* ssh mode and "run in terminal" open this. wezterm is the XFCE |
| 20 | TerminalEmulator helper here, and its `start` subcommand takes -e as |
| 21 | an alias, which is the form rofi uses. */ |
| 22 | terminal: "wezterm"; |
| 23 | |
| 24 | drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]"; |
| 25 | drun-match-fields: "name,generic,exec,categories,keywords"; |
| 26 | /* Right-click actions from the .desktop file (new window, private |
| 27 | window, and so on) become their own entries. */ |
| 28 | drun-show-actions: true; |
| 29 | |
| 30 | window-format: "{w} {c} {t}"; |
| 31 | |
| 32 | display-drun: "apps"; |
| 33 | display-run: "run"; |
| 34 | display-window: "windows"; |
| 35 | display-combi: "all"; |
| 36 | display-filebrowser: "files"; |
| 37 | display-ssh: "ssh"; |
| 38 | display-keys: "keys"; |
| 39 | display-clipboard: "clipboard"; |
| 40 | display-calc: "calc"; |
| 41 | } |
| 42 | |
| 43 | @theme "darkmatter" |