Icon for calc mode
This commit is contained in:
parent
79afd5af4a
commit
8a58a696d7
|
@ -6,8 +6,9 @@ M.project_files = function()
|
|||
local opts = require('telescope.themes').get_ivy({}) -- define here if you want to define something
|
||||
opts["show_untracked"] = true
|
||||
opts["layout_config"] = {height=0.2}
|
||||
local ok = pcall(require"telescope.builtin".git_files, opts)
|
||||
if not ok then require"telescope.builtin".find_files(opts) end
|
||||
if not pcall(require"telescope.builtin".git_files, opts) then
|
||||
require"telescope.builtin".find_files(opts)
|
||||
end
|
||||
end
|
||||
|
||||
M.buffers = function()
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Calc Mode"
|
||||
echo -e "Calc Mode\0icon\x1fgnome-calculator"
|
||||
|
||||
else
|
||||
killall rofi
|
||||
# so rofi doesn't complain "can't launch rofi inside rofi"
|
||||
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xsel -i"
|
||||
rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xsel --clipboard"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue