Skip to content

Instantly share code, notes, and snippets.

View rukh-debug's full-sized avatar
🔭
Dont visit https://is.gd/rub3nk

rukh rukh-debug

🔭
Dont visit https://is.gd/rub3nk
View GitHub Profile
#!/usr/bin/env bash
# Author: rukh-debug
# Date: 2025 Feb 16
# https://github.com/orhun/rustypaste <3
# This script is a very minimal UI for rustyPaste server - built for poweruser.
# demo: https://i.postimg.cc/MHXFPdCq/image.png
# Magnifier shortcut for hyprland
# Ctrl + Mod + minust key (-) = zoom out
# Ctrl + Mod + equals key (=) = zoom in
"Ctrl + $Mod, code:21, exec, hyprctl keyword cursor:zoom_factor $(awk -v z=$(hyprctl getoption cursor:zoom_factor | grep 'float:' | awk '{print $2}') 'BEGIN {print z + 0.5}')"
"Ctrl + $Mod, code:20, exec, hyprctl keyword cursor:zoom_factor $(awk -v z=$(hyprctl getoption cursor:zoom_factor | grep 'float:' | awk '{print $2}') 'BEGIN {print (z > 1 ? z - 0.5 : 1)}')"