Changeset 5597


Ignore:
Timestamp:
Jul 27, 2017, 11:45:50 AM (20 months ago)
Author:
mabarracus
Message:

Added zero-lliurex-locker

Location:
lliurex-zero-installers/trunk/fuentes
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-zero-installers/trunk/fuentes/debian/changelog

    r3777 r5597  
     1lliurex-zero-installers (0.128) xenial; urgency=medium
     2
     3  * Added zero-lliurex-locker
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 27 Jul 2017 11:43:51 +0200
     6
    17lliurex-zero-installers (0.127) xenial; urgency=medium
    28
  • lliurex-zero-installers/trunk/fuentes/zero-lliurex-locker.zmds/lliurex-zero-locker.app

    r5589 r5597  
    22Name[es]=Bloqueo de bandeja de CD
    33Name[qcv]=Bloqueig per la safata de CD
    4 Name[ca_ES]=Locker for CD tray
    5 Comment=Bloqueo de bandeja de CD
     4Name[ca_ES]=Bloqueig per la safata de CD
     5Comment=Locker for CD tray
    66Comment[es]=Bloqueig per la safata de CD
    7 Comment[qcv]=Locker for CD tray
     7Comment[qcv]=Bloqueig per la safata de CD
    88Comment[ca_ES]=Bloqueig per la safata de CD
    9 Icon=lliurex-zero-locker
    10 Category=Software
     9Icon=zero-lliurex-locker
     10Category=System
    1111ScriptPath=lliurex-zero-locker.zmd
    1212Using=pe
  • lliurex-zero-installers/trunk/fuentes/zero-lliurex-locker.zmds/lliurex-zero-locker.zmd

    r5589 r5597  
    22#set -x
    33
    4 #zero-center add-pulsating-color lliurex-zero-installer-telegram
     4export TEXTDOMAIN="zero-lliurex-locker"
    55
    6 #export TEXTDOMAIN="lliurex-zero-locker"
    7 #zenity --question --title="Telegram" --text="$(gettext "Welcome to telegram installer for Llurex\nThis will install Telegram on your computer. Continue?\n")"
     6OK_LABEL=$(gettext 'Activate')
     7CANCEL_LABEL=$(gettext 'Deactivate')
     8BTN_TXT="--ok-label=$OK_LABEL --cancel-label=$CANCEL_LABEL"
    89
    9 #if [ $? -eq 0 ]
    10 #then
    11 #       zero-lliurex-wget $TURL$TSETUP $DESTDIR
    12 #       if [ $? -eq 0 ]
    13 #       then
    14 #               su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME is not installed in your system, please  retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER   
    15 #       fi
    16 #fi
    17 #zero-center remove-pulsating-color lliurex-zero-installer-telegram
     10T="$(n4d-client -c VariablesManager -m get_variable -a 'CDLOCK_ACTIVE')"
     11status=0
     12if [ "$T" == "None" ]; then
     13    n4d-client -r -c VariablesManager -m add_variable -a 'CDLOCK_ACTIVE' 0 '' '' 'zero-lliurex-locker'
     14fi
     15if [ "$T" == "0" ]; then
     16    status=0
     17else
     18    status=1
     19fi
     20if [ $status -eq 0 ]; then
     21    TITLE="$(gettext "CD locker")"
     22    TEXT="$(gettext "CD locker") $(gettext "is INACTIVE")"
     23    zenity --question --title="$TITLE" --text="$TEXT" $BTN_TXT
     24    if [ $? -eq 0 ];then
     25        su -c "notify-send -t 2000 -u low -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'CD locker' '$(gettext "Activating lock cd")'" $USER
     26        n4d-client -r -c VariablesManager -m set_variable -a 'CDLOCK_ACTIVE' 1
     27    fi
     28fi
     29if [ $status -eq 1 ]; then
     30    TITLE="$(gettext "CD locker")"
     31    TEXT="$(gettext "CD locker") $(gettext "is ACTIVE")"
     32    zenity --question --title="$TITLE" --text="$TEXT" $BTN_TXT
     33    if [ $? -eq 1 ];then
     34        su -c "notify-send -t 2000 -u low -i /usr/share/icons/Vibrancy-Colors/apps/48/zero-center.png 'CD locker' '$(gettext "Disabling lock cd")'" $USER
     35        n4d-client -r -c VariablesManager -m set_variable -a 'CDLOCK_ACTIVE' 0
     36    fi
     37fi
    1838exit 0
Note: See TracChangeset for help on using the changeset viewer.