Skip to content

Instantly share code, notes, and snippets.

View ashish-kus's full-sized avatar
🏠
Working from home

Ashish Kushwaha ashish-kus

🏠
Working from home
View GitHub Profile
@ashish-kus
ashish-kus / hyprlock.conf
Last active October 14, 2024 06:45
minimal Hyprlock
$hypr = ~/.config/hypr
source = $hypr/colors.conf # for custom color
# GENERAL
general {
no_fade_in = true
grace = 1
disable_loading_bar = false
hide_cursor = true
ignore_empty_input = true
@ashish-kus
ashish-kus / ini_Parser.sh
Created January 24, 2024 11:37
.ini config parser function written in bash for reading and exporting vafiable from config file.
#!/usr/bin/env bash
parse_ini() {
local ini_file="$1"
# declare -A config
current_section=""
while IFS= read -r line; do
line=$(echo "$line" | sed -e 's/^[ \t]*//;s/[ \t]*$//')
if [[ "$line" =~ ^\; ]] || [[ -z "$line" ]]; then
continue