LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Poll: Do you use a taskbar?
Be advised that this is a public poll: other users can see the choice(s) you selected.
Poll Options
Do you use a taskbar?

You must log in and have one post to vote in this poll. If you don't have an account, you can register here.
Results will be available after the polls close.

The nominees are:

Yes
No

Reply
 
Search this Thread
Old 10-05-2010, 07:53 AM   #46
Gonzalo_VC
LQ Newbie
 
Registered: Nov 2009
Location: South America
Distribution: SolydXK, PCLinuxOS, MiniNo, Xubuntu ... Debian!
Posts: 27

Rep: Reputation: 0

Yes I do. But I think it can always be only one (hello, Gnome people ) since monitors are becoming more and more "wide". I think the new approach like in Ubuntu netbook, with the menu being like a permanent applet on the left of the screen is also useful (still a task bar on top), even for the desktop. On KDE there's always been one bar, on the bottom. OK. But the netbook version (Kubuntu) is not really friendly like the Gnome version.
 
Old 10-05-2010, 08:13 AM   #47
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
I don't understand.
 
Old 10-05-2010, 10:33 AM   #48
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Xfce users can find a list of window manager shortcuts (hot keys) via Settings → Window Manager → Keyboard.
 
Old 10-05-2010, 01:03 PM   #49
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 147Reputation: 147
I am a KDE user, and KDE 3.5 is still my primary everyday desktop. Yes, I use a taskbar. It is a permanent feature in the bottom panel which I haven't change much from Kubuntu Hardy's (rather decent) defaults.

I am primarily a keyboarder though, and to be honest I would like to get rid of the bottom panel completely. I just haven't found a way to do it yet. The two things stopping me are the System Tray applet and the Clock applet.

All kinds of programs run in the System Tray, and some of them (such as Klipper, KAlarm, and KMix) only achieve maximum utility when running inside System Tray.

I need the clock on screen at all times. Maybe it is a sign of OCD, but I become very nervous when I lose track of time. I can't see any reason to use electricity for a physical clock when my computer already provides the same functionality.

If it weren't for those two applets I could probably do away with the panel completely. But since I need them, I might as well make best use of the space consumed by the panel by keeping the KMenu and Taskbar.
 
Old 10-05-2010, 04:46 PM   #50
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,214

Rep: Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820
I've got my panel contents down to the workspace indicator, the clock, and the keyboard indicator (το αωοιδ δοινγ τηιϲ) on the left-hand side of the screen; you'd hardly guess I'm a Gnomist from looking at it.

I must agree with Gonzalo's point about the lack of vertical space, with endless menus. Why can't programs like OpenOffice have the menus at the side, like The Gimp? I think I shall have a portrait-mode monitor for Christmas!
 
Old 10-05-2010, 05:14 PM   #51
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Quote:
Originally Posted by DavidMcCann View Post
Why can't programs like OpenOffice have the menus at the side, like The Gimp?
I HATE HATE HATE Gimp's separate window menus. Impossible to manage!

Quote:
Originally Posted by DavidMcCann View Post
I think I shall have a portrait-mode monitor for Christmas!
Actually, just turn your monitor on its side and run :
Code:
xrandr --output <your monitor> --rotate <left|right>
Seriously (many monitors have a stand that can rotate the display on its side)!
 
Old 10-06-2010, 06:49 PM   #52
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,214

Rep: Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820
Quote:
Originally Posted by MTK358 View Post
I HATE HATE HATE Gimp's separate window menus. Impossible to manage!
It's funny that so many people say that. A couple of months ago, a magazine that doesn't devote much space to Linux reviewed The Gimp. One of the features that the reviewer particularly liked was the menu system: "much better than Photoshop". As Marion Zimmer Bradley used to say, it's a good job we don't all like the same things, or there'd be a terrible shortage of haggis.
 
Old 10-07-2010, 08:43 AM   #53
Gonzalo_VC
LQ Newbie
 
Registered: Nov 2009
Location: South America
Distribution: SolydXK, PCLinuxOS, MiniNo, Xubuntu ... Debian!
Posts: 27

Rep: Reputation: 0
Quote:
Originally Posted by MTK358 View Post
I don't understand.
Me? OK, sorry.
I meant that yes, I use and prefer one taskbar. It can be on the top of the screen (Gnome and XFCE like) or at the bottom (KDE and LXDE like) or even substituted by some applets (is this the correct name?) or "buttons" on the left of the screen, like the ones in the latest Ubuntu for netkooks... or even that applet "dock" some Linuxes have (MacOS like).
I say this because present day wider monitors have more space on the sides than top-bottom, and a bar occupying the top or bottom border steals another centimetre of space. Do you know what I mean?
Cheers.
 
Old 10-07-2010, 08:55 AM   #54
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
I have normal non-widescreen monitors, and I've yet to be convinced that widescreen is better.
 
Old 10-07-2010, 09:01 AM   #55
GazL
Senior Member
 
Registered: May 2008
Posts: 3,501

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
I've gone back to using my old windowmaker setup, so my screen looks something like this (only it's now 1920x1080 16:9 format instead of the old 5:4 1280x1024 because my old monitor died):
http://img521.imageshack.us/img521/5293/screenshotx.jpg


If anything WindowMaker's layout with a dock down the right-hand side seems totally suited to the 16:9 format. You really don't miss those 64 pixels taken up by the dock tiles on a screen this wide and you get to keep the maximum vertical space free for your app windows. I don't miss a taskbar at all.
 
Old 10-07-2010, 10:24 AM   #56
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Quote:
Originally Posted by MTK358 View Post
I have normal non-widescreen monitors, and I've yet to be convinced that widescreen is better.
+1 to that unless watching videos in widescreen format more than working with text, including programming.

When working with text, the longer the line, the harder it is for the eye to locate the beginning of the next line which is why many programming standards include a maximum line length and portrait orientation predominates over landscape for text documents.

With a big enough widescreen, two pages of a text document can be viewed side-by-side while still displaying a full page length but that is a very big widescreen at most people's preferred character display size. Side-by-side is not an option when using a terminal emulator for programming.

Similarly for glossy/matt screens: glossy is good for colours and matt is good for (few) reflections.

The greater availability of glossy widescreeens compared with matt traditional aspect ratio screens suggests that computers are being used more for multimedia than for working with text.

Last edited by catkin; 10-07-2010 at 10:25 AM. Reason: added a comma
 
Old 10-07-2010, 11:10 AM   #57
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
I also don't understand this whole glossy screen thing. For me one of the major advantages of LCD was the fact that their screens are matte, eliminating glare.
 
Old 10-08-2010, 03:39 PM   #58
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,600
Blog Entries: 1

Rep: Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045
Quote:
Originally Posted by GrapefruiTgirl View Post
No!

A status-bar (dzen2) currently I use, but not a taskbar. Workspaces are switched by keystrokes (Alt1, Alt2,...), and it's a tiling WM that doesn't "minimize" anything, just compartmentalizes everything. Apps are launched from a terminal or from Dmenu (CtrlMeta+M). Focus is by mouse or keyboard.

Desktop: Attachment 4751
Celine, could you possibly post your dzen2 script?

thanking you
 
Old 10-08-2010, 03:53 PM   #59
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Dzen2 script

Sure can, though I'm warning you, it's a little confusing, you'll see. I've been thinking about revisiting this code to see if I can make it more efficient. :/

Note that I'm using two Dzen2's -- one for each monitor. And, if you want any explanations or help understanding what's going on in here, prolly best you/we start a new thread, as the dzen2 syntax is a subjext unto itself.

Also note, I'm using the Dzen2 from SVN (if I remember right) because it has a few features or bugfixes that are not in the release version.


Code:
#!/bin/sh

# Dzen2 toolbar/statusbar execution file.
# Options:
# -xs = which Xinerama screen
# -l  = number of lines in slave (dropdown) window
# -u update continually
# -p <n> timed termination; w/o n seconds, persist forever.
# retval: 0 = EOF; 1 = error; or exit:n where n=user-defined retval.
# -e event... -e 'event1=action1:option1:...option<n>,...,action<m>;...;event<l>'
#    event... -e 'button1=exec:xterm:firefox;entertitle=uncollapse,unhide;button3=exit'
# Supported events: (see latest README or online docs)
#    onstart             Perform actions right after startup
#    onexit              Perform actions just before exiting
#    onnewinput          Perform actions if there is new input for the slave window
#    button1             Mouse button1 released
#    button2             Mouse button2 released
#    button3             Mouse button3 released
#    button4             Mouse button4 released (usually scrollwheel)
#    button5             Mouse button5 released (usually scrollwheel)
#    entertitle          Mouse enters the title window
#    leavetitle          Mouse leaves the title window
#    enterslave          Mouse enters the slave window
#    leaveslave          Mouse leaves the slave window
#    sigusr1             SIGUSR1 received
#    sigusr2             SIGUSR2 received
#    key_KEYNAME         Keyboard events (*)


# Before doing anything, kill any running dzen2:
kill_counter=$((0))
while [ "$(ps -C dzen2 | grep dzen2 | awk '{print $1}')" ]; do
  kill -9 $(ps -C dzen2 | grep dzen2 | awk '{print $1}') 2>/dev/null
  kill_counter=$((kill_counter+1)); sleep 1
  if [ $kill_counter -ge 5 ]; then
     echo "dzen2 error: unkillable zombies; cannot start new dzen2." 1>&2 && exit 1
  fi
done

# Pre execution: see if 'stop' was passed as $1 and if so
# don't restart dzen2; just exit instead:
[ "$1" = 'stop' ] && exit 0

# Not exiting; proceed then:

# FUNCTIONS:

get_date () {
# Observe/fix if `date` pads single digits as formatted.
  echo "^fg($TX2)$(date +'%H:%M:%S %a %x')"
}

get_mem () {
  TOTALMEM=$(awk '/^MemTotal: /{print $2}' /proc/meminfo)
   FREEMEM=$(awk '/^MemFree: /{print $2}' /proc/meminfo)
   USEDMEM=$(($TOTALMEM - $FREEMEM))

  UBARS=$(( $(echo "scale = 0; $USEDMEM * 100 / $TOTALMEM" | bc -l) ))
  FBARS=$(( $(echo "scale = 0; $FREEMEM * 100 / $TOTALMEM" | bc -l) ))
  [ $UBARS -ge 95 ] && FG="^fg($RED)" || FG="^fg($GRN)"

echo "^fg($WHT)MEM^p(2;4)${FG}^r(${UBARS}x16)^fg($BAR)^r(${FBARS}x16)"
}

cpu_usage () {
# Calculate the CPU usage since we last checked.
  DIFF_IDLE0=$((IDLECPU0-LASTIDLECPU0))
  DIFF_IDLE1=$((IDLECPU1-LASTIDLECPU1))

  DIFF_TOTAL0=$((TOTALCPU0-LASTTOTALCPU0))
  DIFF_TOTAL1=$((TOTALCPU1-LASTTOTALCPU1))

  DIFF_USAGE0=$(( (100 * (DIFF_TOTAL0-DIFF_IDLE0)) / DIFF_TOTAL0 ))
  DIFF_USAGE1=$(( (100 * (DIFF_TOTAL1-DIFF_IDLE1)) / DIFF_TOTAL1 ))

  [ $DIFF_USAGE0 -ge 95 ] && FG="^fg($RED)" || FG="^fg($GRN)"
  OUTPUTCPU="^fg(white)CPUs^p(2;4)${FG}^r(${DIFF_USAGE0}x8)^fg($BAR)^r($((100-$DIFF_USAGE0))x8)"

  [ $DIFF_USAGE1 -ge 95 ] && FG="^fg($RED)" || FG="^fg($GRN)"
# OUTPUTCPU="${OUTPUTCPU}^p(-100;8)${FG}^r(${DIFF_USAGE1}x8)^fg($BAR)^r($((100-$DIFF_USAGE1))x8)"

echo "${OUTPUTCPU}^p(-100;8)${FG}^r(${DIFF_USAGE1}x8)^fg($BAR)^r($((100-$DIFF_USAGE1))x8)"
} # end of cpu_usage


disk_space () {
unset DISKS ALLDISKS
df | {
      while read line; do
       LABEL="$(echo $line | awk '{print $6}'):"
       if [ ! "$(echo "$LABEL" | grep 'Mounted\|/dev/shm')" ]; then
          DEVTOTAL=$(echo $line | awk '{print $2}')
          DEVFREE=$(echo $line | awk '{print $4}')
          DEVUSED=$(($DEVTOTAL - $DEVFREE))

          UBARS=$(( $(echo "scale = 0; $DEVUSED * 100 / $DEVTOTAL" | bc -l) ))
          FBARS=$(( $(echo "scale = 0; $DEVFREE * 100 / $DEVTOTAL" | bc -l) ))
          [ $UBARS -ge 95 ] && FG="^fg($RED)" || FG="^fg($GRN)"

          DISKS="^pa(;0)${DISKS}^fg($WHT)${LABEL}^p(2;4)${FG}^r(${UBARS}x16)^fg($BAR)^r(${FBARS}x16)"
          ALLDISKS="${ALLDISKS}${DISKS} "; unset DISKS
       fi
      done
      echo "$ALLDISKS"
     }
}

interfaces () {
unset OUTPUT
for NIC in $NICS; do
   eval RXBN_${NIC}=$(cat /sys/class/net/${NIC}/statistics/rx_bytes); eval TXBN_${NIC}=$(cat /sys/class/net/${NIC}/statistics/tx_bytes)
   eval RXR_${NIC}=$(printf "%4d\n"  $((($(eval echo \$RXBN_${NIC}) - $(eval echo \$RXB_${NIC})) / 1024/$SLEEP)) | bc )
   eval TXR_${NIC}=$(printf "%4d\n"  $((($(eval echo \$TXBN_${NIC}) - $(eval echo \$TXB_${NIC})) / 1024/$SLEEP)) | bc )

   OUTPUT="${OUTPUT}^fg($WHT)${NIC}^fg(${BAR}) "
   OUTPUT="${OUTPUT}$(eval echo \$TXR_${NIC})^fg($GRY)^p(2)UkB/s ^fg($BAR)$(eval echo \$RXR_${NIC})^fg($GRY)^p(2)DkB/s"
   OUTPUT="${OUTPUT} ^fg($BAR)$(ip addr show label ${NIC} | awk '/inet /{gsub("/.*","",$0); print $2}') "
done

echo $OUTPUT

for NIC in $NICS; do
   eval RXB_${NIC}=$(eval echo \$RXBN_${NIC})
   eval TXB_${NIC}=$(eval echo \$TXBN_${NIC})
done
}

workspaces () {
i3-msg -s /tmp/i3-ipc.sock -t get_workspaces | awk -v xineramaoutput="$1" '

BEGIN{
   RS = "},{"
   FS = ","
   needcolor = 1
   xpos = 1681
}

$NF ~ /true/{             tagcolor = "#FF5555"; textcolor = "#FFFFFF"; needcolor = 0 }
needcolor && $3 ~ /true/{ tagcolor = "#FFFFFF"; textcolor = "#000000"; needcolor = 0 }
needcolor{                tagcolor = "#A0A0A0"; textcolor = "#000000" }

{  gsub(/"|\[|\]|{|}/,"")
   split($2, name, ":")
   split($(NF - 1), output, ":")
  if ( output[2] == xineramaoutput && xineramaoutput == "xinerama-0" )
      { finaloutput = finaloutput"^fg("tagcolor")^r(30x22)^p(-21)^fg("textcolor")"name[2]"^p(+11)"; xpos = xpos - 32 }

  else

  if ( output[2] == xineramaoutput && xineramaoutput == "xinerama-1" )
      { finaloutput = finaloutput"^fg("tagcolor")^r(30x22)^p(-21)^fg("textcolor")"name[2]"^p(+11)"; xpos = 1  }
   needcolor = 1
}

END{ print "^pa("(xpos)";1)" finaloutput } '
} # end of workspaces()


# END OF FUNCTIONS
# script execution begins here:

# Define colors and spacers etc..:
TX1='#DBDADA'     # medium grey text
TX2='#F9F9F9'     # light grey text
GRY='#909090'     # dark grey text
BAR='#A6F09D'     # green background of bar-graphs
GRN='#65A765'     # light green (normal)
YEL='#FFFFBF'     # light yellow (caution)
RED='#FF0000'     # light red/pink (warning)
WHT='#FFFFFF'     # white
BLK='#000000'     # black
SEP="^p(4)^fg(#555555)^r(4x24)^p(4)"      # item separator block/line
SLEEP=1           # update interval (whole seconds, no decimals!)
CHAR=$((12))      # pixel width of characters of font used
# zero some vars for the CPU load reader:
LASTTOTALCPU0=0; LASTIDLECPU0=0
LASTTOTALCPU1=0; LASTIDLECPU1=0



# endless loop: DZEN on output xinerama-0
while true; do

 sleep $SLEEP

 READCPU0=$(awk '/^cpu0 /{print}' /proc/stat | sed 's/cpu0 //')
 READCPU1=$(awk '/^cpu1 /{print}' /proc/stat | sed 's/cpu1 //')
 IDLECPU0=$(echo $READCPU0 | awk '{print $4}')
 IDLECPU1=$(echo $READCPU1 | awk '{print $4}')
 TOTALCPU0=0; TOTALCPU1=0
 for x in $READCPU0; do TOTALCPU0=$((TOTALCPU0+x)); done
 for x in $READCPU1; do TOTALCPU1=$((TOTALCPU1+x)); done

# echo the string that gets printed on the Dzen2 bar:
# orig line used for non-dock dzen2:
 echo "^ib(1)^pa(0;0)^fg($BAR)^ro(1680x24)^pa(2;0)$(get_date)^pa(;0) $(get_mem)^pa(;0) $(cpu_usage)^pa(;0) $(disk_space) $(workspaces xinerama-0)"

# Remember the total and idle CPU times for the next check.
 LASTTOTALCPU0=$TOTALCPU0; LASTIDLECPU0=$IDLECPU0
 LASTTOTALCPU1=$TOTALCPU1; LASTIDLECPU1=$IDLECPU1

done | dzen2 -fn -bitstream-terminal-bold-r-normal--20-140-100-100-c-110-iso8859-1 -bg black -ta l -h 24 -u -p -xs 1 -dock &
# end 1st dzen2 loop





# endless loop: DZEN on xinerama-1
while true; do

 NICS="$(ip addr show scope global | awk '/^[ ]*inet /{print $(NF)}')" # Interfaces
 for NIC in $NICS; do
   # this just grabs reference points of the NIC traffic prior to the sleep
   # so the traffic/time calculation can be made in the $(interfaces) function above:
   eval RXB_${NIC}=$(cat /sys/class/net/${NIC}/statistics/rx_bytes)
   eval TXB_${NIC}=$(cat /sys/class/net/${NIC}/statistics/tx_bytes)
 done

 sleep $SLEEP

# echo the string that gets printed on the Dzen2 bar:
 echo "^ib(1)^pa(0;0)^fg($BAR)^ro(1680x24)^pa(0;0)$(workspaces xinerama-1)^pa(;0) $(interfaces)^pa(0;)"

done | dzen2 -fn -bitstream-terminal-bold-r-normal--20-140-100-100-c-110-iso8859-1 -bg black -ta l -h 24 -u -p -xs 2 -dock &
# end 2nd dzen2 loop
 
1 members found this post helpful.
Old 10-08-2010, 06:10 PM   #60
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,600
Blog Entries: 1

Rep: Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045Reputation: 1045
Thanks a lot!!! I've managed to join the two loops but I've still got some problems:
http://www.linuxquestions.org/questi...91#post4121891
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
virtualbox gutsy seamless taskbar covers kde taskbar Frank Leone Ubuntu 0 10-21-2007 09:08 PM
Taskbar Yggdrasill Ubuntu 2 08-02-2006 02:02 AM
taskbar problem JoeUser11 Linux - Newbie 3 10-05-2005 05:55 AM
taskbar leachim_8 Linux - Newbie 1 05-21-2005 12:25 PM
KDE taskbar applet drag bars disappeared, can't use taskbar now jon_k Linux - Software 1 05-08-2005 05:24 AM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration