Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: Bored: any lxde tips?

  1. #21
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Bored: any lxde tips?

    Quote Originally Posted by guy-rouillier View Post
    I found a solution that works for me here:

    http://ubuntuforums.org/showthread.p...29#post9470029

    This info should go into a wiki, as the question seems to come up from time to time.
    so it's now "text" instead of "1", thanks for the heads up.

  2. #22
    Join Date
    Dec 2007
    Location
    Brisbane, Australia
    Beans
    65
    Distro
    Ubuntu

    Re: Bored: any lxde tips?

    Quote Originally Posted by kerry_s View Post
    check gmail:

    Code:
    #!/bin/bash
    
    while true; do 
    
    gmail_login="login-name"  
    gmail_password="password" 
    icon="/usr/share/icons/gnome/scalable/actions/mail-mark-important.svg"
    
    check="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
    https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
    --no-check-certificate | grep 'fullcount' \
    | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
    
    if [ "$check" == "0" ]; then
      sleep 300
     else
      zenity --info --text="You Have Mail"
      zenity --notification --text="$check Unread" --window-icon="$icon"
      gnome-open https://mail.google.com/
      sleep 300
    fi
    
    done
    Kerry,

    I spent ages looking for anything like this for Lubuntu. I kept getting crashes with "mail-notification" (what I use under gnome) whenever I tried to add a gmail account with various Glib and GTK errors.

    This is perfect and is greatly appreciated.

  3. #23
    Join Date
    Oct 2010
    Beans
    2

    Re: Bored: any lxde tips?

    Quote Originally Posted by kerry_s View Post
    any lxde users want to share some of your tips, tricks, tweaks?

    i created a "root open" in ~/.local/share/applications/root.desktop so i can just right click on the folder/file and open it as root instead of using the "tool" button.

    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Root Open
    Exec=gksudo gnome-open %U
    Icon=gksu.png
    Love this thread cause i recently fell for LXDE. here's how I made my ROOT open script/servicemenu entry work:
    Code:
    [Desktop Entry]
    Type=Service
    ServiceTypes=KonqPopupMenu/Plugin
    MimeType=application/octet-stream;
    Actions="Open as ROOT";
    
    [Desktop Action "Open as ROOT"]
    Name=Open as ROOT
    Icon=bball
    Exec=gnomesu gnome-open %F
    This .desktop file goes into: "/usr/share/kde4/services/ServiceMenus" then it shows up in the right-click>Actions menu.
    Again thanks for your tips and I'll come back to add more of my own.
    Last edited by BrokenTusk; February 4th, 2011 at 11:29 PM.

  4. #24
    Join Date
    Jan 2009
    Beans
    6

    Re: Bored: any lxde tips?

    Quote Originally Posted by kerry_s View Post
    for those that miss the trash panel applet, you can now get trash notifications in your system tray. just add to your startup an enjoy.

    Code:
    #!/bin/bash
    #
    # created for Lubuntu 10.04 on 3/21/2010
    # by falconindy & kerry_s @ http://ubuntuforums.org/showthread.php?p=9006632#post9006632
    # this was made to serve a need, do with it as you please.
    #
    # make sure you have gvfs-bin installed.
    ###
    
    ## this is the path to the trash icon, change to match your theme use "locate user-trash-full" in terminal.
    icon=/usr/share/icons/gnome/scalable/status/user-trash-full.svg
    
    ## this is the file manager used when clicked.
    filemanager=/usr/bin/pcmanfm2
    
    ## don't need to touch this.
    dir=$HOME/.local/share/Trash/files
    
    while true; do
      [[ $(gvfs-info trash:/// | grep 'trash::item-count: 0') ]] || {
        zenity --notification --window-icon="$icon" --text=" $(gvfs-ls trash:///) ";
        $filemanager $dir; sleep 90;
      }
      sleep 10
    done
    Thanks for all these wonderful script!
    I love them!
    Unfortunately, this one does not work for me...I see the icon in the tray, but when I click on it pcmanfm does not open the trash folder...

    I solved by changing in this way
    Code:
    ## this is the file manager used when clicked.
    filemanager=/usr/bin/pcmanfm
    
    ## don't need to touch this.
    dir=trash:///
    Thanks again!
    Last edited by Pocio; January 15th, 2011 at 03:16 PM.

  5. #25
    Join Date
    Sep 2009
    Beans
    Hidden!

    Re: Bored: any lxde tips?

    Quote Originally Posted by juancarlospaco View Post
    add to startup apps:

    xdesktopwaves &
    Thank you.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •