From 22f682c02436ae8b29d86fbaee749ca33876e9a4 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 14 Jun 2022 07:52:02 -0700 Subject: [PATCH] Added autostart config --- conf-example.lua | 9 ++++++++- rc.lua | 17 ++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/conf-example.lua b/conf-example.lua index 28e1ed7..a52b8cf 100755 --- a/conf-example.lua +++ b/conf-example.lua @@ -25,7 +25,7 @@ conf.continuous_tag_updates = true -- walls will be managed by desktop/wallpaper.lua -- -- Static: a path to an image file -conf.wallpaper = "path-to-wallpaper.png.png" +conf.wallpaper = "path-to-wallpaper.png" -- -- Dynamic: a table of files and times -- {file = "path", start_time = {hour, minute}} @@ -155,4 +155,11 @@ conf.ibus_language_list = { } } +-- Run these commands, in this order, when awesome starts. +conf.startup_commands = { + "ibus-daemon --daemonize --replace --xim", + "keepassxc", + "mictray" +} + return conf diff --git a/rc.lua b/rc.lua index d1fac08..c2321cc 100755 --- a/rc.lua +++ b/rc.lua @@ -35,20 +35,11 @@ beautiful.init(require("theme")) desktop = require("desktop") --------------- --- Autostart-- --------------- -bin.backlight.redshift_reset() --- Start compositor (compton tryone fork) ---awful.spawn("killall compton", false) ---awful.spawn("compton --daemon --config " .. configuration_dir .. "/bin/configs/compton.conf", false) - --- Start ibus (advanced multilanguage input manager) -awful.spawn("ibus-daemon --daemonize --replace --xim", false) - --- Redshift -bin.backlight.redshift(5600) +-- Autostart +for i, v in ipairs(conf.startup_commands) do + awful.spawn(v) +end -- Enable hotkeys help widget for VIM and other apps