gtk-font, yhtml wpcolors

This commit is contained in:
2026-02-15 13:44:35 +01:00
parent 169302735e
commit b7642347f8
6 changed files with 16 additions and 4 deletions

View File

@@ -1,12 +1,22 @@
#!/bin/bash
mkdir -p $HOME/.config/xsettingsd
# Theme
gtk_theme="$(grep "^[^#]*gtk-theme-name" "${HOME}/.config/gtk-3.0/settings.ini")"
gtk_theme="${gtk_theme/gtk-theme-name*=}"
echo "Net/ThemeName \"$gtk_theme\"" > "$HOME/.config/xsettingsd/xsettingsd.conf"
# Icons
gtk_theme_icons="$(grep "^[^#]*gtk-icon-theme-name" "${HOME}/.config/gtk-3.0/settings.ini")"
gtk_theme_icons="${gtk_theme_icons/gtk-icon-theme-name*=}"
echo "Net/IconThemeName \"$gtk_theme_icons\"" >> "$HOME/.config/xsettingsd/xsettingsd.conf"
# Fonts
#Gtk/FontName "DejaVu Sans 10"
gtk_font="$(grep "^[^#]*gtk-font-name" "${HOME}/.config/gtk-3.0/settings.ini")"
gtk_font="${gtk_font/gtk-font-name*=}"
echo "Gtk/FontName \"$gtk_font\"" >> "$HOME/.config/xsettingsd/xsettingsd.conf"
bl-reload-gtk23

View File

@@ -1,4 +1,5 @@
#!/bin/bash
export WEBKIT_DISABLE_COMPOSITING_MODE=1
file=${1}
title=${2:-"Mabox Linux Doc"}

View File

@@ -99,6 +99,7 @@ if [ ! -f "$WALLPALDIR/${NAME}.clr" ]; then
fi
fi
cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr"
# GENERATE THUMBNAIL

View File

@@ -7,8 +7,8 @@ XRES="$HOME/.Xresources"
/usr/bin/lxappearance
sleep .5
#READ Cursor theme name from GTK2_RC
read CURTHEME <<< "$(grep gtk-cursor-theme-name ${GTK2_RC} | cut -d'"' -f2)"
#READ Cursor theme name from GTK3
read CURTHEME <<< "$(grep gtk-cursor-theme-name ${GTK3_RC} | cut -d'"' -f2)"
# WRITE to GTK3
if grep "^gtk-cursor-theme-name=${CURTHEME}" ${GTK3_RC};then
#found nic nie robimy

View File

@@ -99,7 +99,7 @@ if [ ! -f "$WALLPALDIR/${NAME}.clr" ]; then
fi
fi
cat "$WALLPALDIR/${NAME}.clr" > "$HOME/.config/mabox/wpcolors.clr"
# GENERATE THUMBNAIL
THUMBDIR="$HOME/.cache/colorizer/thumbs"

View File

@@ -9,7 +9,7 @@ set -euo pipefail
/usr/bin/xrandr "$@"
if [[ "$@" == *"--output"* ]];then
nitrogen --restore
fehbg --restore
if pgrep conky;then
killall -SIGUSR1 conky 2> /dev/null
fi