kwin button close minimize on your panel kubuntu 12.04



So you want minimize your screen use ?!

ok le’s put kwin buttons on the panel with kde4.8

just download this http://kde-apps.org/content/show.php/KWin+Button+applet+improved?content=143971

INSTALL DEPENDENCIES

now as usual NOTE IF CMAKE GIVES ERRORS… just install the dev packages … it should be

kdebase-workspace-dev kdelibs5-dev

NOW EXTRACT AND DO THIS IN THE FOLDER …

  mkdir build ; cd build ; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. ;make ; sudo make install ;  kbuildsycoca4  #cpack ..
 

kate $HOME/.kde/share/config/kwinrc

you should locate [Windows] and make sure there is this stuff

 
 [Windows] 
<del>BorderlessMaximizedWindows=true

Use just add 4 buttons

THIS IS OLD AND THE PACKAGED GENERATED WITH CPACK DOENS’T WORK PROPERLY.
and now create your own debian package with cmake and cpack …

1 extract
2 edit your CMakeLists.txt adding this shit

</del>
<del>SET(MAJOR_VERSION "0")</del>
<del>SET(MINOR_VERSION "5")</del>
<del>SET(PATCH_VERSION "0")</del>

<del>IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")</del>
<del>INCLUDE(InstallRequiredSystemLibraries)</del>

<del>SET(CPACK_SET_DESTDIR "on")</del>
<del>SET(CPACK_PACKAGING_INSTALL_PREFIX "/tmp")</del>
<del>SET(CPACK_GENERATOR "DEB")</del>

<del>SET(CPACK_PACKAGE_DESCRIPTION "Plasmoid to add kwin button on your panel")</del>
<del>SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "kwin button applet is a plasmoid to add kwin buttons on your pannel just add 3 buttons for minimize maximize and close , you can even add the icon button")</del>
<del>SET(CPACK_PACKAGE_VENDOR "Vendor")</del>
<del>SET(CPACK_PACKAGE_CONTACT "Stefan Majewsky Alberto Pajuelo Montes Aliaksandr Stelmachonak")</del>
<del>SET(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")</del>
<del>SET(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")</del>
<del>SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")</del>
<del>SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")</del>
<del>SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")</del>

<del>SET(CPACK_DEBIAN_PACKAGE_DEPENDS " libplasma3 , plasma-desktop ")</del>
<del>SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")</del>
<del>SET(CPACK_DEBIAN_PACKAGE_SECTION "kde")</del>
<del>SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})</del>

<del>SET(CPACK_COMPONENTS_ALL Libraries ApplicationData)</del>
<del>INCLUDE(CPack)</del>

<del>ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")</del>

<del>


now as usual NOTE IF CMAKE GIVES ERRORS… just install the dev packages … it should be

kdebase-workspace-dev kdelibs5-dev

  mkdir build ; cd build ; cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. ;make ; sudo make install ;  cpack ..</del>
<del> 


NOTE THE PACKAGE GENERATED WILL NOT WORK …
on build folder there is your own package ,… just install it

now upgrade the plasmoid list with

 kbuildsycoca4 


set kwin to show the border only when the windows is not maximized

kate $HOME/.kde/share/config/kwinrc

you should locate [Windows] and make sure there is this stuff

</del>
<del>[Windows]</del>
<del>BorderlessMaximizedWindows=true


Use just add 4 buttons

and set them … close maximize iconfy and of course set them to be visible only when the window is maximize .. right click on the button … settings etc etc …

2 Responses to kwin button close minimize on your panel kubuntu 12.04

  1. skm says:

    Hi,
    I have 3 monitors and the default kde titlebar buttons have only maximize and minimize and close. Maximize maximizes to only one monitor. I want to add functionality to have a new titlebar button to maximize to all monitors.

    Do you know of a way to do this? Has it been done already?
    I can find how to create a new icon for this, but not ow to create an applet to do this.

    Having an extra button to maximize to all monitors would help many people who have 2 or more monitors on their coomputor.

    Any ideas?

    • nowardev says:

      i am sorry but kwin buttons are not developed so fast , so i dunno if you can do more than configure them.

      maybe you could try with a kwin script but i really dunno if you can you should ask this question to kde-dev mail list

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: