1
0
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:
Joe Groocock 2022-10-23 10:24:28 +00:00
parent fa136cbd2a
commit 2907e24656
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86
4 changed files with 9 additions and 7 deletions

View File

@ -36,5 +36,5 @@ Xft.hinting: true
Xft.hintstyle: hintfull
Xft.lcdfilter: lcddefault
Xcursor.size: 16
Xcursor.theme: Breeze_Obsidian
Xcursor.size: 28
Xcursor.theme: BreezeX-Black

View File

@ -1,8 +1,8 @@
gtk-theme-name="Arc-Dark"
gtk-icon-theme-name="Xenlism-Wildfire"
gtk-font-name="sans 9"
gtk-cursor-theme-name="Breeze_Obsidian"
gtk-cursor-theme-size=16
gtk-cursor-theme-name="BreezeX-Black"
gtk-cursor-theme-size=28
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1

View File

@ -3,8 +3,8 @@ gtk-theme-name=Arc-Dark
gtk-icon-theme-name=Xenlism-Wildfire
gtk-application-prefer-dark-theme=true
gtk-font-name=sans 9
gtk-cursor-theme-name=Breeze_Obsidian
gtk-cursor-theme-size=16
gtk-cursor-theme-name=BreezeX-Black
gtk-cursor-theme-size=28
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1

View File

@ -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 ));/" \