Separate README into blocks

This commit is contained in:
Sravan Balaji
2023-03-24 16:52:49 -04:00
parent 0c0ad156d8
commit ae1849835b

View File

@@ -40,7 +40,9 @@ local hotkeys_popup = require("awful.hotkeys_popup")
-- Enable hotkeys help widget for VIM and other apps -- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened: -- when client with a matching name is opened:
require("awful.hotkeys_popup.keys") require("awful.hotkeys_popup.keys")
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Error handling -- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to -- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config) -- another config (This code will only ever execute for the fallback config)
@@ -65,7 +67,9 @@ do
end) end)
end end
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Variable definitions -- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers. -- Themes define colours, icons, font and wallpapers.
beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua") beautiful.init(gears.filesystem.get_themes_dir() .. "default/theme.lua")
@@ -102,7 +106,9 @@ awful.layout.layouts = {
-- awful.layout.suit.corner.se, -- awful.layout.suit.corner.se,
} }
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Menu -- {{{ Menu
-- Create a launcher widget and a main menu -- Create a launcher widget and a main menu
myawesomemenu = { myawesomemenu = {
@@ -124,10 +130,14 @@ mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
-- Menubar configuration -- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- Keyboard map indicator and switcher -- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout() mykeyboardlayout = awful.widget.keyboardlayout()
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Wibar -- {{{ Wibar
-- Create a textclock widget -- Create a textclock widget
mytextclock = wibox.widget.textclock() mytextclock = wibox.widget.textclock()
@@ -241,7 +251,9 @@ awful.screen.connect_for_each_screen(function(s)
} }
end) end)
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Mouse bindings -- {{{ Mouse bindings
root.buttons(gears.table.join( root.buttons(gears.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end), awful.button({ }, 3, function () mymainmenu:toggle() end),
@@ -249,7 +261,9 @@ root.buttons(gears.table.join(
awful.button({ }, 5, awful.tag.viewprev) awful.button({ }, 5, awful.tag.viewprev)
)) ))
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Key bindings -- {{{ Key bindings
globalkeys = gears.table.join( globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help, awful.key({ modkey, }, "s", hotkeys_popup.show_help,
@@ -463,7 +477,9 @@ clientbuttons = gears.table.join(
-- Set keys -- Set keys
root.keys(globalkeys) root.keys(globalkeys)
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Rules -- {{{ Rules
-- Rules to apply to new clients (through the "manage" signal). -- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = { awful.rules.rules = {
@@ -521,7 +537,9 @@ awful.rules.rules = {
-- properties = { screen = 1, tag = "2" } }, -- properties = { screen = 1, tag = "2" } },
} }
-- }}} -- }}}
#+END_SRC
#+BEGIN_SRC lua :tangle rc.lua
-- {{{ Signals -- {{{ Signals
-- Signal function to execute when a new client appears. -- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c) client.connect_signal("manage", function (c)