️ perf(config): adjust lx apperance

This commit is contained in:
eshanized
2024-12-29 07:12:09 +05:30
parent 31fcf966b7
commit 5ff8e92c3f
3 changed files with 48 additions and 11 deletions

20
.gtkrc-2.0 Normal file
View File

@@ -0,0 +1,20 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/whoami/.gtkrc-2.0.mine"
gtk-theme-name="Nordic-bluish-accent"
gtk-icon-theme-name="Tela-nord-dark"
gtk-font-name="Share Tech 11"
gtk-cursor-theme-name="Colloid-cursors"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_both-horiz
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="none"
gtk-modules="canberra-gtk-module:gail:atk-bridge"

20
etc/skel/.gtkrc-2.0 Normal file
View File

@@ -0,0 +1,20 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/whoami/.gtkrc-2.0.mine"
gtk-theme-name="Nordic-bluish-accent"
gtk-icon-theme-name="Tela-nord-dark"
gtk-font-name="Share Tech 11"
gtk-cursor-theme-name="Colloid-cursors"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_both-horiz
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="none"
gtk-modules="canberra-gtk-module:gail:atk-bridge"

19
generate.sh Normal file → Executable file
View File

@@ -5,27 +5,24 @@ ICON_THEME=$(gsettings get org.cinnamon.desktop.interface icon-theme | tr -d "'"
CURSOR_THEME=$(gsettings get org.cinnamon.desktop.interface cursor-theme | tr -d "'") CURSOR_THEME=$(gsettings get org.cinnamon.desktop.interface cursor-theme | tr -d "'")
FONT_NAME=$(gsettings get org.cinnamon.desktop.interface font-name | tr -d "'") FONT_NAME=$(gsettings get org.cinnamon.desktop.interface font-name | tr -d "'")
TOOLBAR_STYLE=$(gsettings get org.cinnamon.desktop.interface toolbar-style | tr -d "'") TOOLBAR_STYLE=$(gsettings get org.cinnamon.desktop.interface toolbar-style | tr -d "'")
TOOLBAR_ICON_SIZE=$(gsettings get org.cinnamon.desktop.interface toolbar-icon-size | tr -d "'") # TOOLBAR_ICON_SIZE=$(gsettings get org.cinnamon.desktop.interface toolbar-icon-size | tr -d "'")
# Ensure /etc/skel directory exists # Get the directory of the current script
if [ ! -d "/etc/skel" ]; then SCRIPT_DIR=$(dirname "$(readlink -f "$0")")
echo "Error: /etc/skel directory does not exist!"
exit 1
fi
# Write to /etc/skel/.gtkrc-2.0 # Write the .gtkrc-2.0 file to the script's directory
cat <<EOF > /etc/skel/.gtkrc-2.0 cat <<EOF > "$SCRIPT_DIR/.gtkrc-2.0"
# DO NOT EDIT! This file will be overwritten by LXAppearance. # DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead. # Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/\$USER/.gtkrc-2.0.mine" include "/home/$USER/.gtkrc-2.0.mine"
gtk-theme-name="$GTK_THEME" gtk-theme-name="$GTK_THEME"
gtk-icon-theme-name="$ICON_THEME" gtk-icon-theme-name="$ICON_THEME"
gtk-font-name="$FONT_NAME" gtk-font-name="$FONT_NAME"
gtk-cursor-theme-name="$CURSOR_THEME" gtk-cursor-theme-name="$CURSOR_THEME"
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_$TOOLBAR_STYLE gtk-toolbar-style=GTK_TOOLBAR_$TOOLBAR_STYLE
gtk-toolbar-icon-size=GTK_ICON_SIZE_${TOOLBAR_ICON_SIZE^^} gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0 gtk-button-images=0
gtk-menu-images=0 gtk-menu-images=0
gtk-enable-event-sounds=1 gtk-enable-event-sounds=1
@@ -37,4 +34,4 @@ gtk-xft-rgba="none"
gtk-modules="canberra-gtk-module:gail:atk-bridge" gtk-modules="canberra-gtk-module:gail:atk-bridge"
EOF EOF
echo ".gtkrc-2.0 file has been successfully written to /etc/skel/" echo ".gtkrc-2.0 file generated successfully in $SCRIPT_DIR"