ShopDreamUp AI ArtDreamUp
Deviation Actions
My first major bash script is done. I'm trying to make it easier for people with no experience to install my GTK themes and for other theme developers to use this script for the same purpose. I will probably release this with my next theme to see if it works ok. You can grab the source now though.
Q: So why just not write the manual way to install a theme?
A: My script checks if the user is stupid.
Q: Do you think all users are stupid?
A: Nah J/K. My script checks certain things like if gnome-shell or unity is running, or if the folder structure is messed up. It even checks if the user have the required Murrine version installed, otherwise the theme may look messy. However, if the user doesn't know how to install the murrine engine or any required software the error messages output - then this will not be much of a help.
Q: I want to use this script. What do I need to know?
A: If you're a theme developer then feel free to do so.
You should edit the script with the required information at the start:
GTK_THEME="enter-name-here" # The name of the GTK theme (The folder name.)
METACITY_THEME="enter-name-here" # The name of the metacity theme (The folder name, should be the same as above.)
MURRINE_TESTVER=0.9811 # This is version the user needs of the murrine engine. Change it if your theme requires a newer or older version.
Then save the file as your_theme-install.sh with the following required folder structure:
|your_theme-install.sh
|your_theme_folder
|---gtk-2.0
|---metacity-1
If your theme doesn't have a metacity theme, then comment out the following lines: (By adding a # in front of the line.)
gconftool-2 --type string --set /apps/metacity/general/theme "$METACITY_THEME" (There should be 2 of them.)
Then right-click on your_theme-install.sh and select Properties and click "Allow Executing File as Program." Any user should now be able to double-click on the file and select Run.
------------------------------
Grab the source here: pastebin.com/DL939Vpj
Btw, I'm not an expert at writing bash scripts. This can probably be done in a much cleaner and better way. So if you're a bash guru don't facepalm right away, give me constructive feedback.
Oh, and there a probably tons of typos and grammar errors in the script.
I'm hoping to find a way to import an *.emerald file instead of a metacity theme. Unfortunately I have not found any way of doing this yet. But this will be the base of the script for GTK and Metacity themes. If there's any new version I'll update this journal entry.
Q: So why just not write the manual way to install a theme?
A: My script checks if the user is stupid.
Q: Do you think all users are stupid?
A: Nah J/K. My script checks certain things like if gnome-shell or unity is running, or if the folder structure is messed up. It even checks if the user have the required Murrine version installed, otherwise the theme may look messy. However, if the user doesn't know how to install the murrine engine or any required software the error messages output - then this will not be much of a help.
Q: I want to use this script. What do I need to know?
A: If you're a theme developer then feel free to do so.
You should edit the script with the required information at the start:
GTK_THEME="enter-name-here" # The name of the GTK theme (The folder name.)
METACITY_THEME="enter-name-here" # The name of the metacity theme (The folder name, should be the same as above.)
MURRINE_TESTVER=0.9811 # This is version the user needs of the murrine engine. Change it if your theme requires a newer or older version.
Then save the file as your_theme-install.sh with the following required folder structure:
|your_theme-install.sh
|your_theme_folder
|---gtk-2.0
|---metacity-1
If your theme doesn't have a metacity theme, then comment out the following lines: (By adding a # in front of the line.)
gconftool-2 --type string --set /apps/metacity/general/theme "$METACITY_THEME" (There should be 2 of them.)
Then right-click on your_theme-install.sh and select Properties and click "Allow Executing File as Program." Any user should now be able to double-click on the file and select Run.
------------------------------
Grab the source here: pastebin.com/DL939Vpj
Btw, I'm not an expert at writing bash scripts. This can probably be done in a much cleaner and better way. So if you're a bash guru don't facepalm right away, give me constructive feedback.
Oh, and there a probably tons of typos and grammar errors in the script.
I'm hoping to find a way to import an *.emerald file instead of a metacity theme. Unfortunately I have not found any way of doing this yet. But this will be the base of the script for GTK and Metacity themes. If there's any new version I'll update this journal entry.
DeviantJunk Filter
How to create adblocking filters for removing undesired deviants from showing up while you browse certain categories.
This will work in most adblocking extensions. I personally recommend the uBlock Origin extension for this purpose.
How to filter a user
Click on the uBlock Origin extension icon > Click on the top bar to get into the settings. Go to My Filters. Add a new line for every user you want to filter and place the user name or a part of the user name within the "". Adblock filters are case sensitive. This will also work with title keywords.
Examples:
deviantart.com##SPAN[href*="xxhorribleusernamexx"]
deviantart.com##SPAN[href
Gnome 3.10
Updated: So once again themes break after a major upgrade. It looked ok in the early beta stage, but now I have to look over a lot of shit again. :/
Betatest Zukitwo and Zukiwi for GTK3.8
https://bazaar.launchpad.net/~lassekongo83/zukitwo/gnome3.8/files
Click view revision and download tarball.
Note: The gnome-shell theme is far from finished, and if something looks like adwaita it's not a bug, it's just me who haven't changed it yet. :p
If you find any bugs let me know here or on the launchpad page. (Screenshots are helpful when reporting a bug.) I hope to get something released near the Gnome 3.8 release this time. ;)
Can't come up with a title so I'll just say derp.
Compiz is dead. Metacity is going to die. Canonical has to find a replacement WM for Unity or shove up the development of compiz to someone else. Wayland may replace X11 (and I hope it will be good once it do.) Shit happens as usual. (Even good shit.)
I'm thinking about abandoning Metacity support for my themes too. My next theme that I've started working on is not going to have a Metacity theme as I see no point in supporting it when I'm not using it and when it's going to be abandoned. A quote from the musical artist Pogo: "I don't make art for you, I make art for myself." :p In the end I just get tired of trying to fix things for stuff th
© 2011 - 2024 lassekongo83
Comments6
Join the community to add your comment. Already a deviant? Log In
To import Emerald themes, extract the .emerald to '~/.emerald/themes'.
To force a theme copy the contents of an Emerald theme (from the themes folder) to '~/.emerald/theme' and use 'emerald --replace'.
Now all you have to do is to find a way to make compiz use emerald as a decorator when it starts up, normally you'd launch CCSM>Window Decoration>Command, and replace with 'emerald --replace'.
Good luck.
To force a theme copy the contents of an Emerald theme (from the themes folder) to '~/.emerald/theme' and use 'emerald --replace'.
Now all you have to do is to find a way to make compiz use emerald as a decorator when it starts up, normally you'd launch CCSM>Window Decoration>Command, and replace with 'emerald --replace'.
Good luck.