showdesktop.widget 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. function("ShowDesktopSaveFocus") {
  2. [Focused] UserState "2:on"
  3. [!Focused] UserState "2:off"
  4. }
  5. function("ShowdesktopMinimize") {
  6. [!Minimized] UserState "on"
  7. [Minimized] UserState "off"
  8. [!Minimized] Minimize
  9. }
  10. function("ShowDesktopRestore") {
  11. [UserState] UnMinimize
  12. }
  13. function("ShowDesktopRestoreFocus") {
  14. [UserState2] Focus
  15. }
  16. function("ShowDesktopCheckWindow") {
  17. [!Minimized] UserState "target","2:on"
  18. }
  19. function("ShowDesktopReminimize")
  20. {
  21. [!Minimized] UserState "on"
  22. [!Minimized] Minimize
  23. }
  24. function("ShowDesktopUnminimized") {
  25. [UserState2 | Children] Function "ShowDesktopSaveFocus"
  26. [UserState2 | Children] Function "ShowDesktopReminimize"
  27. [!UserState2 | Children] Function "ShowDesktopRestore"
  28. [!UserState2 | Children] Function "ShowDesktopRestoreFocus"
  29. [!UserState2] UserState "off"
  30. [UserState2] UserState "on"
  31. }
  32. function("ShowDesktop") {
  33. [!UserState | Children] Function "ShowDesktopSaveFocus"
  34. [!UserState | Children] Function "ShowDesktopMinimize"
  35. [UserState] UserState "2:off"
  36. [UserState| Children ] Function "ShowDesktopCheckWindow"
  37. [UserState] Function "target","ShowDesktopUnminimized"
  38. [!UserState] UserState "on"
  39. }
  40. layout {
  41. button {
  42. value = "user-desktop"
  43. style = "panel_item"
  44. css = "* { padding: 4px; }"
  45. tooltip = "Desktop"
  46. action = Function "target", "ShowDesktop"
  47. }
  48. taskbar "target" {
  49. css = "* { -GtkWidget-visible: false; }"
  50. }
  51. }