You are not logged in.
Can anyone explain to me why these looks different ... they are the same script:
#!/bin/bash
# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by: Habitual (JJ)
# 11.01.2010 12:10:07
# For conkyForecast by: Kaivalagi
# --- Edited by Sector11 ---
# 7 Day Forecast
# 13 Jan 2013 14:08 UTC
# For conkyForecast by: Kaivalagi
# Re-edited:
# Mon 09 Jan 2017
# updated 2017-07-10
# For TeoBigusGeekus' 1_Accuweather Weather script
# https://forums.bunsenlabs.org/viewtopic.php?id=189
### Run Teos script to refresh the databases
## Change the "wget" commands to "wget -q" in 1_accuweather
## NOT NEEDED - SEE: /media/5/Conky/S12/S12_tc_wx.conky
##/media/5/Conky/1_accuweather/1_accuweather -f2016 2>&1 >/dev/null
##/media/5/Conky/4_Moon/moon 2>&1 >/dev/null
# Clear the screen
tput clear
#tput bold ### for bold text
#tput dim ### for dim text
#tput sgr0 ### remove formatting
# Current (1st Group LEFT)
tput cup 1 1;tput setaf 9
echo "- Buenos Aries, Argentina -"
tput cup 1 35;tput setaf 9
echo "- Accuweather -"
tput cup 2 1;tput setaf 9
echo "Currently"
tput cup 2 11;tput setaf 3
echo `sed -n '2p' ~/1_accuweather/curr_cond`"°"
tput cup 2 15;tput setaf 9
echo " for ±"
tput cup 2 21;tput setaf 3
echo `sed -n '3p' ~/1_accuweather/curr_cond`"°"
tput cup 3 1;tput setaf 2
echo `sed -n '4p' ~/1_accuweather/curr_cond`
tput cup 4 1;tput setaf 3
echo "Bar"
tput cup 4 5;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/curr_cond`
tput cup 4 16;tput setaf 3
echo "Hum"
tput cup 4 20;tput setaf 9
echo `sed -n '7p' ~/1_accuweather/curr_cond`
tput cup 4 25;tput setaf 3
echo "UVI"
tput cup 4 29;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/curr_cond`
tput cup 5 1;tput setaf 3
echo "Wnd"
tput cup 5 5;tput setaf 9
echo `sed -n '5p' ~/1_accuweather/curr_cond`" @ "`sed -n '6p' ~/1_accuweather/curr_cond`
tput cup 5 21;tput setaf 3
echo "Vis"
tput cup 5 25;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/curr_cond`
tput cup 6 1;tput setaf 3
echo "Ceil"
tput cup 6 6;tput setaf 9
echo `sed -n '11p' ~/1_accuweather/curr_cond`
tput cup 6 14;tput setaf 3
echo "Dew"
tput cup 6 18;tput setaf 9
echo `sed -n '12p' ~/1_accuweather/curr_cond`"°"
tput cup 6 22;tput setaf 3
echo "CC"
tput cup 6 25;tput setaf 9
echo `sed -n '10p' ~/1_accuweather/curr_cond`
# Today Day 0 (1st Group RIGHT) Mon
tput cup 2 35;tput setaf 9
echo "$(date --date="0 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 2 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 2 53;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/first_days`"°"
tput cup 2 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 2 60;tput setaf 9
echo `sed -n '4p' ~/1_accuweather/first_days`"°"
tput cup 3 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`
tput cup 4 35;tput setaf 9
echo "Sun Rise"
tput cup 4 44;tput setaf 3
echo `sed -n '23p' ~/1_accuweather/curr_cond`
tput cup 4 50;tput setaf 9
echo "Moon Rise "
tput cup 4 60;tput setaf 6
echo `sed -n '25p' ~/1_accuweather/curr_cond`
tput cup 5 40;tput setaf 9
echo "Set"
tput cup 5 44;tput setaf 3
echo `sed -n '24p' ~/1_accuweather/curr_cond`
tput cup 5 56;tput setaf 9
echo "Set"
tput cup 5 60;tput setaf 6
echo `sed -n '26p' ~/1_accuweather/curr_cond`
tput cup 6 35;tput setaf 9
echo "Duration"
tput cup 6 44;tput setaf 3
echo `sed -n '16p' ~/1_accuweather/curr_cond`
tput cup 6 57;tput setaf 6
echo `sed -n '20p' ~/1_accuweather/curr_cond`
# Day 1 (2nd Group LEFT) Tue
tput cup 7 1;tput setaf 9
echo "----------------------------------"
tput cup 8 1;tput setaf 9
echo "$(date --date="1 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 8 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 19;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/first_days`"°"
tput cup 8 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 27;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/first_days`"°"
tput cup 9 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`
# Day 2 (2nd Group RIGHT) Wed
tput cup 7 35;tput setaf 9
echo "-------------------------------"
tput cup 8 35;tput setaf 9
echo "$(date --date="2 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 8 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 8 53;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/first_days`"°"
tput cup 8 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 8 60;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/first_days`"°"
tput cup 9 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`
# Day 3 (3rd Group LEFT) Thu
tput cup 10 1;tput setaf 9
echo "-------------------------------"
tput cup 11 1;tput setaf 9
echo "$(date --date="3 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 11 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 19;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/first_days`"°"
tput cup 11 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 27;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/first_days`"°"
tput cup 12 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`
# Day 4 (3rd Group RIGHT) Fri
tput cup 10 35;tput setaf 9
echo "-------------------------------"
tput cup 11 35;tput setaf 9
echo "$(date --date="4 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 11 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 11 53;tput setaf 9
echo `sed -n '23p' ~/1_accuweather/first_days`"°"
tput cup 11 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 11 60;tput setaf 9
echo `sed -n '24p' ~/1_accuweather/first_days`"°"
tput cup 12 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`
# Day 5 (4th Group LEFT) Sat
tput cup 13 1;tput setaf 9
echo "-------------------------------"
tput cup 14 1;tput setaf 9
echo "$(date --date="5 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 14 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 19;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/last_days`"°"
tput cup 14 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 27
echo `sed -n '4p' ~/1_accuweather/last_days`"°"
tput cup 15 1;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/last_days`
# Day 6 (4th Group RIGHT) Sun
tput cup 13 35;tput setaf 9
echo "-------------------------------"
tput cup 14 35;tput setaf 9
echo "$(date --date="6 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 14 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 14 53;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/last_days`"°"
tput cup 14 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 14 60
echo `sed -n '9p' ~/1_accuweather/last_days`"°"
tput cup 15 35;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/last_days`
# Day 7 (5th Group LEFT) Mon
tput cup 16 1;tput setaf 9
echo "-------------------------------"
tput cup 17 1;tput setaf 9
echo "$(date --date="7 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 17 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 19
echo `sed -n '13p' ~/1_accuweather/last_days`"°"
tput cup 17 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 27;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/last_days`"°"
tput cup 18 1;tput setaf 2
echo `sed -n '15p' ~/1_accuweather/last_days`
tput cup 19 1;tput setaf 9
echo "-------------------------------"
# Day 8 (5th Group RIGHT) Tue
tput cup 16 35;tput setaf 9
echo "-------------------------------"
tput cup 17 35;tput setaf 9
echo "$(date --date="8 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 17 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 17 53;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/last_days`"°"
tput cup 17 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 17 60;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/last_days`"°"
tput cup 18 35;tput setaf 2
echo `sed -n '20p' ~/1_accuweather/last_days`
tput cup 19 32;tput setaf 9
echo "----------------------------------"
tput cup 20 5;tput setaf 6
echo "Moon"
tput cup 20 10;tput setaf 3
echo "Sun"
tput cup 20 14;tput setaf 9
echo "Information Southern Hemisphere"
tput cup 21 1;tput setaf 6
echo "Phase"
tput cup 21 8;tput setaf 9
echo `sed -n '7p' /media/5/Conky/4_Moon/raw` @ `sed -n '1p' /media/5/Conky/4_Moon/raw`
tput cup 21 35;tput setaf 6
echo "Distance"
tput cup 21 44;tput setaf 9
echo `sed -n '4p' /media/5/Conky/4_Moon/raw` "km"
tput cup 22 1;tput setaf 6
echo "Age"
tput cup 22 8;tput setaf 9
echo `sed -n '5p' /media/5/Conky/4_Moon/raw` "Day(s)"
tput cup 22 35;tput setaf 6
echo "Angle"
tput cup 22 44;tput setaf 9
echo `sed -n '6p' /media/5/Conky/4_Moon/raw`"°"
tput cup 23 1;tput setaf 3
echo "Angle"
tput cup 23 8;tput setaf 9
echo `sed -n '2p' /media/5/Conky/4_Moon/raw`"°"
tput cup 23 35;tput setaf 3
echo "Distance"
tput cup 23 44;tput setaf 9
echo `sed -n '3p' /media/5/Conky/4_Moon/raw` "km"
tput sgr0
$SHELL
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Different terminals? Different terminal configs? Different ~/.Xresources?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Debian 8 and 9
Terminator; both use copies of the same config at: ~/.config/terminator/config
Both use copies of the same ~/.Xresources file.
In fact D8 ~/ was copied to D9 ~/ so everything in there is the same.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
On a different terminal, are the colours the same?
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
OK I installed xterm and lxterminal in both systems:
Debian8
terminator - xterm
lxterminal
Debian9
terminator lxterminal
xterm
Looks like xterm is good on both, lxterminal has a weird yellow, but terminator in D9 sucks.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ Are you using the same terminator config as before? Maybe check the settings in Preferences -> Profiles -> Colours
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Debian 8 is my daily run ... I copied ~/ to Debian 9 - so all config files in $HOME are the same.
xterm is the same in both - installed just now - and reflects the terminator colours in D8
lxterminal, also installed just now in both systems - is the same in both - but yellow seems to be a rusty brown.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
xterm ftw!
The other programs have changed their configuration file syntax, probably.
Try recreating the colour scheme from scratch in Terminator.
Or switch to a better terminal emulator... ]:D
Offline
But can rxvt-unicode-256color or xterm do this:
Sorry, but I love my terminator.
And the colours are from tput.
To-wit:
Text Color
Most terminals support 8 foreground text colors and 8 background colors
(though some support as many as 256). Using the setaf and setab capabilities,
we can set the foreground and background colors. The exact rendering of colors
is a little hard to predict. Many desktop managers impose "system colors" on
terminal windows, thereby modifying foreground and background colors from the
standard. Despite this, here are what the colors should be:
Value Color
0 Black
1 Red
2 Green
3 Yellow
4 Blue
5 Magenta
6 Cyan
7 White
8 Not used
9 Reset to default color
So if Debian 9 is forcing "system colours" on terminator, why not the others?
And where do I find these system colours?
Getting closer.....
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
But can rxvt-unicode-256color or xterm do this
Yes
Offline
the colours are from tput.
[...]
So if Debian 9 is forcing "system colours" on terminator, why not the others?
Perhaps because those values are being overridden by ~/.Xresources (which sets the colours for xterm/urxvt).
Offline
Post #3 says:
In fact D8 ~/ was copied to D9 ~/ so everything in there is the same.
and post #7 says:
Debian 8 is my daily run ... I copied ~/ to Debian 9 - so all config files in $HOME are the same.
Therefore ~/Xresources as well as all ~/.config files are the same.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Sector11 wrote:But can rxvt-unicode-256color or xterm do this
https://cdn.scrot.moe/images/2017/07/31/2017-07-31-173715_1280x800_scrot.th.png
Yes
HUH??? Scrot shows xterm, and link is for tmux ... so is this:
1. rxvt-unicode-256color
2. xterm, or
3. tmux
You have my full attention. Do any all three do (semi-)transparency?
New thread maybe? Or continue here.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
2. xterm, or
3. tmux
^ These two — working together, UNIX-style
Do any all three do (semi-)transparency?
Urxvt is already configured for true transparency in BunsenLabs, just install & run to enjoy the awesomeness.
EDIT: this is my ~/.profile (~/.bash_profile for you, I suppose) snippet to start tmux automatically if it's not running and attach any opened shell (including the TTY) to the first available tmux client window:
if [ -z "$TMUX" ]; then
ID="$(tmux ls 2>/dev/null | awk -F':' '!/attached/{print $1}' | sed q)"
if [ -z "$ID" ]; then
tmux new-session
else
tmux attach-session -t "$ID"
fi
fi
This allows me to close terminal windows but still have the programs inside them running next time I open one again.
Last edited by Head_on_a_Stick (2017-07-31 17:38:52)
Offline
So xterm and tmux to do what terminator does but without the right click menu.
OK, just noticed another difference, terminator in D9 is showing the desktop, but in D8 it shows the programs under it ... that has to be a config setting somewhere in /rootlandia ( maybe as well as for colours - ie: system colours).
BTW: I have a ~/.bash_profile and a ~/.profile
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
So xterm and tmux to do what terminator does but without the right click menu
...and using about a third the RAM and fewer processor cycles
The code base is also considerably smaller and thus more secure and less buggy (urxvt>xterm in this respect, st is probably the smallest but requires re-compiling to change the setup).
I have a ~/.bash_profile and a ~/.profile
If you are using bash then it will completely ignore ~/.profile if ~/.bash_profile exists.
A more portable configuration would be to delete ~/.bash_profile and add the contents to ~/.profile, that file would then be read by any (login) shell.
Last edited by Head_on_a_Stick (2017-07-31 18:15:34)
Offline
st? Is that a part of suckless tools? I have s-tools but no st.
Also it's not helping as to why the colours are different - we're getting off track (althought I'm likeing where this is going as well)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
st? Is that a part of suckless tools? I have s-tools but no st.
Also it's not helping as to why the colours are different - we're getting off track (althought I'm likeing where this is going as well)
It has no scrollback buffer (you need to use a terminal multiplexer like screen or tmux to get that back) and no fallback font configuration -> mixed scripts like Latin+Japanese cannot be fine tuned and just looks ugly.
It's a neat tool but has strong preferences and won't fit all use cases, and you configure it mostly at build time so you have to maintain it yourself, and possibly patch for more functionality.
It's not what I'd use (urxvt since 2010).
Offline
st? Is that a part of suckless tools? I have s-tools but no st.
https://packages.debian.org/stretch/stterm
Not much point having a precompiled package though (unless you like the default configuration).
why the colours are different
Please explain your "tput" configuration further — is that snippet you posted from your Terminator configuration file?
Have you tried removing this mysterious tput nonsense?
It sounds confusing to me... 8o
Offline
I don't believe it. I'm using something you don't know about. {shock}
http://linuxcommand.org/lc3_adv_tput.php
Try this little script - a combo of the first two on that page: tctest
#!/bin/bash
# tput_characters - Test various character attributes
clear
echo "tput character test"
echo "==================="
echo
tput bold; echo "This text has the bold attribute."; tput sgr0
tput smul; echo "This text is underlined (smul)."; tput rmul
# Most terminal emulators do not support blinking text (though xterm
# does) because blinking text is considered to be in bad taste ;-)
tput blink; echo "This text is blinking (blink).";tput sgr0
tput rev; echo "This text has the reverse attribute"; tput sgr0
# Standout mode is reverse on many terminals, bold on others.
tput smso; echo "This text is in standout mode (smso)."; tput rmso
tput sgr0
echo
echo
echo
# tput_colors - Demonstrate color combinations.
for fg_color in {0..7}; do
set_foreground=$(tput setaf $fg_color)
for bg_color in {0..7}; do
set_background=$(tput setab $bg_color)
echo -n $set_background$set_foreground
printf ' F:%s B:%s ' $fg_color $bg_color
done
echo $(tput sgr0)
done
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline