clipboardtest.sh 779 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # date-menu.sh
  4. #
  5. # This is in the public domain. Honestly, how can you claim anything to something
  6. # this simple?
  7. #
  8. # Outputs a simple openbox pipe menu to display the date, time, and calendar.
  9. # You need 'date' and 'cal'. You should have these. Additionally, the calendar
  10. # only appears properly formated if you use a mono spaced font.
  11. # Outputs the selected row from the calender output.
  12. # If you don't use a mono spaced font, you would have to play with spacing here.
  13. # It would probably involve a very complicated mess. Is there a way to force a
  14. # different font per menu?
  15. XCMENULIST=$(xcmenu --list)
  16. # Build the menu
  17. cat << EOFMENU
  18. <openbox_pipe_menu>
  19. <separator label="Clipboard Contents" />
  20. <item label="$XCMENULIST" />
  21. </openbox_pipe_menu>
  22. EOFMENU