You are not logged in.

#1 2023-07-31 13:03:44

kes
Member
Registered: 2017-12-12
Posts: 35

Setting Open box desktop theme via command line

I use the lxappearance GUI app to set my openbox desktop theme.
Openbox is upto date and the latest version, as are all of the packages on the system.
 
Inside lxappearance I choose the
- "Widget" tab and then the "Arc-Dark" theme.
- "Icon Theme" tab and then the "Sardi Arc" theme.
- "Mouse Cursor" tab and then the "Adwaita" theme and then select the left most mouse pointer.
- "window Border" tab and then the "Arc-Aqua-Dark" theme.

Can anyone suggest How I can implement my lxapperance settings as a script from the command line.

I have the below code but it does not work.



# Set the GTK *overall* theme for widgets to "Arc-Dark"
gsettings set org.gnome.desktop.interface gtk-theme "Arc-Dark"

# Set the icon theme to "Sardi Arc"
gsettings set org.gnome.desktop.interface icon-theme "Sardi Arc"

# Set the cursor theme to "Adwaita"
gsettings set org.gnome.desktop.interface cursor-theme "Adwaita"

# Select the leftmost mouse arrow (cursor) in Adwaita by setting its index to 0
gsettings set org.gnome.desktop.interface cursor-size 0

# Set the *window border* theme to "arc-aqua-dark"
gsettings set org.gnome.desktop.wm.preferences theme "Arc-Aqua-Dark"



# Force the desktop settings to apply immediately
dconf update

I understand that gsettings is a bit like a windows registry but have no idea how to use it, since the above commands seem to be ineffective.

I know I can bring a keys editor up with this command

dconf-editor &

And list the general picture of what's in there with

gsettings list-schemas

I have the following files in the following locations on my system

 Below dir ls -1 is for dir
     /usr/share/themes/Arc-Dark

cinnamon
gnome-shell
gtk-2.0
gtk-3.0
gtk-4.0
index.theme
metacity-1
plank
unity
xfwm4



 Below dir ls -1 is for dir
     /usr/share/themes/Arc-Dark/gtk-3.0

gtk.css
gtk-dark.css
gtk.gresource
thumbnail.png



 Below dir ls -1 is for dir
     /usr/share/icons/Sardi-Arc

create-new-icon-theme.cache.sh
icon-theme.cache
index.theme
LICENSE
places



 Below dir ls -1 is for dir
     /usr/share/icons/Adwaita

16x16
32x32
cursors
icon-theme.cache
index.theme
scalable
symbolic
symbolic-up-to-32



 Below dir ls -1 is for dir
     /usr/share/themes/Arc-Aqua-Dark

Arc-Dark
cinnamon
gnome-shell
gtk-2.0
gtk-3.0
index.theme
metacity-1
openbox-3
plank
unity
xfwm4


cd -- /usr/share/themes/Arc-Aqua-Dark/openbox-3

 Below dir ls -1 is for dir
     /usr/share/themes/Arc-Aqua-Dark/openbox-3

close.xbm
desk_toggled.xbm
desk.xbm
iconify.xbm
max_toggled.xbm
max.xbm
shade_toggled.xbm
shade.xbm
themerc



 Below dir ls -1 is for dir
     /usr/share/themes/Arc-Aqua-Dark/gtk-3.0

gtk.css
gtk.gresource
thumbnail.png

Last edited by kes (2023-07-31 13:07:53)

Offline

Board footer

Powered by FluxBB