Skip to content

Instantly share code, notes, and snippets.

View davinash97's full-sized avatar
🧠
Big Brain Time

D Avinash Kumar davinash97

🧠
Big Brain Time
View GitHub Profile
@davinash97
davinash97 / hyprlock.conf
Last active December 25, 2025 03:08 — forked from ashish-kus/hyprlock.conf
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
@davinash97
davinash97 / .zshrc
Created March 30, 2025 09:00
This is my personal preference for envycontrol GPU switch, feel free to make this as your own or other improvisations are always welcome
# Nautilus as default file/explorer
xdg-mime default org.gnome.Nautilus.desktop inode/directory
# Envycontrols for hybrid GPU setup
alias iGPU="sudo envycontrol -s integrated"
alias dGPU="sudo envycontrol -s nvidia --force-comp --coolbits 24"
alias hGPU="sudo envycontrol -s hybrid --rtd3"
function changeGPU() {
case $1 in
@davinash97
davinash97 / installMsfonts.sh
Created May 4, 2024 13:51
To install Microsoft Fonts like Times New Roman, Ariel etc.
#!/bin/sh
# Creating Folder for temp downloads
CURR="$PWD"
MAIN="${HOME}/Downloads/msFonts"
if [ ! -d "$MAIN" ]; then
mkdir -p "$MAIN" && cd "$_" || exit 1
else
cd "$MAIN" || exit 1
fi
@davinash97
davinash97 / dell-smm-hwmon.conf
Last active May 12, 2024 14:21 — forked from dptsolutions/dell-smm-hwmon.conf
dell-smm-hwmon.conf to force loading of dell-smm-hwmon module on "unsupported" Dell laptops (like XPS 13 9350)
# location to place /etc/modprobe.d/ & reboot
# Force loading of the Dell Laptop SMM BIOS hwmon driver
options dell-smm-hwmon ignore_dmi=1 restricted=1 force=1
# Added ignore_dmi=1 per https://www.reddit.com/r/Dell/comments/9pdgid/configuring_the_xps_to_play_nice_with_linux/
# The option restricted=0 allows other non-privileged users to change the fan speed, this could be a security problem so we will be using restricted=1
# Added force=1 per https://askubuntu.com/questions/1094485/dell-xps-15-9570-how-to-control-the-fans