[general] default_module = "app" empty_module = "a" exec_cmd = "sh -c" vi_mode = true esc_to_abort = true cheatsheet_entry = "?" cheatsheet_viewer = "less -R; clear" clear_screen_after_execution = false loop_mode = false external_editor = "" [interface] header = """ \u001B[34;1m >\u001B[0m $USER@$(echo $HOSTNAME) \u001B[31m\u001B[0m $(cat /proc/loadavg | cut -d ' ' -f 1) \u001B[33m󰍛\u001B[0m $(free -h | awk 'FNR == 2 {print $3}' | sed 's/i//') \u001B[34;1m>\u001B[0;1m """ header_cmd = "" header_cmd_trimmed_lines = 0 header_concatenate = false list_prefix = " " selection_prefix = " \u001B[31;1m> " place_holder = "type and search" default_module_message = " \u001B[33msearch\u001B[0m the internet" empty_module_message = "" suggestion_mode = "list" suggestion_lines = 12 indicator_with_arg_module = "\u001B[31m^\u001B[0m " indicator_no_arg_module = "\u001B[31m$\u001B[0m " prefix_padding = 3 prefix_color = "\u001B[33m" description_color = "\u001B[39m" place_holder_color = "\u001B[30m" hint_color = "\u001B[30m" move_right = 0 move_up = 0 [[modules]] description = "search the web" prefix = "kg" cmd = "setsid -f xdg-open 'https://kagi.com/search?q={}'" with_argument = true url_encode = true [[modules]] description = "kill a running app" prefix = "k" cmd = 'ps -u "$USER" -o comm= | sort -u | fsel --dmenu | xargs -r pkill -9' with_argument = true url_encode = true [[modules]] description = "launch apps with fsel" prefix = "a" cmd = "fsel -vv -r -d -ss \"{}\"" with_argument = true [[modules]] description = "launch apps instantly" prefix = "app" cmd = "fsel -vv -r -d -p {}" with_argument = true [[modules]] description = "manage clipboard with fsel" prefix = "cl" cmd = """ fsel --cclip """ [[modules]] description = "find pkgs" prefix = "pm" cmd = "pmux -SD {}" with_argument = true [[modules]] description = "install pkgs" prefix = "i" cmd = "pmux -S {}" with_argument = true [[modules]] description = "power menu" prefix = "p" cmd = """ function power { if [[ -n $1 ]]; then case $1 in "logout") swaymsg exit ;; "suspend") systemctl suspend ;; "hibernate") systemctl hibernate ;; "reboot") systemctl reboot ;; "shutdown") systemctl poweroff ;; esac fi } power $(echo -e 'reboot\nshutdown\nlogout\nsuspend\nhibernate' | fzf --reverse --no-scrollbar --padding 1,3 --prompt 'Power Menu: ' | tail -1) """ [[modules]] description = "run command in terminal" prefix = "s" cmd = "setsid -f kitty -e {}" with_argument = true [[modules]] description = "search archwiki" prefix = "w" cmd = "setsid -f xdg-open https://wiki.archlinux.org/index.php?search='{}'" with_argument = true url_encode = true [[modules]] description = "cambridge dictionary" prefix = "dc" cmd = "setsid -f xdg-open 'https://dictionary.cambridge.org/dictionary/english/{}'" with_argument = true url_encode = true