moved autostart apps to private.lua and added private.lua
This commit is contained in:
parent
e2237494ca
commit
2233ea6cb1
3 changed files with 22 additions and 15 deletions
19
.config/awesome/private.lua
Normal file
19
.config/awesome/private.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
private = {}
|
||||
private.thermal_zone = "thermal_zone1"
|
||||
private.net_device = "wlp4s0"
|
||||
private.battery = {"BAT0", "BAT1"}
|
||||
private.font_awesome = "11"
|
||||
private.font_xterm = "13"
|
||||
private.autostart = {
|
||||
"kalu",
|
||||
"amor",
|
||||
"synclient TouchpadOff=1",
|
||||
"nm-applet",
|
||||
"pasystray",
|
||||
"xfce4-clipman",
|
||||
"xfce4-notes",
|
||||
"xautolock -locker slock -time 5",
|
||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
||||
"redshift",
|
||||
}
|
||||
|
||||
|
|
@ -16,19 +16,7 @@ local menubar = require("menubar")
|
|||
vicious = require("vicious")
|
||||
|
||||
-- Set programs to autostart. They will only runce once even when reloading awesome.
|
||||
local autostart = {
|
||||
"kalu",
|
||||
"amor",
|
||||
"synclient TouchpadOff=1",
|
||||
--"cbatticon",
|
||||
"nm-applet",
|
||||
"pasystray",
|
||||
"xfce4-clipman",
|
||||
"xfce4-notes",
|
||||
"xautolock -locker slock -time 5",
|
||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
||||
"redshift",
|
||||
}
|
||||
-- local autostart = private.autostart
|
||||
|
||||
function file_exists(name)
|
||||
local f = io.open(name, "r")
|
||||
|
|
@ -85,7 +73,7 @@ editor_cmd = terminal .. " -e " .. editor
|
|||
|
||||
modkey = "Mod4"
|
||||
|
||||
for i, program in ipairs(autostart) do
|
||||
for i, program in ipairs(private.autostart) do
|
||||
run_once(program)
|
||||
end
|
||||
|
||||
|
|
|
|||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,7 +3,7 @@
|
|||
!.config
|
||||
!.config/awesome
|
||||
!.config/awesome/**
|
||||
.config/awesome/private.lua
|
||||
!.config/awesome/private.lua
|
||||
#!.config/mc
|
||||
#!.config/mc/ini
|
||||
!.config/user-dirs.dirs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue