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:
parent
fa136cbd2a
commit
2907e24656
@ -36,5 +36,5 @@ Xft.hinting: true
|
|||||||
Xft.hintstyle: hintfull
|
Xft.hintstyle: hintfull
|
||||||
Xft.lcdfilter: lcddefault
|
Xft.lcdfilter: lcddefault
|
||||||
|
|
||||||
Xcursor.size: 16
|
Xcursor.size: 28
|
||||||
Xcursor.theme: Breeze_Obsidian
|
Xcursor.theme: BreezeX-Black
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
gtk-theme-name="Arc-Dark"
|
gtk-theme-name="Arc-Dark"
|
||||||
gtk-icon-theme-name="Xenlism-Wildfire"
|
gtk-icon-theme-name="Xenlism-Wildfire"
|
||||||
gtk-font-name="sans 9"
|
gtk-font-name="sans 9"
|
||||||
gtk-cursor-theme-name="Breeze_Obsidian"
|
gtk-cursor-theme-name="BreezeX-Black"
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=28
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
|
@ -3,8 +3,8 @@ gtk-theme-name=Arc-Dark
|
|||||||
gtk-icon-theme-name=Xenlism-Wildfire
|
gtk-icon-theme-name=Xenlism-Wildfire
|
||||||
gtk-application-prefer-dark-theme=true
|
gtk-application-prefer-dark-theme=true
|
||||||
gtk-font-name=sans 9
|
gtk-font-name=sans 9
|
||||||
gtk-cursor-theme-name=Breeze_Obsidian
|
gtk-cursor-theme-name=BreezeX-Black
|
||||||
gtk-cursor-theme-size=16
|
gtk-cursor-theme-size=28
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
|
@ -4,6 +4,8 @@ set -eu
|
|||||||
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
|
# Based on https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup
|
||||||
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
CONF_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
|
||||||
|
CURSOR_SIZE=28
|
||||||
|
|
||||||
xrdbget() {
|
xrdbget() {
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
xrdb -query | grep -i -m1 "$1" | sed 's/^.*:\s//g' || echo "$2"
|
||||||
@ -26,7 +28,7 @@ fi
|
|||||||
|
|
||||||
dpi=$1
|
dpi=$1
|
||||||
scale=$(( dpi/96 ))
|
scale=$(( dpi/96 ))
|
||||||
cursor=$(( dpi/6 ))
|
cursor=$(( (dpi*CURSOR_SIZE)/96 ))
|
||||||
|
|
||||||
# Update picom scale
|
# Update picom scale
|
||||||
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
|
sed -i -e "s/strength =.*$/strength = $(( dpi*8/96 ));/" \
|
||||||
|
Loading…
Reference in New Issue
Block a user