that is a problem with tint2, you can just add a line to also restart volwheel.
52 2009-09-13 20:13:57
Re: Conky Help (1,839 replies, posted in Tips, Tricks & Scripts)
I'm having an..'entertaining' issue with my conky lately. I have my horizontal conky placed at the top-middle of my display with a zero for gap-x and gap-y; but everytime I boot up, for some reason it places my conky a little bit lower down the screen (say about 10 lower) which I then have to "fix" by opening up the conkyrc, change the gap-x from 0 to...well, back to 0 [which is to say, I really changed nothing] and then it sits where it is supposed to. I'm a bit confused by this behavior, as it should fire up where it's supposed to be since nothing in the config is different. And simply restarting conky without going in and fake-editing the conkyrc doesn't fix it either. Opinions on why it would behave this way?
can you post your conkyrc please?
53 2009-09-13 17:47:30
Re: good list for /etc/hosts (9 replies, posted in Tips, Tricks & Scripts)
as i mentioned, this will help a little, especially if your browser doesnt have an ad blocker, ad blockers will do much more than this list can, and there are better lists out there as well i am sure.
Toolz: I have never seen a google ad on here before, even before this list. I know it uses google search, which isnt affected by this list
54 2009-09-13 17:25:14
Topic: good list for /etc/hosts (9 replies, posted in Tips, Tricks & Scripts)
here is a good list i got from a friend from an online source. i touched it up and removed all of the commented out links and dates. It may be a little overkill, but if you are using say, chromium-browser, which doesn't have an ad blocker, this will help a little.
add that to the bottom of your /etc/hosts file and delete your internet cache and you are set to go.
55 2009-09-13 16:19:42
Re: Suggestion for next Release: INXI (9 replies, posted in Feedback & Suggestions)
yes they are, however for some reason, with inxi, it requires gawk. go figure, may be able to be changed in the code somehow, but easiest way is to just install gawk.
56 2009-09-13 16:15:14
Topic: Suggestion for next Release: INXI (9 replies, posted in Feedback & Suggestions)
My suggestion is to include the packages: inxi, mesa-utils, and gawk
gawk and mesa-utils are both in the ubuntu repos, and inxi can be gotten here:
http://techpatterns.com/forums/about1133.html
or by putting this into terminal:
cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi
inxi is an excellent source for information on your computer. attached is an "inxi -v5" output which is the most verbose, it shows a bit of what inxi is capable of.
Image: http://omploader.org/vMmNjNw
This is extremely important for people posting questions here or on IRC. we can simply say, "Oh you have a video card error, what is your video card? run "inxi -G" in terminal and tell us the output. It will promptly display the Video Card.
I hope that this gets put in as it will be extremely useful, and takes up almost null space.
57 2009-09-13 13:04:50
Re: September 2009 Screenshots thread (303 replies, posted in Artwork & Screenshots)
I have had it like this for a while
(Still fixing that darn calendar script
)
58 2009-09-10 14:19:58
Topic: Some new wallpapers (6 replies, posted in Artwork & Screenshots)
These are a few wallpapers inspired by the well known debian wallpaper.
Submitting for possible inclusion in next release
All 1680x1050 widescreen, may look alright on non-widescreen
1: http://omploader.org/vMmI4cw
59 2009-09-06 22:02:13
Re: Temperature Monitor in Conky (7 replies, posted in Tips, Tricks & Scripts)
farmers, the temp put out with acpitemp is in degrees C.
98 degrees C is usually critical, you can change it to degrees F by adding this to the top config part of conky:
temperature_unit fahrenheit
60 2009-08-20 01:55:51
Re: Blue Neon - minimalist wallpaper (16 replies, posted in Artwork & Screenshots)
Saved, I LOVE IT!
61 2009-08-16 17:05:14
Re: [ python / transset-df ] allow opacity to follow the focused window (49 replies, posted in Tips, Tricks & Scripts)
Amazing work on this. Slipshot sent me the link and I couldnt let this slip through.
62 2009-08-14 17:01:58
Re: August 2009 Screenshot Thread (269 replies, posted in Artwork & Screenshots)
my current August screenshot:
63 2009-08-14 16:54:07
Re: Terminal shortcut isn't working (2 replies, posted in Help & Support (Stable))
EDIT: I tried it and it didnt work sorry.
that key just may be unuseable.
64 2009-08-14 16:51:51
Re: CenterIM as the IM client. (5 replies, posted in Feedback & Suggestions)
a good CLI im app is finch. It is in the ubunto repos, and is a CLI version of pidgin
65 2009-08-13 04:24:32
Re: My Conky Config (2,564 replies, posted in Tips, Tricks & Scripts)
Main ConkyRC:
alignment top_left
background yes
color1 9AB7DC
color2 dedede
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades yes
gap_x 0
gap_y 30
maximum_width 1280
minimum_size 1280
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
temperature_unit fahrenheit
total_run_times 0
update_interval 4.0
uppercase no
use_xft yes
xftfont HandelGotD:size=10
xftalpha 0.5
xftfont cure:size=6
TEXT
${color1}Kernel:${color2} $kernel ${color1}Battery:${color2} ${battery} ${color1}HDD Temp:${color red} ${hddtemp /dev/sda}°F ${color1}CPU Temp:${color red} ${acpitemp}°F ${color1} Core1:${color2} ${cpu cpu1}% ${color1} Core2:${color2} ${cpu cpu2}% ${color1}Processes:${color2} $processes ($running_processes running) ${color1}RAM:${color2} $mem / $memmax ${color1}Swap:${color2} $swap / $swapmax ${color1}Connected To:${color2} ${wireless_essid wlan0} ${color1}Link Quality:${color2} ${wireless_link_qual wlan0}% ${color1}External IP:${color2} ${execi 3600 wget -O - http://ip.tupeux.com | tail} ${color1}Weather:${color2} ${execi 120 python ~/.scripts/conkyForecast.py --location=34606 --datatype=CC --imperial} - ${execi 120 python ~/.scripts/conkyForecast.py --location=34606 --datatype=HT --imperial}/${execi 120 python ~/.scripts/conkyForecast.py --location=34606 --datatype=HT}ShortcutRC:
alignment bottom_middle
background yes
color1 9AB7DC
color2 dedede
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades yes
gap_x 0
gap_y 0
maximum_width 1280
minimum_size 1280
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
total_run_times 0
update_interval 4.0
uppercase no
use_xft yes
xftfont HandelGotD:size=10
xftalpha 0.5
xftfont cure:size=7
TEXT
${alignc}${color1}Main Menu:${color2} Super+Space ${color1}Terminal:${color2} F12 ${color1}File Manager:${color2} Super+F ${color1}Editor:${color2} Super+E ${color1}Upload:${color2} Super+U ${color1}Pidgin:${color2} Super+P ${color1}Thunderbird:${color2} Super+T ${color1}irssi:${color2} Super+I ${color1}Web Browser:${color2} Super+W ${color1}Lock Screen:${color2} Super+L ${color1}Volume Control:${color2} Super+VScreenShot:
http://omploader.org/vMjU3dQ
66 2009-08-12 21:16:08
Re: Conky Help (1,839 replies, posted in Tips, Tricks & Scripts)
Just for curiosity,
is there another way than this to printout # in conky?${exec echo "#"}
I don't think there is another way
67 2009-08-12 06:23:18
Re: Iggykoopa! can you please! (29 replies, posted in Tips, Tricks & Scripts)
well, what is good about omploader is that it accepts all types of files. So its purpose is really as a general uploader. lol
68 2009-08-11 21:14:45
Re: Iggykoopa! can you please! (29 replies, posted in Tips, Tricks & Scripts)
iggy, amazing, beats the pants off of my work around. good job.
69 2009-08-11 20:25:47
Re: Iggykoopa! can you please! (29 replies, posted in Tips, Tricks & Scripts)
I still want to see your py script if you want to still make it. But I have put together a quick solution for that ruby script.
Before we begin:
You must have the following installed:
Ruby
Curl - is installed by default on crunchbang main
Zenity - is installed by default on crunchbang main
First save the following modified ruby script in your ~/.scripts dir. Save it as "upload"
(You do have one right?)
#!/usr/bin/env ruby
#
# Copyright 2007-2009 David Shakaryan <omp@gentoo.org>
# Copyright 2007-2009 Brenden Matthews <brenden@rty.ca>
#
# Distributed under the terms of the GNU General Public License v3
#
require 'tempfile'
argv = Array.new
quiet = false
url_only = false
help = false
skip = false
filename = 'pasta'
$stdin.fcntl(4, File::NONBLOCK)
stdin = $stdin.read if !$stdin.eof
unless stdin.nil?
argv << ''
end
ARGV.each_index do |i|
if skip
skip = false
next
end
if ARGV[i] =~ /-q|--quiet/
quiet = true
elsif ARGV[i] =~ /-u|--url/
url_only = true
elsif ARGV[i] =~ /-h|--help/
help = true
elsif ARGV[i] =~ /-f|--filename/
filename = ARGV[i + 1]
skip = true
else
argv << ARGV[i]
end
end
nocurl = false
curl = %x{curl --version 2> /dev/null}
if curl.empty?
nocurl = true
$stderr.puts 'Error: curl missing or not in path. Cannot continue.'
$stderr.puts
end
if (ARGV.size < 1 and (stdin.nil? or stdin.empty?)) or help or nocurl
$stderr.puts 'Usage: ompload [-h|--help] [options] [file(s)]'
$stderr.puts ' -q, --quiet Only output errors and warnings'
$stderr.puts ' -u, --url Only output URL when finished'
$stderr.puts ' -f, --filename Filename to use when posting data'
$stderr.puts ' from stdin'
$stderr.puts
$stderr.puts ' You can supply a list of files or data via stdin (or both)'
$stderr.puts
$stderr.puts ' This script requires a copy of cURL in the path.'
Process.exit
end
errors = 0
wait = 5
Url = 'http://omploader.org/'
Max_size = 2**30
used_stdin = false
first = true
argv.each do |arg|
if stdin.nil? and !used_stdin and !File.file?(arg)
$stderr.puts "Invalid argument '#{arg}': file does not exist (or is not a regular file)."
errors += 1
next
elsif File.size(arg) > Max_size
$stderr.puts "Error omploading '#{arg}': file exceeds " + (Max_size).to_s + " bytes (size was " + File.size(arg).to_s + ")."
errors += 1
next
end
if !first
# try not to hammer the server
puts 'Sleeping for ' + wait.to_s + 's' if !quiet and !url_only
sleep(wait)
else
first = false
end
tmp = Tempfile.new(filename)
if !stdin.nil? and !used_stdin
# upload from stdin
puts "Progress for '#{arg}'" if !quiet and !url_only
if quiet or url_only
p = IO.popen("curl -s -F 'file1=@-;filename=\"#{filename}\"' #{Url}upload -o '#{tmp.path}'", "w+")
else
p = IO.popen("curl -# -F 'file1=@-;filename=\"#{filename}\"' #{Url}upload -o '#{tmp.path}'", "w+")
end
p.puts stdin
p.close_write
Process.wait
used_stdin = true
else
# upload file
puts "Progress for '#{arg}'" if !quiet and !url_only
# escape quotes
tmp_path = arg.gsub('"', '\"')
if quiet or url_only
%x{curl -s -F file1=@"#{tmp_path}" #{Url}upload -o '#{tmp.path}'}
else
%x{curl -# -F file1=@"#{tmp_path}" #{Url}upload -o '#{tmp.path}'}
end
end
if !File.size?(tmp.path)
$stderr.puts "Error omploading '#{arg}'"
errors += 1
next
end
output = IO.read(tmp.path)
# parse for an ID
if output =~ /View file: <a href="v([A-Za-z0-9+\/]+)">/
id = $1
puts "Omploaded '#{arg}' to #{Url}v#{id}" if !quiet
%x{zenity --title 'Omploaded' --info --text '#{Url}v#{id}'} if !quiet
wait = 5
elsif output =~ /Slow down there, cowboy\./
wait += 60
argv << arg
$stderr.puts "Got throttled when trying to ompload '#{arg}'"
$stderr.puts "Increasing wait and attempting to continue..."
errors += 1
else
$stderr.puts "Error omploading '#{arg}'"
errors += 1
end
end
if !quiet and !url_only
if errors < 1
puts "Success."
else
puts "Finished with #{errors} errors."
end
endIt looks the same but there are a couple added lines to make it compatible.
Next create a new file called "upload.sh"
This should be in the same directory as the "upload" ruby script.
Here is what should be in the "upload.sh" shell script file:
#!/bin/bash
chooseFile=$(zenity --file-selection)
~/.scripts/upload $chooseFileNow open a terminal and type:
chmod +x ~/.scripts/upload
chmod +x ~/.scripts/upload.sh
Now all you have to do is set a shortcut key to run:
~/.scripts/upload.sh
And a file selection box will pop up.
Choose the file to upload and hit Ok, the file should upload and return a dialog box with the url to your upload.
REMINDER: If you also use my thunar mod for uploading, and you moved your file as directed in here (this is the same ruby file for thunar), update the custom action in thunar from:
terminator --command='ruby ~/.upload %f'
to
terminator --command='ruby ~/.scripts/upload %f'
for the command.
70 2009-08-10 21:04:29
Re: Iggykoopa! can you please! (29 replies, posted in Tips, Tricks & Scripts)
Hey iggy, just checking on if this py script is still coming along. I should really learn py
71 2009-08-06 20:09:51
Re: Favorite CLI command and tool? (50 replies, posted in Off Topic / General Chat)
my favorite:
1.) whereis - (ex. whereis firefox) shows where firefox is installed to.
2.) mv
3.) cd - where would we be without thee
72 2009-08-06 20:03:33
Re: Iggykoopa! can you please! (29 replies, posted in Tips, Tricks & Scripts)
well, the ruby one is what we started with. i modified it to work with selected file in thunar. I think what slipshot is more after is like your script where you choose a file first with --file-selection then it uploads, so thunar wont have to be open.
73 2009-08-06 18:39:03
Re: lxpanel & dock help [Resolved] (25 replies, posted in Help & Support (Stable))
lxpanel comes with it's own systray.
you can remove tint2 and just uselxpanel basically
74 2009-08-06 17:36:24
Re: PPC/PS3 version? (42 replies, posted in CrunchBang Talk)
from reading the last couple posts, i will clarify:
The US has:
EST: Eastern Standard Time
CST: Central Standard Time
MST: Mountain Standard Time
PST: Pacific Standard Time
Alaska Time
Hawaii Time
I dont know the official names of the final 2.
EST is for the east coast, PST is for the West Coast. when denoting US time, those two are the most used. As long as you use proper EST or PST, you can easil;y figure the correct time. EST is 3 hours more than PST. so 4:00 PST is 7:00 EST.
75 2009-08-06 16:30:33
Re: lxpanel & dock help [Resolved] (25 replies, posted in Help & Support (Stable))
the latest Crunchbang uses tint2 which has the system tray built in.