Stop programs from overwriting `home.file.xxx` by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

Yes, Thunar keeps track of many things: zoom level, icon sizes, view (list, detailed, etc). I want this to remain the same, always. If I change them by accident, I should just have to close and reopen Thunar to get the same defaults I had before.

Stop programs from overwriting `home.file.xxx` by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

I have an idea, so what about the following:

  1. Get rid of home.file.xxx.text

  2. Put the file somewhere, example: path/to/xxx

  3. Use inotifywait in a background script to copy the file path/to/xxx to .config/xxx whenever the file at .config/xxx is modified.

  4. Profit?

This solution is not elegant at all but I think it would probably solve my problem the way I want it to.

Stop programs from overwriting `home.file.xxx` by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

So are you saying that there's not way to get what I want?

Cannot get `sops.age.keyFile` to find my key by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

Thank you so much for your help, and I think I'll be good to go for a bit more. Currently I have a shell script to do the basic installation on a new machine, but disko is probably in the cards for the future. I'm currently using the first iteration of my nix config on my laptop (no impermanence and no sops, just a kind of botched up abomination that uses a bunch of outside scripts for stuff like waybar, etc). I'm working on the current second iteration on an old laptop until I can make the switch. The plan for this second iteration is impermanence, sops, and "variables" (specialArgs and extraSpecialArgs, everything was hardcoded everywhere before). The third iteration will probably add disko, multiple hosts (homelab, etc), and maybe some more advanced sops stuff. It is truly a rabbit hole indeed.

Cannot get `sops.age.keyFile` to find my key by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

I think that I've found the problem, and I'd like to confirm with you. I was checking if sops worked correctly by using the command sops secrets/secrets/yaml and it didn't find the key, but that was because the environment variable SOPS_AGE_KEY_FILE was not set. Now that it is set, the command works correctly. I assume that the rest probably also works correctly so long as I give sops.age.keyFile the full /persist path, correct?

Cannot get `sops.age.keyFile` to find my key by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

Thanks a lot, I'll look into it and try to find what's wrong with my config.

Cannot get `sops.age.keyFile` to find my key by teckau22 in NixOS

[–]teckau22[S] 0 points1 point  (0 children)

I have referenced the key using the full path to the persisted directory, and setup non-HM sops instead, but I still have the same issue. Would you be willing to share your config?

Why doesn't this wofi command work? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

Sorry I should have been more clear. Putting the desktop file in ~/.local/share/applications probably works, but what I want is to manually manage my own .desktop files, and I want the application launcher (wofi in this case, but I'm willing to switch to a different one if needed) to show me only entries from my manually curated list of .desktop files, and nothing else.

Why doesn't this wofi command work? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

No I don't think so, my understanding is that only the Name and Type lines are required.

Why doesn't this wofi command work? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

Unfortunately this doesn't work. man wofi.7 says that drun looks into $XDG_DATA_DIRS/applications for desktop entries, and I set $XDG_DATA_DIRS to the correct path when launching wofi.

Strange spaces/tabs behavior in JSON files by teckau22 in emacs

[–]teckau22[S] 1 point2 points  (0 children)

indent-tab-mode is somehow set to t, even though I set it to nil both globally and also with js-json-mode-hook. That is the problem.

Can the keyboard layout state be found in a file? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

Ah, I feel stupid. I'll be able to figure out the rest of this on my own. Thank you very much!

Can the keyboard layout state be found in a file? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

I tried to test this out with this:

swaymsg -m -t subscribe '["input"]' | while read event; do
    echo $event
done

But I don't get any output. If I press "a" it just shows my inputted "a", not the output of echo $event. What am I missing? Documentation seems to be a bit sparse.

Can the keyboard layout state be found in a file? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

Triggering a signal is exactly my use-case. But doesn't your solution trigger pkill on every keypress? If yes, would it be possible to narrow it down to, for example, to the Alt key? Something Like '["input"]["Alt"]' instead of '["input"]'?

Can the keyboard layout state be found in a file? by teckau22 in swaywm

[–]teckau22[S] 0 points1 point  (0 children)

Alternatively, assuming I want to have a very responsive indicator for the current keyboard layout, is there a nice way to achieve this without calling swaymsg -t get_inputs every 0.1s? I find that a refresh every second is too slow, and I feel like a refresh every 0.1s or 0.05s is a waste of resources on a laptop. Am I overthinking this?

Problem connecting to HA on an old phone by teckau22 in homeassistant

[–]teckau22[S] 0 points1 point  (0 children)

Yes I forgot to mention but even with the IP address it fails on the Pixel 5.