Author Topic: [SOLVED] What is it command  (Read 2439 times)

xxx600

  • Newbie
  • *
  • Posts: 31
    • View Profile
on: June 24, 2015, 12:04:46 PM
Hello all,

How are you ?


After move picture to /user/share/xfce4/backdrops and theme /usr/share/theme

How can background and theme set on terminal.
 
What is it command ??
« Last Edit: November 19, 2015, 12:48:35 PM by ZEROF »



ostendali

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 587
    • View Profile
Reply #1 on: June 25, 2015, 04:50:01 PM
Hello all,

How are you ?


After move picture to /user/share/xfce4/backdrops and theme /usr/share/theme

How can background and theme set on terminal.
 
What is it command ??

is this a question?

did you asked to a search engine before?

http://askubuntu.com/questions/558280/changing-colour-of-text-and-background-of-terminal



xxx600

  • Newbie
  • *
  • Posts: 31
    • View Profile
Reply #2 on: June 25, 2015, 11:57:58 PM
hello ostendali

This is not what I want to do

I want a desktop background set of terminal
« Last Edit: June 27, 2015, 10:38:32 AM by ZEROF »



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #3 on: June 27, 2015, 10:42:55 AM
Hi xxx600,

First stop posting with "center" tag, because i will not spend my time editing your posts. 2nd i don't understand you at all.

1. You want to change terminal backround?
2. You want to change desktop backround?

And this questions are kind 101 Linux settings level. Every answer about setting your xfce can be found here:

http://docs.xfce.org/xfce/xfce4-settings/start



Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


xxx600

  • Newbie
  • *
  • Posts: 31
    • View Profile
Reply #4 on: June 28, 2015, 08:47:05 PM


hi ZEROF
i want to change desktop backround from command line not gui
because I want a written script sets the desktop background in addition to the Theme

I've written this before
https://forum.backbox.org/general-support/customize-backbox-2074

Now I will write script does everything
change desktop backround from command line
change desktop theme command line

and other



ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #5 on: June 28, 2015, 11:36:06 PM
Ok,

I see now, you want to write your first bash script and speed up that process in the future, i will say why not, but you will have few issues from start. When somebody download them or wallpaper he need full path, like /home/user/photos or user will use download folder etc... That you can't set on your script because you don't know where user will put his downloads. What you can is to ask user where is it and your script can do that.

How that need to look:

#!/bin/bash
echo "Hello to my bash learning test"
echo""
echo -n "Now say me where you did hide your wallpaper: "
read path
cd $path
ls

If you check you terminal you will see that you are in folder you did set as path. Etc ... anyway, that is only start :).
« Last Edit: June 28, 2015, 11:55:30 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #6 on: June 29, 2015, 12:31:02 AM
As i got motivated :)

Code: [Select]
#!/bin/bash
function pause () {
echo -n -e "Press [ENTER] to move on ....\n"
read -p "$*"
}
echo -e "\nThis is my learning bash script.\n"
echo -e "Script is going to learn from you ....\n"
echo -n -e "\\"
sleep 1
echo -n -e  "\\"
sleep 1
echo -n -e "\\"
sleep 1;
echo -e "\\ \n"
echo -n "Write your path for downloaded wallpaper: "
read path
cd $path
echo ""
echo "Your new path is: "${PWD##*/}""
echo -e "\nGreat, you are in!!\n"
sleep 1
echo -e "What next ...\n"
pause
echo "Maybe i need to add more code ... or you can write some"
sleep 2
echo -e "\nBye Bye!"

This is even better and funny looking script :). Copy and save as xxx.sh, run in terminal bash xxx.sh, and you will see.
« Last Edit: June 29, 2015, 12:33:19 AM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


xxx600

  • Newbie
  • *
  • Posts: 31
    • View Profile
Reply #7 on: June 30, 2015, 02:06:11 AM
thnx ZEROF