yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.15k stars 177 forks source link

executable requirement filters for alt/template #400

Closed Lite5h4dow closed 2 years ago

Lite5h4dow commented 2 years ago

Is your feature request related to a problem? Please describe.

Just a general idea i had was introducing executable requirements for certain files to avoid duplicating/linking files that wont be used because the related program isn't installed. so in the typical alt fashion, something similar to bspwmrc##require.bspwm or as a shorter version bspwmrc##r.bspwm just as a nicity for different types of systems, in my use case i have 3 different setups, one in wsl, one is my dedicated linux box, and another is my headless server, so i don't need my bspwm configs on my headless or wsl setups but i do for my dedicated box so it makes no sense linking a file with no purpose. also helps keeps the filesystem clean kinda.

Describe the solution you'd like

just an alt filter e.g. bspwmrc##r.bspwm, bspwmrc##requires.bspwm, kitty.conf##r.kitty, rofi.rasi##requires.rofi,default

Describe alternatives you've considered

so yadm could have support for multiple classes, but that requires me setting it up after every clone, would be nice to not have to

Lite5h4dow commented 2 years ago

just as an aside, would be good to have these triggers for template too, so you could alter the template bassed on whats installed but im not sure if thats supported by the template processors. i am able to dothe alt thing though

github-actions[bot] commented 2 years ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been labeled as stale for 7 days with no activity.