moved autostart apps to private.lua and added private.lua

This commit is contained in:
Johannes Findeisen 2017-04-10 00:36:01 +02:00
commit 2233ea6cb1
3 changed files with 22 additions and 15 deletions

View 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",
}

View file

@ -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
View file

@ -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