You are not logged in.
Pages: 1
Last edited by z_skie (2012-07-30 08:36:12)
Live and let love in.
Offline
I don't use slim, but I like your theme!
Offline
@Tunafish: Thanks, mate!
Live and let love in.
Offline
Neat Nice and minimal
Offline
Live and let love in.
Offline
I dont use slim, but they look great!
You should make a bash script so the user can choose between those two, instead of the default slim theme for waldorf.
Offline
# current theme, use comma separated list to specify a set to
# randomly choose from
#current_theme debian-spacefun
current_theme cb-cube1
#current_theme cb-cube2
#current_theme cb-cube-in-space
#current_theme cb-laptop
#current_theme waldorf
Offline
Live and let love in.
Offline
Offline
@damo: it works!! and I like it! GREAT work!!
this will be handy!
Live and let love in.
Offline
Minimalistic and cool Slim themes.
Time to move on!#
Offline
Last edited by z_skie (2012-07-30 08:34:37)
Live and let love in.
Offline
I will change my theme very often.
So i have written a little "Slim Theme Switcher"...
Feel free to be inspired:
#!/bin/bash
#
# Simple Slim Theme Switcher
# (c) 2012 by GamBit
#
# usage: sudo ./slimswitcher.sh
#
# This script help you to select and preview a slim theme
#
clear
unset Dirlist i count direc yn
echo Slim Theme Switcher - Version 1.0
echo \(c\) 2012 by GamBit
echo GNU General Public License \(GNU GPL or simply GPL\)
echo
# Backup the slim.conf
if [ ! -f /etc/slim.conf.backup ];
then
echo Backup slim.conf to slim.conf.backup!
cp /etc/slim.conf /etc/slim.conf.backup
fi
# change the slim theme configuration
sed -i 's/^current_theme.*$/current_theme slimswitcher/' /etc/slim.conf
cd /usr/share/slim/themes/
# get all installed themes
while IFS= read -r -u3 -d $'\0' file; do
Dirlist[i++]="$file"
done 3< <(find * -type d -print0)
# display all themes with a number
count=0
for direc in ${Dirlist[@]} ; do
echo $count\) $direc
count=$[$count+1]
done
# ask the user for the number of a theme
while true; do
read -p "What theme do you want to use?" selected
if [ $selected -le $count ] ; then
rm /usr/share/slim/themes/slimswitcher
ln -s /usr/share/slim/themes/${Dirlist[$selected]} /usr/share/slim/themes/slimswitcher # set the selected theme
echo
echo Theme switched to ${Dirlist[$selected]}.
break
else
echo Select a number of a theme!
fi
done
echo
# ask user to preview the selected theme
while true; do
read -p "Do you wish to preview your selected slim theme?" yn
case $yn in
[Yy]* ) slim -p /usr/share/slim/themes/slimswitcher 2>/dev/null; echo; break;; # preview the theme
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
Last edited by GamBit (2012-07-30 18:26:46)
Offline
That's great.. thanks, mate. We already have a script for choosing the themes but this one's cool too
So thanks
Last edited by z_skie (2012-07-30 20:42:49)
Live and let love in.
Offline
Offline
I already knew about them, but thanks
Live and let love in.
Offline
I really like this, I may have to try it out sometime.
Last edited by Rawketman (2012-08-01 16:22:35)
Offline
Cool, I'm glad to hear this!
Live and let love in.
Offline
Offline
See my sig for some other #! slim themes
Offline
Live and let love in.
Offline
Offline
Live and let love in.
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat