Image 01
profile-image

BastianBalthazarreBux

Fra Rio Torino, Italy
Kput

Various KDE 1.-4. Improvements 2 comments

Rating: 7.0
Dec 23 2011
for multiple monitors the following example (kput_top_right.sh) could be more appropriate:

warning bash arrays inside

http://paste.kde.org/177092/


#! /bin/bash

Bottom_Panel=35
Gap=20

window=$(xdotool getactivewindow)
# mousepos == ( "2401" "750" )
mousepos=( $( xdotool getmouselocation 2>&1 | sed -n -e 's|^x:\([0-9]\+\) y:\([0-9]\+\) .*$|\1 \2|p' | head -n1 ) )

# ${monitors[@]} == ( "2560,1440,1920,0" "1920,1080,0,0" )
monitors=( $(xrandr | sed -n -e 's:^.*\bconnected \([0-9]\+\)x\([0-9]\+\)+\([0-9]\+\)+\([0-9]\+\) .*$:\1,\2,\3,\4:p') )

monitor=( 0 0 1024 768 )

for m in ${monitors[@]}
do
tmpm=( ${m//,/ } )
x0=${tmpm[2]}
x1=$((x0 + ${tmpm[0]}))
y0=${tmpm[3]}
y1=$((y0 + ${tmpm[1]}))
xm=${mousepos[0]}
ym=${mousepos[1]}
if [[ ($x0 -le $xm) && ($xm -le $x1) && ($y0 -le $ym) && ($ym -le $y1) ]]
then
monitor=( $x0 $y0 $x1 $y1 )
break
fi
done

x=${monitor[2]}
y=${monitor[3]}
w=$(xwininfo -id $window | grep "Width" | awk '{print $2}')
h=$(xwininfo -id $window | grep "Height" | awk '{print $2}')

newx=$(( x - w ))
xpos=$(( newx - Gap ))

xdotool windowmove "${window}" "${xpos}" "${Gap}"
- Dec 23 2011
NepomukShell (NepSaK)

Developers Apps 2 comments

by trueg
Rating: 6.4
May 05 2011
work ~/tmp/nepomukshell-0.7.0/build make -j1
[ 0%] Built target nepomukshell_automoc
[ 3%] Building CXX object CMakeFiles/nepomukshell.dir/mainwindow.o
/home/vivo/tmp/nepomukshell-0.7.0/mainwindow.cpp:25:27: error: resourcemodel.h: No such file or directory
make[2]: *** [CMakeFiles/nepomukshell.dir/mainwindow.o] Errore 1
make[1]: *** [CMakeFiles/nepomukshell.dir/all] Errore 2
make: *** [all] Errore 2
- Nov 23 2010
Kate SQL Plugin

Text Editors 9 comments

Rating: 7.8
Jul 22 2010
Hi Bastian,
- "resizable panel"? <<< My Bad :p

- ok, i will restore the the normal font by default. the possibility to configure fonts and colors for blobs and nulls is already planned for the next release <<< yay

- multiple query support is provided internally by the sql driver. mysql supports multiple queries putting a ; after each query, odbc not. But i can try emulate this behavior parsing text with a regexp, and detect queries manually. Good idea?
<<< Actually you will need to parse anyway to grab the parameters right? then it could be a good idea, otherwise the complexity added is not worth it. For example phpMyAdmin botch it some times and it's a mature project.
Actually I've tried with a QMYSQL connection, it give me the error:

30 Jun 2010 09:59:59: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT * FROM tab_users' at line 2 QMYSQL3: Unable to prepare statement

with this text selected:
UPDATE tab_users set id = 1231231231 where id = 1231231231;
SELECT * FROM tab_users;


One strange thing is that the class who give the error is QMYSQL3 when I've used a QMYSQL connection, maybe it's only inherited or maybe it's a bug

- yesss, i already have this idea. also, with a possibility to enter parameters manually or from an input file (for multiple insert statements, for example). <<< yay

Really thanks for your suggestions!
... and to you for this plugin - Jun 30 2010
It's a really nice start, it would be even greater with the following:

  • resizeable panel for SQL Output

  • Using the same font as the window, may be with possibility to select a different one

  • support for multiple query with one selection

  • parameters in query for example like python %(param)s. When the query is executed the parameter will be asked with a dialog.



  • - Jun 29 2010
    KParts Plugin

    Browser 139 comments

    Rating: 7.9
    Jul 23 2012
    http://bugs.gentoo.org/323565 - Jun 11 2010
    Instelled ten minutes ago, it work great, also the two buttons "open in external program" and "Save a copy" are very useful.

    This plugin deserve a standing ovation
    - May 21 2010
    Comic Vector Icons

    Individual Icons/-sets 2 comments

    Rating: 7.1
    Apr 19 2007
    the download redirect to a site who sell icons, no way to find the theme - Jun 07 2010
    copy_path

    Dolphin Service Menus 11 comments

    by bollo
    Rating: 7.5
    Dec 29 2010
    $HOME/.kde4.2/share/kde4/services

    great job - Mar 29 2009
    TreeLine

    Ebook Software 17 comments

    Rating: 6.5
    Mar 17 2019
    Thanks for the work, I'll grab the code to learn something :) - Nov 05 2008
    Slow Motion

    Wallpaper Other 2 comments

    Rating: 4.6
    Jan 29 2008
    Running a 64 bit OS here, flash work badly with your site, so it's not possible to download the image.
    - Jan 29 2008
    KIO

    Wallpaper Other 2 comments

    Rating: 5.1
    Jan 07 2008
    Don't know how to explane that in english but it a heart question.
    Obviously I don't mind if you or everyone else erase, it and should be fairly easy with gimp and a black pencil ;) - Jan 07 2008
    Black emerald

    Beryl/Emerald Themes 4 comments

    Rating: 7.1
    Dec 14 2007
    Dunno if it is a must but here emerald-theme-manager was complaining about bad tar format and not importing the theme.

    Solution:

    gzip black.emerald
    mv black.emerald.gz black.emerald
    - Dec 14 2007
    Burning Wall

    Wallpaper Other 2 comments

    Rating: 5.7
    Sep 24 2007
    ... to download, too bad - Sep 24 2007
    ginkgo 10

    Wallpaper Other 2 comments

    Rating: 6.1
    Apr 13 2007
    seriously - Apr 12 2007
    Rating: 7.5
    Aug 19 2009
    Rating: 7.5
    8   Apr 21 2013
    Surrender Windows

    Wallpapers Windows
    by tgentry

    Rating: 5.8
    3   Feb 20 2012
    OpenAPC

    Various KDE Stuff
    by Jim99

    Rating: 6.0
    8   Jan 24 2012
    ZephyrAnthes

    Wallpaper Other
    by bo462

    Rating: 6.5
    8   Jan 24 2012
    Paso-del-Tiempo

    Wallpaper Other
    by GaritoShare

    Rating: 6.5
    8   Jan 11 2012
    Soft World

    Wallpaper Other
    by perjo132

    Rating: 6.0
    8   Jan 03 2012
    GimpResourcesThumbnailer

    Various KDE 1.-4. Improvements
    by TheGrudge

    Rating: 7.7
    8   Dec 26 2011
    Kput

    Various KDE 1.-4. Improvements
    by jaugen

    Rating: 7.0
    8   Dec 23 2011
    Rating: 7.5
    8   Aug 01 2011
    Radeon Power Management

    Plasma 4 Widgets
    by jemino

    Rating: 7.9
    8   Mar 10 2011