-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatic.lua
44 lines (39 loc) · 1.23 KB
/
static.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-- Load basic awesome libs.
local awful = require("awful")
local gears = require("gears")
local menubar = require("menubar")
-- Widgets
local wibox = require("wibox")
-- Theme library.
local beautiful = require("beautiful")
-- Constants
terminal = "kitty -1"
editor = "vim"
editor_cmd = "kitty -e vim"
modkey = "Mod4"
conf_path = gears.filesystem.get_configuration_dir()
icons_path = conf_path.."/icons/"
icons_cache_path = icons_path.."cache/"
tags_path = conf_path.."/tags/"
tags_spawn_timeout_sec = 30
tasklist_height = 12
screenshot_output = "/home/sima/storage/akashi/nvmedia/memories"
-- Setup the look and feel.
beautiful.init(conf_path.."/theme.lua")
awesome.set_preferred_icon_size(24)
-- Lock layout to floating, as we are using a custom solution.
awful.layout.layouts = { awful.layout.suit.floating }
-- Setup default applications.
menubar.utils.terminal = terminal
-- Print generic information.
print("Awesome "..awesome.version.." (".._VERSION..")")
if awesome.composite_manager_running then
print("Composite manager detected!")
else
print("No composite manager detected!")
end
print("Config path: "..conf_path)
print("Theme path: "..awesome.themes_path)
print("Icons path: "..awesome.icon_path)
-- Initialize RNG
math.randomseed(os.time())