From ad7fba3f69ab1ceac507ba51c59965acda2b2927 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 20 Dec 2020 20:08:07 +0530 Subject: disabled menubar but it still returns an error when I right click on desktop --- awesome/rc.lua | 93 +++++++++++++++++++++++++--------------------------------- 1 file changed, 40 insertions(+), 53 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 6d389fe6..742b1572 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -1,18 +1,11 @@ --- If LuaRocks is installed, make sure that packages installed through it are --- found (e.g. lgi). If LuaRocks is not installed, do nothing. pcall(require, "luarocks.loader") - --- Standard awesome library local gears = require("gears") local awful = require("awful") require("awful.autofocus") --- Widget and layout library local wibox = require("wibox") --- Theme handling library local beautiful = require("beautiful") --- Notification library local naughty = require("naughty") -local menubar = require("menubar") +-- local menubar = require("menubar") local hotkeys_popup = require("awful.hotkeys_popup") -- Enable hotkeys help widget for VIM and other apps -- when client with a matching name is opened: @@ -49,14 +42,8 @@ beautiful.init(gears.filesystem.get_configuration_dir() .. "theme.lua") -- This is used later as the default terminal and editor to run. terminal = "st" -editor = os.getenv("EDITOR") or "vim" +editor = "nvim" editor_cmd = terminal .. " -e " .. editor - --- Default modkey. --- Usually, Mod4 is the key with a logo between Control and Alt. --- If you do not like this or do not have such a key, --- I suggest you to remap Mod4 to another key using xmodmap or other tools. --- However, you can use another modifier like Mod1, but it may interact with others. modkey = "Mod4" -- Table of layouts to cover with awful.layout.inc, order matters. @@ -69,7 +56,7 @@ awful.layout.layouts = { awful.layout.suit.fair.horizontal, awful.layout.suit.tile.left, -- awful.layout.suit.max.fullscreen, --- awful.layout.suit.corner.nw, +-- awful.layout.suit.corner.nw, -- awful.layout.suit.tile, -- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.top, @@ -82,43 +69,43 @@ awful.layout.layouts = { -- {{{ Menu -- Create a launcher widget and a main menu -myawesomemenu = { - { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, - { "manual", terminal .. " -e man awesome" }, - { "edit config", editor_cmd .. " " .. awesome.conffile }, - { "restart", awesome.restart }, - { "quit", function() awesome.quit() end }, - { "fix wallpaper", function() awful.spawn.with_shell("nitrogen --restore") end }, -} - -appdrawer = { - {"pcmanfm", function() awful.spawn.with_shell("pcmanfm") end}, - {"pavucontrol", function() awful.spawn.with_shell("pavucontrol") end}, - {"lxappearance", function() awful.spawn.with_shell("lxappearance") end}, - {"nitrogen", function() awful.spawn.with_shell("nitrogen") end}, - {"gimp", function() awful.spawn.with_shell("gimp") end} - -- {"", function() awful.spawn.with_shell("") end} -} - -powermenu = { - {"shutdown", function() awful.spawn.with_shell("shutdown now") end}, - {"reboot", function() awful.spawn.with_shell("reboot") end} -} - - -mymainmenu = awful.menu({ items = { { "apps", appdrawer }, - { "awesome", myawesomemenu, beautiful.awesome_icon }, - { "power", powermenu } - - } - }) - -mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, - menu = mymainmenu }) - --- Menubar configuration -menubar.utils.terminal = terminal -- Set the terminal for applications that require it --- }}} +-- myawesomemenu = { +-- { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, +-- { "manual", terminal .. " -e man awesome" }, +-- { "edit config", editor_cmd .. " " .. awesome.conffile }, +-- { "restart", awesome.restart }, +-- { "quit", function() awesome.quit() end }, +-- { "fix wallpaper", function() awful.spawn.with_shell("nitrogen --restore") end }, +-- } +-- +-- appdrawer = { +-- {"pcmanfm", function() awful.spawn.with_shell("pcmanfm") end}, +-- {"pavucontrol", function() awful.spawn.with_shell("pavucontrol") end}, +-- {"lxappearance", function() awful.spawn.with_shell("lxappearance") end}, +-- {"nitrogen", function() awful.spawn.with_shell("nitrogen") end}, +-- {"gimp", function() awful.spawn.with_shell("gimp") end} +-- -- {"", function() awful.spawn.with_shell("") end} +-- } +-- +-- powermenu = { +-- {"shutdown", function() awful.spawn.with_shell("shutdown now") end}, +-- {"reboot", function() awful.spawn.with_shell("reboot") end} +-- } +-- +-- +-- mymainmenu = awful.menu({ items = { { "apps", appdrawer }, +-- { "awesome", myawesomemenu, beautiful.awesome_icon }, +-- { "power", powermenu } +-- +-- } +-- }) +-- +-- mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, +-- menu = mymainmenu }) +-- +-- -- Menubar configuration +-- menubar.utils.terminal = terminal -- Set the terminal for applications that require it +-- -- }}} -- Keyboard map indicator and switcher mykeyboardlayout = awful.widget.keyboardlayout() -- cgit v1.2.3