Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xosd_set_bar_length(3) [debian man page]

XOSD_SET_BAR_LENGTH(3)													    XOSD_SET_BAR_LENGTH(3)

NAME
xosd_set_bar_length - Change the length of the percentage bar or slider SYNOPSIS
#include <xosd.h> int xosd_set_bar_length (xosd *osd, int displayPercentage); DESCRIPTION
xosd_set_bar_length changes the percentage of the display used by a slider or percentage bar. Normally the XOSD choses a sensible length for the bar, but you may wish to change the default behavior if there are only a small number of possible values to be displayed. ARGUMENTS
osd The XOSD window to alter. displayPercentage The percentage of the display to be used up by the slider or percentage bar, as an interger between 0 and 100. Setting displayPer- centage to -1 reverts to the default behaviour. RETURN VALUE
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error. ENVIRONMENT
char *xosd_error A string describing the error, if one occurred. BUGS
There are no known bugs with xosd_set_bar_length. Bug reports can be sent to <xosd@ignavus.net>. AUTHORS
The XOSD library was originally written by Andre Renaud, and is currently maintained by Tim Wright. This document was written by Michael JasonSmith. SEE ALSO
xosd_create(3), xosd_display(3). XOSD_SET_BAR_LENGTH(3)

Check Out this Related Man Page

XOSD_IS_ONSCREEN(3)													       XOSD_IS_ONSCREEN(3)

NAME
xosd_is_onscreen - Returns wether the XOSD window is shown SYNOPSIS
#include <xosd.h> xosd *xosd_is_onscreen (xosd *osd); DESCRIPTION
osd_is_onscreen determines weather a XOSD window, is currently being shown (is mapped to the X display). Because XOSD displays data asyn- chronously (see xosd_display(3) for details) it can be difficult to know if data is being displayed, xosd_is_onscreen solves this problem. Call xosd_show(3) or xosd_hide(3) to alter the visibility of the XOSD window. ARGUMENTS
osd The XOSD window to query. RETURN VALUE
A 1 is returned if the window is onscreen (mapped), or 0 if it is hidden (unmapped). On error, -1 is returned and xosd_error is set to in- dicate the reason for the error. ENVIRONMENT
char *xosd_error A string to a text string describing the error, if one occurred. HISTORY
The xosd_is_onscreen function first appeared in version 2.1 of the XOSD library. AUTHORS
The XOSD library was originally written by Andre Renaud and is currenly maintained by Tim Wright, who also wrote the xosd_is_onscreen func- tion. Michael JasonSmith thinks he wrote this document, but is not sure; drop Micahel an email (<mike@ldots.org>) if you think he didn't write this document. BUGS
There are no known bugs with xosd_is_onscreen. Bug reports can be sent to <xosd@ignavus.net>. SEE ALSO
xosd_display(3), xosd_show(3), xosd_hide(3). XOSD_IS_ONSCREEN(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

percentage sign in a drive mapping ?

Good day all, I'm hoping someone can help me understand what the percentage sign is and does in mapping a drive to a server ? I provided the example for you. (ie \\server1\share%simon) thanks simon2000 (2 Replies)
Discussion started by: simon2000
2 Replies

2. Programming

how do I calculate percentage ?

int percent (int a, int b) { if (b/a*100 > 25) return TRUE; else return FALSE; } I want to calculate what percentage of a is b. say if b = 48, a = 100 so b is 48% of a but wouldnt b/a give me 0 ??? what can be done ?? (6 Replies)
Discussion started by: the_learner
6 Replies

3. Shell Programming and Scripting

How to calculate the percentage for the values in column

Hi, I am having the file which contains the following two columns. 518 _factorial 256 _main 73 _atol 52 ___do_global_ctors 170 ___main 52 ___do_g How can calculate the percentage of each value in the first column ? first need to get the sum of the first column and... (3 Replies)
Discussion started by: saleru_raja
3 Replies

4. Shell Programming and Scripting

percentage by line

hi, I am new to awk.. and getting used to the scripts. I have a small data set 5 coulms.. 16 rows. 1) I am trying to remove the percentages of each line of colum 3..like first line divided the sum of colum 3 divided by 100 and print it out. removing hte percentages of each line I would really... (3 Replies)
Discussion started by: rockiefx
3 Replies

5. UNIX for Dummies Questions & Answers

percentage

How to calculate percentage of two values in unix. (5 Replies)
Discussion started by: venkatesht
5 Replies

6. Shell Programming and Scripting

Progress bar using lsof and awk

Hey all. I added this to my script, hoping for a progress bar or percentage complete lsof -o0 -o -p $$ | awk ' BEGIN { CONVFMT = "%.2f" } $4 ~ /^+r$/ && $7 ~ /^0t/ { offset = substr($7, 3) fname = $9 "stat... (6 Replies)
Discussion started by: midniteslice
6 Replies

7. UNIX for Dummies Questions & Answers

How to get certain records

Hi.. I am new to Unix and trying to learn. I have a small doubt like if we can use logical operators in searching. My problem is I have a file which has name , roll no and percentage and I need to get the records of the students whose percentage is below certain value and then sort them by... (5 Replies)
Discussion started by: indiragandham
5 Replies

8. UNIX for Dummies Questions & Answers

Working out the percentage between two values

Hi there, I am totally new to Unix, I am trying to work out the percentage between two values in a ksh shell script and assign the result to a variable. Value1=577 Values2=244 So the calculation would be as follows: ((Value1 - Value2) / Value1) * 100 How would I be able to achieve... (2 Replies)
Discussion started by: NextLevelAndi
2 Replies

9. AIX

Why using "%" of Paging size increases & how to decrease this percentage?

Hi I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server. PAGING SPACE size,mb 5632 % used 14.6 % free 85.3 How can i decrease the using... (6 Replies)
Discussion started by: dearsumon
6 Replies

10. Shell Programming and Scripting

Script to provide percentages?

so i'm have been stifled here inn my attempts at this. i need to calculate an unusual figure. what is the percentage difference between 400 and 3? usually, to get the percentage, you just divide the smaller number by the bigger number. then multiply the answer by 100. in this case... (10 Replies)
Discussion started by: SkySmart
10 Replies

11. Shell Programming and Scripting

how to print the percentage of task completed on the same line

Hi I have written a utility in shell program for which i want to add a code to display percentage of completion dynamically My scripts runs approx about 30 to 45min , It appends exactly 2000 lines to one of the log file. How to calculate percentage ? I will note the total number of lines... (5 Replies)
Discussion started by: rakeshkumar
5 Replies

12. UNIX for Dummies Questions & Answers

How to perform File Functions?

I have a Student File (rno, name, marks1, marks2, marks3) How do I display a student with the highest percentage and with a percentage between 50-60. and how to sort students in ascending order as per their name (1 Reply)
Discussion started by: Ankit Saraogi
1 Replies

13. Shell Programming and Scripting

Calculate percentage of columns greater than certain value in a matrix using awk

This matrix represents correlation values. Is it possible to calculate the percentage of columns (a1, a2, a3) that have a value >= |0.5| and report the percentage that has positive correlation >0.5 and negative correlation <-0.5 separately. thanx in advance! input name a1 a2 a3... (5 Replies)
Discussion started by: quincyjones
5 Replies

14. Shell Programming and Scripting

Count percentage of string

Hi, Am trying to count the number of occurrences and then as a percentage from a log to troubleshoot errors, can someone help please grep -o 'HTTP/1\.1\" 404 3..' access_log | wc -l 6 (5 Replies)
Discussion started by: dmccabe
5 Replies

15. Shell Programming and Scripting

Get average and percentage non zero value

How to calculate percentage non zero value occurrence base on value col 1 and 2 2017 a 0 2017 a 2 2017 a 4 2017 a 2 2017 a 0 2017 b 2 2017 b 6 2016 a 2 2016 a 2 2016 b 2 2016 b 8 2016 b 0 2016 b 0 2016 c 2 2016 c 2 2016 c 0 i manage to get average # awk '{A++;B+=$3}END{for(X in... (1 Reply)
Discussion started by: before4
1 Replies