Skip to content

Instantly share code, notes, and snippets.

@kRHYME7
kRHYME7 / hyprlock.conf
Created March 2, 2024 16:22
hyprlock.conf jus for demonstarion. Please share if you have awesome Hyprlock conf
source = /home/$USER/.config/hypr/themes/colors.conf
$foreground = rgba($primary_3ff)
# BACKGROUND
background {
monitor =
path = /home/$USER/.config/swww/wall.set # If WP is not .png it won't work
blur_passes = 3
contrast = 0.8916
@kRHYME7
kRHYME7 / Theme
Created February 28, 2024 02:34
[OUTPUT ] rofi -dump-config theme timings
/**
* rofi -dump-theme output.
* Rofi version: 1.7.5+wayland2-dev
**/
* {
main-fg: rgba ( 210, 215, 144, 100 % );
select-fg: rgba ( 216, 192, 180, 100 % );
main-bg: rgba ( 39, 63, 75, 90 % );
select-bg: rgba ( 56, 54, 59, 100 % );
main-br: rgba ( 52, 53, 56, 100 % );
❯ hyprpm add https://github.com/DreamMaoMao/hycov -f -v
! Using --force, I hope you know what you are doing.
[v] version returned: Hyprland, built from branch HEAD at commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 (props: bump ver to 0.35.0).
Date: Mon Feb 5 01:59:02 2024
Tag: v0.35.0
flags: (if any)
[v] parsed commit 84ab8d11e8951a6551d1e1bf87796a8589da6d47 at branch HEAD
@kRHYME7
kRHYME7 / wallbashspotify.sh
Last active January 26, 2024 15:15
~/.config/hypr/scripts/wallbashspotify.sh
#!/usr/bin/env sh
# set variables
ScrDir=`dirname "$(realpath "$0")"`
source $ScrDir/globalcontrol.sh
scol="${XDG_CONFIG_HOME:-$HOME/.config}/spicetify/Themes/Sleek/color.ini"
dcol="${XDG_CONFIG_HOME:-$HOME/.config}/spicetify/Themes/Sleek/Wall-Dcol.ini"
# regen conf
@kRHYME7
kRHYME7 / GpuInfo.sh
Last active January 10, 2024 04:10
A GPU Info base on Hyprdots, Tries to handle multi GPU
#!/bin/bash
gpuQ="/tmp/hyprdots-gpuinfo-query$2"
tired=false
if [[ " $* " =~ " --tired " ]];then tired=true ; fi
query() {
nvidia_flag=0 amd_flag=0 intel_flag=0
touch $gpuQ
nvidia_gpu=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits | head -n 1)
@kRHYME7
kRHYME7 / BatteryNotify.sh
Last active December 12, 2023 12:14
A daemon to battery notification using dbus-monitor
#!/bin/bash
trap resume_processes SIGINT
in_range() { local num=$1 local min=$2 local max=$3 ; [[ $num =~ ^[0-9]+$ ]] && (( num >= min && num <= max )); }
mnc=5 mxc=80 mnl=20 mxl=50 mnu=80 mxu=100 mnt=60 mxt=1000 mnf=80 mxf=100 mnn=1 mxn=60 mni=1 mxi=10 verbose=false undock=false #Defaults Ranges
while (( "$#" )); do # Parse command-line arguments and defaults
case "$1" in
"--full"|"-f") if in_range "$2" $mnf $mxf; then battery_full_threshold=$2 ; shift 2 ; else echo "$1 Error: Full Threshold must be $mnf - $mxf." >&2 ; exit 1 ; fi;;
"--critical"|"-c") if in_range "$2" $mnc $mxc; then battery_critical_threshold=$2 ; shift 2 ; else echo "$1 ERROR: Critical Threshold must be $mnc - $mxc." >&2 ; exit 1 ; fi;;
"--low"|"-l") if in_range "$2" $mnl $mnu; then battery_low_threshold=$2 ; shift 2 ; else echo "$1 ERROR: Low Threshold $mnl - $mnu." >&2 ; exit 1 ; fi;;
"--unplug"|"-u") if in_range "$2" $mnu $mxu; then unplug_charger_threshold=$2 ; shift 2 ; else echo "$1 ERROR: Unplug Threshold must be $mnu $mxu."
@kRHYME7
kRHYME7 / Hyprdots
Created November 27, 2023 14:23
CLI for Hyprdots. WIp Not Merge yes
#!/bin/bash
source ~/.config/hypr/scripts/globalcontrol.sh
ScrDir="$ConfDir/hypr/scripts"
ScriptDir="$CloneDir/Scripts"
cd $ScriptDir && echo "Hyprdots: $(git describe)" || exit 1
func="${1}"
# Check for updates every 12 Hrs
[ ! -f "/tmp/hyprdots_update_check" ] || [[ $(find "/tmp/hyprdots_update_check" -mmin +720) ]] && \
@kRHYME7
kRHYME7 / hotkeys.sh
Created November 25, 2023 02:52
Just Parsing the keybings from hyprland configuration then display to yad. ( )
#!/usr/bin/env sh
#!Declare Some Symbols or Replacements here just to look good
declare -A replacements=(
["XF86Audio"]="🕪 "
["XF86MonBrightnessUp"]="☼ ↑"
["XF86MonBrightnessDown"]="☼ ↓"
['$mainMod']="[]"
["UP"]="↑"
["DOWN"]="↓"
@kRHYME7
kRHYME7 / battery.jsonc
Last active November 24, 2023 00:49
Hypdots double battery configuration , Change the bat : (into what the system tells you )
"battery": {
"bat": "BAT0",
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
@kRHYME7
kRHYME7 / FAQs & Issues.txt
Last active November 25, 2023 05:04
FAQs and Issues for Hyprdots
How to Sync my configs?
+ Not Yet
Other distro support?
+
Wallpapers:
+ How to add my wallpaper?
+ live wallpaper?
#150