Git Product home page Git Product logo

Comments (5)

kyounger avatar kyounger commented on May 27, 2024 1

The other issue is that it seems it can't use a symlink as the config file setting, making using nix home-manager difficult.

from finicky.

kyounger avatar kyounger commented on May 27, 2024 1

If it helps anyone else coming here for the same thing, I ended up just hacking a little around it.

  home.file.".config/finicky" = {
    source = ./finicky;
    onChange = "cat ~/.config/finicky/fincky.js > ~/.finicky.js";
  };

from finicky.

jbleuzen avatar jbleuzen commented on May 27, 2024

It's a constant in the code => /Finicky/Finicky/Config.swift
I think you can't do what you want...

from finicky.

kyounger avatar kyounger commented on May 27, 2024

Interestingly, there is a way to "Use another file..." from the menu bar drop down. If you add a different config file location through that UI, and then run the command:

/usr/libexec/PlistBuddy -c print ~/Library/Preferences/net.kassett.finicky.plist

It clearly shows that file being stored in some encoded way. Beyond my MacFu to understand how to get that set programmatically.

from finicky.

gshpychka avatar gshpychka commented on May 27, 2024

If it helps anyone else coming here for the same thing, I ended up just hacking a little around it.

  home.file.".config/finicky" = {
    source = ./finicky;
    onChange = "cat ~/.config/finicky/fincky.js > ~/.finicky.js";
  };

Thanks for this! This might be even better:

{config, ...}: let
  filePath = "finicky/config.js";
in {
  xdg.configFile.${filePath} = {
    source = ./config.js;
    onChange = "cat ${config.xdg.configHome}/${filePath} > ${config.home.homeDirectory}/.finicky.js";
  };
}

from finicky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.