diff --git a/cmd/eww.go b/cmd/eww.go index 4d09802..fba7a41 100644 --- a/cmd/eww.go +++ b/cmd/eww.go @@ -7,6 +7,9 @@ import ( var ewwCmd = &cobra.Command{ Use: "eww", Short: "eww integration", + PersistentPreRun: func(cmd *cobra.Command, args []string) { + hm.LoadConfig(configPath) + }, } func init() { diff --git a/cmd/root.go b/cmd/root.go index 3d06115..697e7ff 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -33,9 +33,6 @@ var ( var rootCmd = &cobra.Command{ Use: "hyprman", Short: "hyprland companion app", - PersistentPreRun: func(cmd *cobra.Command, args []string) { - hm.LoadConfig(configPath) - }, } func init() {