Reborn Puppy v0.44

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#21 Post by alexandrion »

TLM wrote:Hi again--Things are working great. Changed the command in my rc.xml file to firefox. The command is:

Code: Select all

/usr/lib/firefox/firefox
that's great news!
did you check menu.xml yourself? :)
TLM wrote: Also got my cpu temp to display in farenheit. One other thing on this i found out it will still say C (example 100C) but I fixed this by changing line # 58 to:

Temperature $alignr$color1 ${acpitemp}F$color

The F just before the $color is a C by default.
well sure it's C, i didn't tell you that on purpose because i wanted to challenge you to figure it out for yourself, you learn more things that way :)
the acpidtemp command returns how many degrees, it doesn't mention the temperature unit, you have to put that manually and as i said conky displays whatever you tell it to display :)
as an added bonus, if you want conky to display the degree sign (that little o) add this

Code: Select all

${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}
TLM wrote:This is good for now. Will try adding more shortcuts later for Kompozer and other programs i use. Thanks again for the great tutorial. I copied and saved it just in case anything happens to your post. :)
sure, it shouldn't be hard now, you've done most of the hard part, now it's just copypasta a bunch of code and replacing two lines

by the way, by default Start+up / down / left / right launches a script i made that changes the volume and notifying you about the changes
also print screen and alt print screen launches another script i made :)
but unfortunately the scripts are not dynamic, because different keyboards have different codes for keys, check if they work and if they don't i will try to help you personalize them :)
the default output of the volume should be Master Front: x % PCM: x %

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#22 Post by TLM »

Yes i noticed that Start+Up and Down arrows controls my PCM. I also saw the entries for scrot-x, however I have just been launching the run dialog and typing in scrot-x to take screenshots. I just tested them and both Print Screen and Alt Print Screen both work on my keyboard. The Alt option has the 5 second delay which i noticed in your rc.xml as scrot-x 5. Now that i know where these configuration files are, the rest is fairly easy. Thank you again. :D

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#23 Post by alexandrion »

you can bind the the volume up / down / mute to your media keys
also you might want to modify the script since it's not working properly (if you don't have master front it's most likely that something else controls your master volume)
run alsamixer in a terminal and check which controls make a difference for your volume then add those instead of "Master Front" which you don't have
the script's at /usr/bin/ali-vol

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#24 Post by TLM »

I have a Master, Master Mono and PCM. It is the Master which controls my volume. How do i modify the ali-vol script to use Master? I tried just replacing the text everywhere it said Master Front with just Master, and then I ran openbox --reconfigure from terminal. This left my Start+Up and Down without any function at all. So for now I have put the ali-vol script back the way it was (with Master Front) and once again it is using my PCM. I do not have media keys on my keyboard, so I want to use the Up and Down. Thanks

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#25 Post by alexandrion »

type this in a terminal and attach the /root/HERE-I-AM file to your next post

Code: Select all

 amixer > ~/HERE-I-AM 

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#26 Post by alexandrion »

new release available :D

i made my ppy-mount tool (v0.01)the default mounting handler since pmount wasn't doing it's job most of the time (it could be just me tho)

you don't have to download the new release you can just install that manually
Last edited by alexandrion on Sun 01 May 2011, 10:53, edited 1 time in total.

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#27 Post by TLM »

alexandrion wrote:type this in a terminal and attach the /root/HERE-I-AM file to your next post

Code: Select all

 amixer > ~/HERE-I-AM 
Here it is:

Code: Select all

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 27 [87%] [-6.00dB] [on]
  Front Right: Playback 27 [87%] [-6.00dB] [on]
Simple mixer control 'Master Mono',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 24 [77%] [-10.50dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 29 [94%] [9.00dB] [on]
  Front Right: Playback 29 [94%] [9.00dB] [on]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-46.50dB] [on]
  Front Right: Playback 0 [0%] [-46.50dB] [on]
Simple mixer control 'Surround Jack Mode',0
  Capabilities: enum
  Items: 'Shared' 'Independent'
  Item0: 'Shared'
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-46.50dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [-34.50dB] [on] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [on] Capture [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [-34.50dB] [on] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [on] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-34.50dB] [on]
  Front Left: Capture [on]
  Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Select',0
  Capabilities: enum
  Items: 'Mic1' 'Mic2'
  Item0: 'Mic1'
Simple mixer control 'Video',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Phone',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-34.50dB] [on]
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined cswitch cswitch-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Mono: Playback [off] Capture [off]
Simple mixer control 'IEC958 Output',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
  Capabilities: volume volume-joined penum
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 3
  Mono: 3 [100%]
Simple mixer control 'IEC958 Playback Source',0
  Capabilities: enum
  Items: 'PCM' 'Analog In' 'IEC958 In'
  Item0: 'PCM'
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 15
  Mono: Playback 0 [0%] [-45.00dB] [on]
Simple mixer control 'Aux',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [-34.50dB] [on] Capture [off]
  Front Right: Playback 0 [0%] [-34.50dB] [on] Capture [off]
Simple mixer control 'Mono Output Select',0
  Capabilities: enum
  Items: 'Mix' 'Mic'
  Item0: 'Mix'
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch cswitch-joined penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 0 [0%] [0.00dB] [on]
  Front Right: Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Mix',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
  Capabilities: cswitch cswitch-exclusive penum
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Front Left: Capture [off]
  Front Right: Capture [off]
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Duplicate Front',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'External Amplifier',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Input Source Select',0
  Capabilities: enum
  Items: 'Input1' 'Input2'
  Item0: 'Input1'
Simple mixer control 'Input Source Select',1
  Capabilities: enum
  Items: 'Input1' 'Input2'
  Item0: 'Input1'

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#28 Post by alexandrion »

Code: Select all

#! /bin/bash 

if [[ $1 -eq 1  ]] 
then 
     P=`amixer sset 'Master' 1+ | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/Master: /g' | sed 's/\]//g'` 
     M=`amixer sset 'PCM' 2+ | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/PCM: /g' | sed 's/\]//g'` 
     yaf-splash -text "$P $M" -timeout 1 
else if [[ $1 -eq 2 ]] 
then 
     P=`amixer sset 'Master' 1- | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/Master: /g' | sed 's/\]//g'` 
     M=`amixer sset 'PCM' 2- | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/PCM: /g' | sed 's/\]//g'` 
     yaf-splash -text "$P $M" -timeout 1 
else if [[ $1 -eq 3 ]] 
then 
    P=`amixer sset 'Master',0 toggle | grep "Front Left:" | awk '{print $7}'` 
    if [[ ''$P'' == '[off]' ]] 
    then 
    P="Volume is off" 
    else 
    P="Volume is on" 
    fi 
    yaf-splash -text "$P" -timeout 1 
fi 
fi 
fi
odd, this should work
backup the old script and paste this one instead and run

Code: Select all

alivol 1
alivol 2
alivol 3
inside a terminal

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#29 Post by TLM »

alexandrion wrote:

Code: Select all

#! /bin/bash 

if [[ $1 -eq 1  ]] 
then 
     P=`amixer sset 'Master' 1+ | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/Master: /g' | sed 's/\]//g'` 
     M=`amixer sset 'PCM' 2+ | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/PCM: /g' | sed 's/\]//g'` 
     yaf-splash -text "$P $M" -timeout 1 
else if [[ $1 -eq 2 ]] 
then 
     P=`amixer sset 'Master' 1- | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/Master: /g' | sed 's/\]//g'` 
     M=`amixer sset 'PCM' 2- | grep 'Front Left:' | awk '{print $5}' | sed 's/\[/PCM: /g' | sed 's/\]//g'` 
     yaf-splash -text "$P $M" -timeout 1 
else if [[ $1 -eq 3 ]] 
then 
    P=`amixer sset 'Master',0 toggle | grep "Front Left:" | awk '{print $7}'` 
    if [[ ''$P'' == '[off]' ]] 
    then 
    P="Volume is off" 
    else 
    P="Volume is on" 
    fi 
    yaf-splash -text "$P" -timeout 1 
fi 
fi 
fi
odd, this should work
backup the old script and paste this one instead and run

Code: Select all

alivol 1
alivol 2
alivol 3
inside a terminal
Thank you. I had to put the hyphen in alivol (ali-vol) to run in terminal, and now the new script is running both my Master and PCM incrementally with each press of Up or Down as follows: (beginning with both at 0)

3 6
6 13
10 19
13 26
16 32
19 39
23 45
26 52
29 58
32 65
35 71
39 77

In other words the Master is going up 3 (4 every 4th time) and the PCM is going up 6 and then 7 every other time.

It is working, and in any case i can also launch alsamixer or zmixer (i installed) if i need to tweak audio level via a GUI.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#30 Post by alexandrion »

well, it means it works :) that's how it's supposed to behave :D

OFC Dark Puppy
Posts: 30
Joined: Sun 24 Apr 2011, 04:47

#31 Post by OFC Dark Puppy »

I'm not an expert or anything but I think that Pypanel would work wonders in this pup of yours. Since you included Python.

It's supposed to be better then FBpanel and also very lightweight.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#32 Post by alexandrion »

this is not fbpanel, it's tint2
i tried pypanel at one point but i never got to like it as much as i like tint2, thank you for the suggestion tho

OFC Dark Puppy
Posts: 30
Joined: Sun 24 Apr 2011, 04:47

#33 Post by OFC Dark Puppy »

I also like tint 2 when I tried it.

I just never figured out how to add a tray or get it to start up right.

Like I said I'm no expert.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#34 Post by alexandrion »

OFC Dark Puppy wrote:I also like tint 2 when I tried it.

I just never figured out how to add a tray or get it to start up right.

Like I said I'm no expert.
what do you mean by add a tray?
and to start up right just add tint2 & in your .xinitrc file :)

OFC Dark Puppy
Posts: 30
Joined: Sun 24 Apr 2011, 04:47

#35 Post by OFC Dark Puppy »

Well I was using Openbox in Mint. I wasn't using puppy. So I was actually scripting a autostart.sh

However it would start up in gnome too. I didn't know how to get it to only start up with Openbox. And I couldn't figure out how to add Stalonetray.

I don't like Fbpanel in puppy since the right click menu has all the same features anyway. By using Tint2 which I think is faster, I think puppy could be much faster.

However I would also like to try Wbar in puppy, but I've not figured out how to configure it.

I'm really new at this.

Actually I've always wanted to try Midnight Commander, since I'm talking about customs. How fast is Midnight Commander? I hear it's really good.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#36 Post by alexandrion »

OFC Dark Puppy wrote:Well I was using Openbox in Mint. I wasn't using puppy. So I was actually scripting a autostart.sh

However it would start up in gnome too. I didn't know how to get it to only start up with Openbox. And I couldn't figure out how to add Stalonetray.

I don't like Fbpanel in puppy since the right click menu has all the same features anyway. By using Tint2 which I think is faster, I think puppy could be much faster.

However I would also like to try Wbar in puppy, but I've not figured out how to configure it.

I'm really new at this.

Actually I've always wanted to try Midnight Commander, since I'm talking about customs. How fast is Midnight Commander? I hear it's really good.
i never used midnight commander, and i didn't manage to configure wbar either
i tried this one time i was using debian, the only acceptable-looking tray i manage to configure was awn but the eyecandy isn't worth the performance loss with one of those

also about your tint2, maybe gnome added it to the startup list automatically?

OFC Dark Puppy
Posts: 30
Joined: Sun 24 Apr 2011, 04:47

#37 Post by OFC Dark Puppy »

I don't know. After a long time of hassling with Openbox in Mint, the people in the mint forum told me to stop wasting their time and go use puppy linux.
So I did.

:wink:

While I was reading up on Openbox I heard about many tiny little panels.
BMpanel, Slimdock, Pypanel,

I don't know if I'll ever use any of them.

One thing that I really need is the ability to use the make command in terminal. By default Puppy's terminal has very limited abilities.

Speaking of Midnight Commander. After updating to the newest pup, I realized that Midnight Commander is in the PPM. However it needs something called slang as a dependency. Slang isn't in the PPM and that seems stupid to me.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#38 Post by alexandrion »

i don't know, i've never used it, doesn't it start when you open it?
python has a lot of dependencies but i didn't install any and it still works

OFC Dark Puppy
Posts: 30
Joined: Sun 24 Apr 2011, 04:47

#39 Post by OFC Dark Puppy »

I could try. But if Midnight Commander doesn't work then I'll have to ask the developers to stuff slang into their ppm.

However I realized that there is no cleaning program for puppy. In the past after a bit of messing with puppy I'd have to delete my save and start fresh since it would begin to lag. All that history and all those pets are still saved in Puppy mucking up performance.

On another post I read that bleachbit is written in python. So for people using your puppy. That could be an option. I might have to install python anyways in order to use bleachbit.

What language was Ubuntu Tweak written in? Ubuntu Tweak is another cleaning program which I have used alot in linux. I'd love to use it in puppy.

It does come with a lot of extras like tweaking compiz and UT even comes with a package manager of it's own where you can download some recommends it gives you.

In puppy some of those features should be optional. It would be wonderful if the developers would write a variation on ubuntu tweak, called puppy tweak.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#40 Post by alexandrion »

why would you need a cleaning tool?
i was curious about your post so i checked the var folder and mine has only 2 mb, i checked my ubuntu var folder and it has over 350, it seams puppy does a splendid job of clearing temporary files
also for developing tools you might want to download the devx sfs

Post Reply