Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

kdialog ignores window geometry?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
bennettp
Guru
Guru
User avatar
Posts: 335
Joined: Sun Feb 22, 2004 5:11 am
Location: on my back and tumbling

kdialog ignores window geometry?

  • Quote

Post by bennettp » Mon Oct 11, 2004 2:05 pm

Hi,

I'm trying to get kdialog to show a passive popup window at the bottom right corner of the screen, but it seems to ignore the --geometry option (of course, perhaps I just don't know what I'm doing ;)). Here's my command:

Code: Select all

kdialog --title "This is a passive popup" --passivepopup "It will disappear in about 1 second" 1 --geometry "100x100-10-10"
Ok, so it ignores the window sizes (which is a good thing), but why ignore XOFF and YOFF? Any help/suggestions appreciated.
Registered Linux User #363420
Top
hjnenc
Veteran
Veteran
User avatar
Posts: 1599
Joined: Sun Aug 15, 2004 5:49 am
Location: Vienna, Austria

  • Quote

Post by hjnenc » Mon Oct 11, 2004 3:52 pm

I don't use kdialog, so I don't really know. But the 'standard' X option is '-geometry' instead of '--geometry'.
Top
bennettp
Guru
Guru
User avatar
Posts: 335
Joined: Sun Feb 22, 2004 5:11 am
Location: on my back and tumbling

  • Quote

Post by bennettp » Tue Oct 12, 2004 12:38 am

-geometry is the X options, --geometry is the kde option.

After looking into it, the support of the --geometry option is only fairly new to kdialog, and "the passivepopup code is a mess". Oh well.

Edit: decided to use xosd instead, with the xosd_cat command. If anyone's interested,

Code: Select all

#!/bin/bash

unset song_old state_old
popup_time=3
poll_interval=0.5
font="-adobe-helvetica-bold-r-normal-*-*-320-*-*-p-*-iso8859-1"

cmd="osd_cat -f $font -O 1 -c green -A center -p bottom -d $popup_time -o 100"

while [ "true" ]
do
        current="$(mpc --format '[[%artist% - ]%title%];|[%file];')"
        song="$(echo $current | awk -F\; '{ print $1 }')"
        state="$(echo $current | sed -e 's/^.*[[]//' | sed -e 's/[]].*$//')"

        if [ "$song" != "$song_old" ] || [ "$state" != "$state_old" ]; then
                echo "[$state] $song" | $cmd
                state_old="$state"
                song_old="$song"
        fi
sleep $poll_interval
done
Its a bash script that runs as a daemon. It polls mpd and shows info at the bottom of the screen. Who knows, maybe I'll port it to C... ;)
Registered Linux User #363420
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic