#!/bin/bash # Define the output file output_file="$HOME/.config/hypr/conf/env.conf" # Write Info into file echo -e "# This file was imported from envvars config in .config .\n# Don't edit this file! This file would be override by import-env script.\n" > "$output_file" # Use sed to process all .conf files in the directory sed '/^#/! s/^\([^=]\+\)=\(.*\)$/env=\1,\2/' ~/.config/environment.d/*.conf >> "$output_file"