Ubuntu :: Create A Moving Mocp-feed Line In Conky?

Apr 12, 2011

I've been using the command line music player moc for some time now & am in love with it. So, I thought it'd be nice if I can add a current track info feed to my conky display. Therefore, I have this smple script that gets the track info from mocp -i .

Code:
#!/bin/sh
TITLE="`mocp -i | grep 'Title:' | sed -e 's/^.*: //'`";
if [ "$TITLE" != "" ]; then
ARTIST="`mocp -i | grep 'Artist:' | sed -e 's/^.*: //'`";
code....

But here comes the point. The way the track info is shown feels kind of blunt. I was wondering if something can be done either in the script or in conkyrc so that the track info is shown in a single line, moving backward at a constant speed; like you know, news channels show news strips at the bottom of the screen .

View 1 Replies


ADVERTISEMENT

General :: Scripting - Feed An Input File Into An If Statement Line-by-line

Dec 23, 2009

I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.

I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.

The error I am getting now is ./script.sh: line 6: [: : integer expression expected

Sample input $FileName

Code:

Code:

Code:

Script so far:

Code:

View 10 Replies View Related

General :: Subscribe To Feed In Thunderbird From The Command Line?

Apr 22, 2010

From reading around the web, it looks like Firefox's "quick view" of an RSS feed sometimes lets you "Subscribe to this feed using" Thunderbird. For whatever reason, that's not an automatically-added option with my setup (FF 3.5.something + Thunderbird 3.0.something on Linux), so I figured I could just "Choose Application...", point at the Thunderbird binary, and be on my way. Not so -- nothing appears to happen. If I run thunderbird from the command line as

thunderbird "http://path/to/feed" the app launches as normal. If it's already running, absolutely nothing happens. Is this impossible? Is there some mojo I can pass Firefox to tell it that Thunderbird exists? Should I just suck it up and copy/paste the URLs manually?

View 1 Replies View Related

General :: Command Line - RSS Feed Reader From The Terminal?

Jun 12, 2010

Is there a way by which I can read RSS feeds from the terminal itself ? Something that would display the titles and a link to follow. Or maybe a software which works from within the terminal.

View 2 Replies View Related

Ubuntu :: Conky And New Line With Inverted Rectangle

Jun 21, 2010

I am using Ubuntu 10.4 and Conky new version. I downloaded some conkyrc files from net and trying to test for all the output of Conky on my desktop, on my screen end of each line i see a inverted rectangle!

View 9 Replies View Related

General :: Conky Feeding A Line Of Crap?

Oct 10, 2010

i started messing around with conky. its really neat and i like making new configurations and what not, just for fun. the thing is, the other day i was playing around with the 'cpu' variables (cpu, cpubar, cpuguage) normally if you wanted to see the usage of say cpu0 or cpu1 you could call the variable as ${cpu cpu0} or ${cpu cpu1} respectively. well i input ${cpu5} (obviously i dont have 5 cpu's) well it still gave me output as if it was showing me the usage of that cpu. can any of you guys explain this. it also works for other parameters as well. is conky just showing me a bunch of random graphs and percentages or when i called that imaginary cpu does it default to a certain one. these are the only two answers i can come up with on my own.

View 1 Replies View Related

Debian Multimedia :: Installed Mocp But The Sound Is Too Low?

Jul 15, 2011

I'm running stable debian, installed mocp but the sound is too low even at 100% volume. Is there a way to amplify mocp sound at e.g. 140%? I use mocp with equalizer

[Code]....

but in equalizer config there's nothing about amplifaction..

View 2 Replies View Related

Ubuntu Installation :: Downloaded Conky But Cant Make It Work - Create The Rc File ?

Apr 8, 2011

I have downloaded conky but cant make it work. I have so far installed from terminal. But I do not see it in my desktop. Where do I create the rc file?

View 1 Replies View Related

General :: Create Cron Tab When DSL Line Down Set Automatically Restart The Network Service While DSL Line Up?

Oct 7, 2010

How to create cron tab when DSL line down set automatically restart the network service while DSL line up?

View 3 Replies View Related

Programming :: Create File Listing In C++ That Will Generate Line Number On Every Line Of Code

Apr 11, 2010

I have a project due for my Intro to C++ class and we are suppose to generate a file listing that will take an input of a C++ source code with .cpp extension and make a copy of it with a .lst extention that will have a line number preceding each and every line.

View 12 Replies View Related

General :: Moving Characters To The End Of Line (EOL) With SED?

Sep 13, 2010

Any time the word The appears at the beginning of a line, I want to move it to the end of the line and capitalize the new first word in the line. For example, The heaven becomes Heaven the. I'm trying to test this out for my Library.

View 2 Replies View Related

Software :: Set Progress Bar On Moving Files With Command Line?

Jan 22, 2009

When I move files with the mv command, it simply waits until the file has moved and then the command prompt appears again. This is fine, but there are two things which are rather annoyingThere is no progress bar: When moving really large files, you have no idea how long the move is going to take. Is there possible to produce a progress bar to show how much has finished? You can't do anything while you're moving: You can't use the command prompt while you're moving the file/files. I'm currently not using a Linux computer (I'm at school) but maybe it's possible to write mv <file> <location> &, I just thought of that just now. Is it maybe possible to use another program than mv to move you files?

View 2 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

Oct 17, 2010

How can I move a directory to the root of a drive via command line?

In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'

What is the equivilent in Linux?

View 8 Replies View Related

Ubuntu :: Conky Quirk - How To Get Conky To Start Normally Without Having To Do Manual Restart Everytime Login

Jun 26, 2011

I have conky installed and set up as a startup application, however everytime I log out and back in conky creates itself as a new window:

How can I get conky to start normally without having to do a manual restart everytime I login?

View 3 Replies View Related

Programming :: Bash - Recursive Find - Create Parent Folder - Moving File

Dec 5, 2010

I'm starting bash shell script and I'm looping without any solution.

I'm trying to find some files under a folder hierarchy and in case of errors moving these files to a destination folder under the same hierarchy recreating this hierarchy if not exists.

Finding all ._* files under /src and moving them to /dest recreating folder1 or the others which contains ._* files but without moving files which does not correspond to the pattern.

Code:

I tried find command and I'am getting all needed files

Code:

But I don't know how to use the output to get the parent folder of files which are found to

1- create folder with mkdir -p /dest/folder1 or /dest/folder1/folder4

2- move found files from /src/... to /dest/... with rm command

I'm working on a find command as this trying to do all in the same line but ... little lost

Code:

View 8 Replies View Related

Debian :: Conky - Full Screen Config / 2 Conky Configs?

Jun 13, 2011

Said that all the config i find put all the info in one place of the screen, in this example on the right side:

url

or like conky colors where you can put in either side, or other complex examples that use folders with images..that at least i need one day to study all the variables it has...

What i want is something simple, in my black background i dont want images and effects, only white simple text.

My problem is: i want for instance my specs above, my log info in the middle, my music info bellow (above my clock) and in conky config i'm hitting my head in the wall....

For instance if i use my facebook script to appear in the midle how the hell can i put my music info bellow without ruined the facebook in the midle...do i need 2 conky configs?

View 4 Replies View Related

Ubuntu :: When Type "conky" In Terminal It Returns With Conky: Invalid Configuration File

Feb 1, 2011

when I type "conky" in terminal it returns with Conky: invalid configuration file '/home/user/.conkyrc' Conky: missing text block in configuration; exiting ***** Imlib2 Developer Warning ***** : This program is calling the Imlib call: imlib_context_free(); With the parameter: context being NULL. Please fix your program. I've tried completely uninstalling, rebooting, then reinstalling, still same error?

View 3 Replies View Related

Ubuntu :: Moving Buttons To Left - Keep Moving Back

Mar 27, 2011

I like the buttons on the left. I'm running 10.04 & I know how to move them. The problem is that changing themes will move them back right. OK, if the new theme has them on the right that's OK. But going back to the other theme doesn't change them back. They don't seem to be controlled by the theme, or I'm just not doing it right.

View 2 Replies View Related

Ubuntu :: Create A Window Message From Command Line?

Sep 20, 2010

Is there a way to create a windowed message from the command line? Like an alert?

View 3 Replies View Related

Fedora :: Moving Cursur Its Moving But When Clcking On Touch Pad To Open Anything Its Not Opening?

Sep 13, 2009

I have installed fedora 11, now i want to install touch driver for my dell 15 laptop. when i m moving cursur its moving but when i m clcking on touch pad to open anything its not opening, to open i have 2 select any file then i have to click touchpad keys.

View 2 Replies View Related

Ubuntu :: How To Create A Shortcut To Open Command Line Program

Feb 21, 2010

I use a few command line programs quite often such as nano and mpc. I'd like to create a shortcut icon to open them rather than opening a terminal and then typing in the program name to open it. For example, how could i open konsole with nano opened in one step?

View 5 Replies View Related

OpenSUSE :: Failed: Conky Hardcore "Conky Transparency With KDE (3 And 4)"

Jun 19, 2010

I have a problem with conky. It draws a black background instead of using pseudo-transparency. I ofc tried to achieve this with feh but to no avail. All the instructions here failed: Conky Hardcore! Conky transparency with KDE (3 and 4)

[Code]...

View 1 Replies View Related

Fedora :: Create An ISO Image Out Of A Directory From Command Line?

Feb 7, 2010

I am implementing a strategy to organize my data among the several machines I work with and thought that getting some ISO images out of it could be a good idea because that way data would be 'read only' thus allowing for easier synchronization.

At first I thought of using the "dd" command to create the ISO out of a directory, but it fails code...
So, I have two questions:

Is the ISO 'format' capable of storing complex directory structures with long filenames (pretty much as any Linux filesystem does), or are there some inherent limitations?

Supposing the ISO format is not constrained, which command would allow me to create an ISO file out of a directory?

View 5 Replies View Related

Fedora :: Create A GUI Interface For Some Command Line Commands?

Aug 22, 2011

I'm developing in java.

I want to create a GUI interface for some command line commands (drush - drupal).

How can I interact with the command line commands with java? or any other languege?

View 6 Replies View Related

General :: Command Line - How To Create Multipart Rar File

Sep 4, 2010

How can I create multipart rar file in Linux using the official console rar client?RAR 3.90 Copyright (c) 1993-2009 Alexander Roshal 16 Aug 2009Shareware version Type RAR -? for helpI want a multipart rar with each part size being 150 MB.

View 1 Replies View Related

General :: Command Line - Create Multipart Tar File?

Oct 13, 2010

How to split a tar file into smaller parts at file boundaries?

How can I create a multipart tar file in Linux?

View 2 Replies View Related

Software :: Create Mysql Database From Command Line?

Feb 13, 2010

I want to create database from script directly by taking inputs USER, PASSWORD and DBNAME.code...

How to resolve this or any alternate method (other than entering into mysql prompt like mysql -u USER -pPASSWORD)?

View 3 Replies View Related

CentOS 5 Server :: Create An User Through Command Line?

Dec 16, 2009

i have a server running on centos5, i have run vsftp and samba, and i need create a user through command line and set your default directory, i can do this through graphic interface, but i need do throug line command.

View 12 Replies View Related

General :: Create A New Terminal Window From The Command Line In RHEL 5.3

May 18, 2011

I use putty to get to my RHEL 5.3 workstation from my Windows laptop.

Typically, if I want a new terminal on my windows 7 workstation from another terminal or mc, I have to type start and I will see a new terminal window running the default shell.

QUESTION : What is the equivalent command in RHEL 5.3 (and or solaris) to create a new terminal window from the command line ? I will be entering this command from the shell prompt or mc's command line.

In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux ?

View 3 Replies View Related

General :: Command Line - How To Create Multipart 7zip File

May 18, 2011

How can I create a multipart 7zip file in Linux using the p7zip console client? My console app is

7-Zip [64] 9.13 beta Copyright (c) 1999-2010 Igor Pavlov 2010-04-15
p7zip Version 9.13 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved