add river config
This commit is contained in:
parent
6af792a0e9
commit
ffa2bac00b
3 changed files with 89 additions and 0 deletions
22
chezmoi/dot_config/river/executable_init
Normal file
22
chezmoi/dot_config/river/executable_init
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue