feat: v0.1.0 #1
36
config.toml
36
config.toml
@@ -8,14 +8,18 @@ dry_run = true
|
|||||||
# "apps" array tells userctx what to do (which apps
|
# "apps" array tells userctx what to do (which apps
|
||||||
# should be actually managed). If it is empty or not
|
# should be actually managed). If it is empty or not
|
||||||
# set, then userctx will do nothing.
|
# set, then userctx will do nothing.
|
||||||
|
# Uncomment apps below.
|
||||||
apps = [
|
apps = [
|
||||||
#"sway",
|
#"niri",
|
||||||
|
#"fuzzel",
|
||||||
#"gtk",
|
#"gtk",
|
||||||
#"helix",
|
#"helix",
|
||||||
#"foot",
|
#"kitty",
|
||||||
#"wofi",
|
|
||||||
#"mako",
|
#"mako",
|
||||||
"myapp",
|
#"sway",
|
||||||
|
#"swaybg",
|
||||||
|
#"waybar",
|
||||||
|
#"wofi",
|
||||||
]
|
]
|
||||||
|
|
||||||
# target directory where managed configs
|
# target directory where managed configs
|
||||||
@@ -28,13 +32,6 @@ target_path = "~/.config"
|
|||||||
# default is "~/.config/userctx"
|
# default is "~/.config/userctx"
|
||||||
source_path = "~/code/userctx/test"
|
source_path = "~/code/userctx/test"
|
||||||
|
|
||||||
[apps]
|
|
||||||
example2.scripts = ["s1", "s2"]
|
|
||||||
myapp.symlink."*" = "*"
|
|
||||||
myapp.exec = """echo "hello world""""
|
|
||||||
myapp.actions = {}
|
|
||||||
myapp.script = []
|
|
||||||
|
|
||||||
# section that demonstrates all the available
|
# section that demonstrates all the available
|
||||||
# features of userctx
|
# features of userctx
|
||||||
[apps.example]
|
[apps.example]
|
||||||
@@ -121,9 +118,6 @@ reload = "pkill -USR1 example"
|
|||||||
|
|
||||||
[apps.niri]
|
[apps.niri]
|
||||||
target_path = "~/.config/niri/configs"
|
target_path = "~/.config/niri/configs"
|
||||||
actions = [
|
|
||||||
"symlink",
|
|
||||||
]
|
|
||||||
|
|
||||||
# The snippet below is needed for niri 25.8 which did not
|
# The snippet below is needed for niri 25.8 which did not
|
||||||
# support imports/includes in the config. I'm splitting
|
# support imports/includes in the config. I'm splitting
|
||||||
@@ -139,17 +133,9 @@ exec = """
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
[apps.helix]
|
[apps.helix]
|
||||||
actions = [
|
# $CONTEXT_SRC/helix.toml -> $CONTEXT_DST/themes/current_theme.toml
|
||||||
"exec",
|
symlink."*" = "themes/current_theme.toml"
|
||||||
"symlink",
|
exec = """sed -i -E 's/^theme = (.+)/theme = "current_theme"/' ~/.config/helix/config.toml"""
|
||||||
]
|
|
||||||
# context must contain file named "helix.toml" which describes a theme.
|
|
||||||
# $CONTEXT_SRC/helix.toml -> $CONTEXT_DST/themes/current_theme.toml
|
|
||||||
symlink."helix.toml" = "themes/current_theme.toml"
|
|
||||||
|
|
||||||
exec = """
|
|
||||||
sed -i -E 's/^theme = (.+)/theme = "current_theme"/' ~/.config/helix/config.toml
|
|
||||||
"""
|
|
||||||
reload = "pkill -USR1 hx"
|
reload = "pkill -USR1 hx"
|
||||||
|
|
||||||
[apps.gtk]
|
[apps.gtk]
|
||||||
|
|||||||
Reference in New Issue
Block a user