mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
cursor: Switch to BreezeX Black
I still prefer Breeze-Obsidian, but the reality is that it's unsupported and nobody even seems to have the source any more :( Allow `dpi` script to scale cursor relative to display scale according to a fixed "standard" size, which for BreezeX is around 28px to closely match the scale of the Breeze-Obsidian 16px. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
@ -4,6 +4,8 @@ set -eu
|
||||
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
|
||||
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
|
||||
CURSOR_SIZE=28
|
||||
|
||||
xrdbget() {
|
||||
set -o pipefail
|
||||
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
||||
@ -26,7 +28,7 @@ fi
|
||||
|
||||
dpi=$1
|
||||
scale=$(( dpi/96 ))
|
||||
cursor=$(( dpi/6 ))
|
||||
cursor=$(( (dpi*CURSOR_SIZE)/96 ))
|
||||
|
||||
# Update picom scale
|
||||
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
|
||||
|
Reference in New Issue
Block a user