diff --git a/nvim/lua/telescope_config.lua b/nvim/lua/telescope_config.lua index b809ff1..e086df5 100644 --- a/nvim/lua/telescope_config.lua +++ b/nvim/lua/telescope_config.lua @@ -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() diff --git a/rofi/show-calculator.sh b/rofi/show-calculator.sh index 3704cbb..bad44f8 100755 --- a/rofi/show-calculator.sh +++ b/rofi/show-calculator.sh @@ -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