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
@taiwbi
taiwbi / gnome-transparent-sidebar.css
Last active November 13, 2024 09:49
Make Gnome applications sidebar semi-transparent, and add blur with Blur My Shell Extension if you want to
/* Mohammad Mahdi Tayebi
*
* To apply transparent sidebar. copy this file into ~/.config/gtk-4.0/gtk.css and if
* you use adw-gtk3 theme you can add it to ~/.config/gtk-3.0/gtk.css as well
*
* Use blur my shell extension to add blur effect behind the transparent part of windows
*/
/* Transparent Sidebar */
window {
@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
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 16, 2024 18:12
set -e, -u, -o, -x pipefail explanation