From 488c1ca557c22e96e654177ffe747b173f2a4d69 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Sat, 24 Jun 2023 04:45:50 -0400 Subject: refactor: use nvim as default editor for menu commands --- .config/awesome/rc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/awesome/rc.lua') diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 9ba005a..66be6cd 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -28,7 +28,7 @@ beautiful.init(theme_path) -- This is used later as the default terminal and editor to run. terminal = "alacritty" -editor = os.getenv("EDITOR") or "gvim" +editor = os.getenv("EDITOR") or "alacritty -e nvim" editor_cmd = terminal .. " -e " .. editor -- Default modkey. @@ -113,7 +113,7 @@ myawesomemenu = { { "xset dpms", dpms_menu }, { "dunstctl", dunst_menu }, { "config file", editor .. " " .. awesome.conffile }, - { "picom config", function() awful.spawn.easy_async_with_shell("sh -c 'gvim $HOME/.config/picom.conf'") end }, + { "picom config", function() awful.spawn.easy_async_with_shell("alacritty -e nvim $HOME/.config/picom.conf") end }, { "change wallpaper", function() awful.spawn.easy_async_with_shell("sh -c 'nitrogen'") end }, { "xdg_menu refresh", function() awful.spawn.easy_async_with_shell("sh -c 'xdg_menu --format awesome --root-menu /etc/xdg/menus/arch-applications.menu > ~/.config/awesome/xdgmenu.lua'") end }, { "refresh", awesome.restart }, -- cgit v1.2.3