forked from ashpie/simple-awesome
Update config & theme lifecycle
This commit is contained in:
parent
fdd6143bec
commit
df229f65dc
@ -15,7 +15,6 @@ By default, Simple Awesome uses
|
|||||||
- `playerctl` - enables global media control. If not present on your system, only Spotify will work.
|
- `playerctl` - enables global media control. If not present on your system, only Spotify will work.
|
||||||
- `network-manager-applet` (`nm-applet`) - network control "widget" **for `NetworkManager` only**. If present on your system, we will automatically run it.
|
- `network-manager-applet` (`nm-applet`) - network control "widget" **for `NetworkManager` only**. If present on your system, we will automatically run it.
|
||||||
|
|
||||||
|
|
||||||
## To do
|
## To do
|
||||||
|
|
||||||
- Add a media control widget
|
- Add a media control widget
|
||||||
|
1
config.lua
Normal file
1
config.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return require("default_config")
|
@ -5,6 +5,9 @@ local awful = require("awful")
|
|||||||
|
|
||||||
local config = {}
|
local config = {}
|
||||||
|
|
||||||
|
-- General
|
||||||
|
config.modkey = "Mod4"
|
||||||
|
|
||||||
-- Terminal
|
-- Terminal
|
||||||
config.terminal = "terminator"
|
config.terminal = "terminator"
|
||||||
|
|
||||||
|
31
rc.lua
31
rc.lua
@ -21,18 +21,6 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
|||||||
-- 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")
|
||||||
|
|
||||||
-- Simple awesome
|
|
||||||
local config = require("default_config")
|
|
||||||
local tiling = require("tiling")
|
|
||||||
local media_control = require("media_control")
|
|
||||||
|
|
||||||
-- Network widget
|
|
||||||
if os.execute("nm-applet --help") == true then
|
|
||||||
os.execute("nm-applet &")
|
|
||||||
else
|
|
||||||
-- Support for more network managers should be requested via issues
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- {{{ 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
|
||||||
@ -60,10 +48,27 @@ do
|
|||||||
end
|
end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
||||||
|
-- Simple awesome start
|
||||||
|
local config = require("config")
|
||||||
|
|
||||||
-- {{{ Variable definitions
|
-- {{{ Variable definitions
|
||||||
-- Themes define colours, icons, font and wallpapers.
|
-- Themes define colours, icons, font and wallpapers.
|
||||||
beautiful.init(config.theme)
|
beautiful.init(config.theme)
|
||||||
|
|
||||||
|
-- Media control
|
||||||
|
local media_control = require("media_control")
|
||||||
|
|
||||||
|
-- Tiling
|
||||||
|
local tiling = require("tiling")
|
||||||
|
|
||||||
|
-- Network widget
|
||||||
|
if os.execute("nm-applet --help") == true then
|
||||||
|
os.execute("nm-applet &")
|
||||||
|
else
|
||||||
|
-- Support for more network managers should be requested via issues
|
||||||
|
end
|
||||||
|
|
||||||
-- This is used later as the default terminal and editor to run.
|
-- This is used later as the default terminal and editor to run.
|
||||||
editor = os.getenv("EDITOR") or "nano"
|
editor = os.getenv("EDITOR") or "nano"
|
||||||
editor_cmd = config.terminal .. " -e " .. editor
|
editor_cmd = config.terminal .. " -e " .. editor
|
||||||
@ -73,7 +78,7 @@ editor_cmd = config.terminal .. " -e " .. editor
|
|||||||
-- If you do not like this or do not have such a key,
|
-- 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.
|
-- 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.
|
-- However, you can use another modifier like Mod1, but it may interact with others.
|
||||||
modkey = "Mod4"
|
modkey = config.modkey
|
||||||
|
|
||||||
-- Table of layouts to cover with awful.layout.inc, order matters.
|
-- Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
awful.layout.layouts = {
|
awful.layout.layouts = {
|
||||||
|
Loading…
Reference in New Issue
Block a user