I had to make some changes to get this to work on archlinux (Feb 9 2017), see diff below.
I added two scripts:
scripts/camp
will create preview images from themes. I have used it on my system, it didn't take too long to execute, just a couple of minutes for a large bunch of prewiew-less styles.
Start it on an empty desktop. Beware, it will temporarily move fluxbox config files and restart fluxbox many times.
More information inside the script, or when executing it without arguments.
You might need to change the app1
and app2
variables, but be sure to keep the geometry intact.
Requires bash, xwininfo, xprop, xdotool, imagemagick.
scripts/ob2fb.py
is a script that will convert openbox3 themes to fluxbox, salvaged from somewhere else. I haven't even tested it.
diff --git a/fluxstyle/find_styles.py b/fluxstyle/find_styles.py
index c261cbc..ab7f121 100644
--- a/fluxstyle/find_styles.py
+++ b/fluxstyle/find_styles.py
@@ -52,7 +52,10 @@ def set_style(style, location):
init_file_backup.close()
# attempt to not have to make a seperate fedora package for odd name
# 'fluxbox-bin'
- system('kill -s USR2 `xprop -root _BLACKBOX_PID | awk \'{print $3}\'`')
+ #~ system('kill -s USR1 `xprop -root _BLACKBOX_PID | awk \'{print $3}\'`')
+ # some styles (font colours mostly) don't apply properly after USR2
+ # so USR1 is required = fluxbox restart
+ system('kill -s USR1 `xprop -root _BLACKBOX_PID | awk \'{print $3}\'`')
return
def install_style(style_file):
diff --git a/fluxstyle_gui b/fluxstyle_gui
index 6cf8136..1e66941 100755
--- a/fluxstyle_gui
+++ b/fluxstyle_gui
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2005,2006 Michael Rice
# errr@errr-online.com
@@ -26,10 +26,10 @@ import gtk.glade
from fluxstyle import find_styles, parse_config
from fluxstyle import error_message
-#GLADEFILE="/usr/share/fluxstyle/glade/main.glade"
-#N_IMAGE="/usr/share/fluxstyle/images/none.jpg"
-GLADEFILE = "./glade/main.glade"
-N_IMAGE = "./images/none.jpg"
+GLADEFILE="/usr/share/fluxstyle/glade/main.glade"
+N_IMAGE="/usr/share/fluxstyle/images/none.jpg"
+#GLADEFILE = "./glade/main.glade"
+#N_IMAGE = "./images/none.jpg"
class StyleChange:
diff --git a/glade/main.glade b/glade/main.glade
index a1aa619..383ce74 100644
--- a/glade/main.glade
+++ b/glade/main.glade
@@ -40,7 +40,7 @@ url: http://darkshed.net/
his work was licensed under the
creative commons license. </property>
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
- <property name="logo">mini-fluxbox6.png</property>
+ <property name="logo">../images/mini-fluxbox6.png</property>
<signal name="response" handler="on_aboutdialog1_response" last_modification_time="Wed, 13 Dec 2006 05:10:46 GMT"/>
</widget>
@@ -54,7 +54,7 @@ creative commons license. </property>
<property name="default_height">450</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
- <property name="icon">fluxmetal.png</property>
+ <property name="icon">../images/fluxmetal.png</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
diff --git a/setup.py b/setup.py
index cb98450..65628d0 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Fluxstyle is a graphical style manager built in python
# using pygtk and glade. Fluxstyle is for the fluxbox window
@@ -38,11 +38,10 @@ def chk_install():
def main():
chk_install()
- doclines = __doc__.split("\n")
setup(
name='fluxstyle',
version='1.2',
- description=doclines[0],
+ description='description... bla...',
author='Michael Rice',
author_email='errr@errr-online.com',
url='https://github.com/michaelrice/fluxStyle/',
@@ -55,7 +54,7 @@ def main():
'images/none.jpg'
]
),
- (DATADIR + '/fluxstyle/glade', ['images/main.glade']),
+ (DATADIR + '/fluxstyle/glade', ['glade/main.glade']),
(BINDIR, ['fluxstyle_gui']),
(DATADIR + '/fluxstyle/docs',
['docs/README', 'docs/LICENSE', 'docs/Changelog'])