add river config

This commit is contained in:
Alexander Navarro 2024-10-29 17:00:53 -03:00
parent 6af792a0e9
commit ffa2bac00b
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
3 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#! /usr/bin/env lua
-- ╭─────────────────────────────────────────────────────────╮
-- │ Add river config folder to Lua Path │
-- ╰─────────────────────────────────────────────────────────╯
local config_dir = os.getenv("XDG_CONFIG_HOME") or os.getenv("HOME") .. "/.config/"
local river_config_dir = config_dir .. "river/"
package.path = river_config_dir .. '?.lua;' .. river_config_dir .. '?/init.lua;' .. package.path
local River = require('river')
local Logger = require('logger')
local logger = Logger:new()
logger:log("Initializing River configuration from Lua")
local river = River:new()
river:exec([[riverctl spawn "swaybg -i $HOME/Pictures/Minimalist__cron.png"]])
logger:close()