How to add a custom mode #1301
Answered
by
DaveDavenport
JohanChane
asked this question in
Q&A
-
I like the feature like exec.sh #!/usr/bin/env bash
if [[ -z "$*" ]];then
dex -ad -s /usr/share/applications/:~/.local/share/applications/:/etc/xdg/autostart/:~/.config/autostart/|cut -c `expr length 'Executing command: A'`-
else
nohup $* >/dev/null 2>&1 &
exit $?
fi rofi -show drun -modi drun,run,exec:~/.config/rofi/exec.sh,keys,file-browser,window,ssh I want to add a mode rofi -show drun -modi drun,run,exec,keys,file-browser,window,ssh So, how to config ? |
Beta Was this translation helpful? Give feedback.
Answered by
DaveDavenport
Apr 13, 2021
Replies: 1 comment 2 replies
-
I am not sure what the question is, this is correct syntax for 'modi' and will work both on commandline as adding it to config: rofi -show drun -modi drun,run,exec:~/.config/rofi/exec.sh,keys,file-browser,window,ssh configuration {
modi: "drun,run,exec:~/.config/rofi/exec.sh,keys,file-browser,window,ssh";
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
JohanChane
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure what the question is, this is correct syntax for 'modi' and will work both on commandline as adding it to config:
rofi -show drun -modi drun,run,exec:~/.config/rofi/exec.sh,keys,file-browser,window,ssh