I don't know. Post the script, and maybe something will jump out at me. I'm currently looking for an analog conky clock. I want to try to do everything with conky instead of using separate widgets like I did before.
Why GNU/Linux Rocks
Collapse
X
-
Originally posted by lxskllrI don't know. Post the script, and maybe something will jump out at me. I'm currently looking for an analog conky clock. I want to try to do everything with conky instead of using separate widgets like I did before.Code:# Conky, a system monitor, based on torsmo # # Any original torsmo code is licensed under the BSD license # # All code written since the fork of torsmo is licensed under the GPL # # Please see COPYING for details # # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) # All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # alignment top_left background no border_width 1 cpu_avg_samples 2 default_color white default_outline_color white default_shade_color white draw_borders no draw_graph_borders yes draw_outline no draw_shades no use_xft yes xftfont DejaVu Sans Mono:size=12 gap_x 5 gap_y 60 minimum_size 5 5 net_avg_samples 2 no_buffers yes out_to_console no out_to_stderr no extra_newline no own_window yes own_window_class Conky own_window_type desktop stippled_borders 0 update_interval 1.0 uppercase no use_spacer none show_graph_scale no show_graph_range no TEXT ${scroll 16 $nodename - $sysname $kernel on $machine | } $hr ${color grey}Uptime:$color $uptime ${color grey}Frequency (in MHz):$color $freq ${color grey}Frequency (in GHz):$color $freq_g ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} ${color grey}CPU Usage:$color $cpu% ${cpubar 4} ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes $hr ${color grey}File systems: / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} ${color grey}Networking: Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} $hr ${color grey}Name PID CPU% MEM% ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
How do I load themes into this thing?
Comment
-
-
Is conky showing up on a second monitor? If that's the case, it's probably showing up on what Xorg considers your primary monitor. If it's on another virtual desktop, I don't know. Also, spell check for what? Aspell and the like kind of suck, but the spell checkers in Firefox or LibreOffice and other programs where I actually care about things being spelled properly works fine.
Those screenshots look like LXDE to me. Couldn't help you with how to configure that. I looked at it once, and found the configuration rather arcane and needlessly complex compared to i3 or something like that. For my tastes, it tries to do too much, and winds up getting silly because of that. I've got one config file I need to edit to change my display and keybindings and stuff. Extra crap like panels or quick launch bars could presumably be added to i3 if you really wanted, but they're handled with their own config files if you add them. This way you don't wind up with a massive config file of random miscellaneous crap all thrown together with no reason, and you also don't need to edit eight different files to get it behaving and looking as you'd like.
Comment
-
-
The desktop looks like Gnome2 with CairoDock, or some similar docking program. I'd replicate it using Xfce, and some docking program. As far as Conky "themes" go, it isn't straightforward. What you would have to do is download the script and art assets the guy used for his particular config, and put them in your machine, changing the script as necessary to work with your circumstances.
Try switching "own_window_type" to normal to get it to show on all desktops. If that doesn't work, try deleting "own_window_class Conky" Btw, you want to work on .conkyrc in yoiur home folder. If it isn't there. make it and copy your script to that file. That'll override what's in the conky folder, and you'll never have conky completely break cause you did something wrong.
Comment
-
-
Originally posted by sgreger1Has anyone heard of the distro TAILS? It is supposed to be more secure but i'm wondering if it's all hype.
Someone commented:
Its based on Debian - so it is rock solid
Using tails is far safer than just using standard Tor.
For one it forces ALL outgoing connections through TOR.
Comment
-
-
Originally posted by lxskllrI could see using it for foreign computers, or for laptops in the wild, but I wouldn't want to use it for general use. Tor is slow as hell to browse with, and if you enable features that make the web more interesting, you can compromise your anonymity.
Comment
-
-
Raspberry Pi Fedora Remix Ready For Download!
The SD card image for the Remix includes a little over 640 packages, providing both text-mode and graphical interfaces (LXDE/XFCE) with an assortment of programming languages, applications, system tools, and services for both environments. There are over 16,000 software packages available from the Fedora ARM repositories which can be easily installed using the Internet to customize your system to meet your needs and interests (again, using either command-line or graphical tools).
Some of the highlights of the software included in the SD card image:- Programming languages: python, perl, ruby, bash
- Version control: git
- System administration tools (command line and/or graphical) for configuring various aspects of the system including the network, date/time, users, and printers
- Command-line and graphical tools for installing/removing/updating software
- ssh (secure remote login) and printer services
- Graphical applications: word processing (AbiWord), spreadsheets (Gnumeric), image editing (GIMP), and web browsing (Firefox)
- Editors for programming: vim (text mode) and gedit with plugins for file management, terminal, and python console (graphical mode)
In other news:
Last night I experimented with CairoDock and some themes, and figured out how to turn on fallback mode in Gnome3, which essentially makes it Gnome 2 (no more moving the mouse to the top left hand corner to access apps etc), which was pretty sweet. Got gnome-tweak-tool working after like 3 hours of effort (shell extensions weren't working right). I have to say I am absolutely IN LOVE with Linux, you can customize literally evertyhing. I have one setup that looks just like a Mac with the dock, 3 (red,green,yellow) buttons on the left hand side etc for example, and I can switch it any time to something else! Absolutely amazing.
Comment
-
The script lets you right click an image(s), and pick "Upload to imgur" from the context menu. It then puts a link to your image on your clipboard so you can post it to a website or something. I'm using Thunar now, so I couldn't do it exactly the same way. Here's where to get the original script...
http://www.omgubuntu.co.uk/2010/11/q...-via-nautilus/
and here's my modified script. I keep it in a ~/.scripts folder...
Code:#!/usr/bin/python # -*- coding: utf-8 -*- import pycurl import xml.dom.minidom import StringIO import sys import gtk import os import imghdr import locale import gettext try: import pynotify except: print "Install pynotify. It's whoasome!" from subprocess import call APP="Imgur Uploader" DIR="locale" locale.setlocale(locale.LC_ALL, '') gettext.bindtextdomain(APP, DIR) gettext.textdomain(APP) _ = gettext.gettext ##STRINGS notimg = _("is not an image.") notallowed = _("is not an allowed file type. Skipping.") uploading = _("Uploading") oneimage = _("1 image has been uploaded.") multimages = _("images have been uploaded.") uploadfailed = _("Unable to upload") class Uploadr: def __init__(self, args): self.allowedTypes = ("jpeg", "jpg", "gif", "png", "apng", "tiff", "bmp", "pdf", "xcf") self.images = [] self.urls = [] self.broadcasts = [] if len(args) == 1: return else: for file in args: if file == args[0] or file == "": continue self.type = imghdr.what(file) if not self.type: self.broadcasts.append(file+" "+notimg) else: if self.type not in self.allowedTypes: self.broadcasts.append(self.type+" "+notallowed+file) else: self.images.append(file) for file in self.images: self.upload(file) self.setClipBoard() self.broadcast(self.broadcasts) def broadcast(self, l): try: str = '\n'.join(l) call(["xcowsay", str]) except: for line in l: print line def upload(self, file): c = pycurl.Curl() values = [ ("key", "e85c0044b9222bc9a2813679a452f54f"), ("image", (c.FORM_FILE, file))] buf = StringIO.StringIO() c.setopt(c.URL, "http://imgur.com/api/upload.xml") c.setopt(c.HTTPPOST, values) c.setopt(c.WRITEFUNCTION, buf.write) if c.perform(): self.broadcasts.append(uploadfailed+" "+file+".") c.close() return self.result = buf.getvalue() c.close() doc = xml.dom.minidom.parseString(self.result) self.urls.append(doc.getElementsByTagName("original_image")[0].childNodes[0].nodeValue) def setClipBoard(self): c = gtk.Clipboard() c.set_text('\n'.join(self.urls)) c.store() if len(self.urls) == 1: self.broadcasts.append(oneimage) elif len(self.urls) != 0: self.broadcasts.append(str(len(self.urls))+" "+multimages) if __name__ == '__main__': uploadr = Uploadr(sys.argv)
Comment
-
-
Hey so how would I go about making a script that starts up whenever I restart Fedora?
I am running all of my traffic through a SOCKS proxy, but to do that I have to open up the terminal and SSH -D into the server at the corresponding port. Right now I am doing this manually each time during startup, is there any way to automate this without learning a programming language?
Comment
-
-
The commond way to start tasks automatically in Linux is to use a daemon. For example, sshd (ssh daemon) starts listening for ssh connections at boot, mpd starts up the music player daemon at boot. If you can find a daemon that does what you want, you just have to tell your machine to start it up on boot. This can be done with chkconfig in Fedora, and I imagine this would also be true on other distros which use a systemd init, but I'm not 100% on that. On Arch and other distros using a Sys V style init, you simply add the daemon you want to your daemons array by editing the file at /etc/rc.conf. Then the daemon will start up on boot after you add it, and wait for you to execute a command that it handles.
If you don't need a daemon running all the time or can't find one that would be appropriate for the task, or you just need to execute it once when you start, you can add the command to your ~/.xinitrc before the exec line that starts up your DE/WM. I'm not sure if gnome reads the file, so that may not help for you. You could always edit the login manager's configuration to make sure it does that by making it use the startx command. You could also switch to a login manager that uses startx by default. I find the simplest method for me is to just make my computer boot to the console. I can screw around and does stuff from a tty if I want, don't need to fiddle with a login manager, and if I want to fire up a graphical display,I can just run startx myself. If you use one of these methods that execute the startx command, you just need to edit the ~/.xinitrc file and make the last lineCode:exec foo
Comment
-
Comment