close
Warning:
Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
May 16, 2016, 3:25:42 PM (10 years ago)
- Author:
-
Rüdiger Kupper
- Comment:
-
devilspie
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v53
|
v54
|
|
| 659 | 659 | |
| 660 | 660 | |
| 661 | | == TODO: devilspie |
| 662 | | (siehe #2131) |
| | 661 | == Devilspie |
| | 662 | Wir benutzen devilspie, um das Logout-Fenster im Vordergrund zu halten. (Siehe #2131. Wenn der automatische Logout irgendwann entfallen kann, wird auch devilspie nicht mehr gebraucht.) |
| | 663 | {{{ |
| | 664 | # mkdir /etc/devilspie2/ |
| | 665 | |
| | 666 | # cat > /etc/devilspie2/debug.lua <<EOF |
| | 667 | -- the debug_print command does only print anything to stdout |
| | 668 | -- if devilspie2 is run using the --debug option |
| | 669 | debug_print("---------------------------------------------"); |
| | 670 | debug_print("Window Name: " .. get_window_name()); |
| | 671 | debug_print("Application name: " .. get_application_name()); |
| | 672 | debug_print("Window Type: " .. get_window_type()); |
| | 673 | debug_print("Window Role: " .. get_window_role()); |
| | 674 | debug_print("Window Class: " .. get_window_class()); |
| | 675 | EOF |
| | 676 | |
| | 677 | # cat > /etc/devilspie2/logout-dialog.lua <<EOF |
| | 678 | -- Keep logout dialog on top |
| | 679 | |
| | 680 | if (get_window_class()=="Zenity" and get_window_name()=="Sicherheitsabfrage") then |
| | 681 | make_always_on_top(); |
| | 682 | stick_window(); |
| | 683 | end |
| | 684 | EOF |
| | 685 | }}} |
| | 686 | |
| | 687 | devilspie2 wird beim Einloggen in der Usersession der einzelnen Nutzer gestartet (weil es einen laufenden X-Server braucht): |
| | 688 | {{{ |
| | 689 | # cat > /etc/xdg/autostart/devilspie2.desktop <<EOF |
| | 690 | [Desktop Entry] |
| | 691 | Type=Application |
| | 692 | Exec=devilspie2 --folder=/etc/devilspie2/ |
| | 693 | Hidden=false |
| | 694 | NoDisplay=false |
| | 695 | X-GNOME-Autostart-enabled=true |
| | 696 | Name[de_DE]=Devilspie2 |
| | 697 | Name=Devilspie2 |
| | 698 | Comment[de_DE]= |
| | 699 | Comment=Perform scripted actions on windows as they are created |
| | 700 | EOF |
| | 701 | }}} |
| 663 | 702 | |
| 664 | 703 | |