Commit d5d93a2b authored by Jens Henrik  Goebbert's avatar Jens Henrik Goebbert

add infoterms to application submenu

add xdg-scripts to application submenu
replace desktop files in autostart with links
add wall-message infoterm
position icons on desktop
parent 1ba397f1
../../data/applications/default-htop-infoterm.desktop
\ No newline at end of file
../../data/applications/default-jobtime-infoterm.desktop
\ No newline at end of file
../../data/applications/default-motd-infoterm.desktop
\ No newline at end of file
../../data/applications/default-wall-infoterm.desktop
\ No newline at end of file
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Name>Xfce</Name>
<Menu>
<Name>Forschungszentrum Juelich</Name>
<Menu>
<Name>FZJ Utilities</Name>
<Menu>
<Name>FZJ Infoterms</Name>
<Directory>fzj-utils-infoterms.directory</Directory>
<Include>
<Category>FZJ-Infoterms</Category>
</Include>
</Menu>
</Menu>
</Menu>
</Menu>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Name>Xfce</Name>
<Menu>
<Name>Forschungszentrum Juelich</Name>
<Menu>
<Name>FZJ Utilities</Name>
<Menu>
<Name>FZJ XDG Profiles</Name>
<Directory>fzj-utils-xdg-profiles.directory</Directory>
<Include>
<Category>FZJ-XDG-Profiles</Category>
</Include>
</Menu>
</Menu>
</Menu>
</Menu>
[LLview-JURECA]
row=0
col=3
[LLview-JUQUEEN]
row=0
col=4
[Desktop Entry]
Encoding=UTF-8
Version=
Version=1.0
Type=Application
Name=infoterm-htop-default
Comment=
#Exec=bash -c 'IFS=: && for p in ${XDG_CONFIG_DIRS}; do if [ -e ${p}/infoterm-default/infoterm-default.sh ]; then ${p}/infoterm-default/infoterm-default.sh; break; fi; done'
Exec=bash -c '${XDG_PROFILES_DIR}/default/data/infoterm-htop-default/infoterm-htop-default.sh'
Icon=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles/default/data/icons/fzj-utils-infoterms-logo_32x32.png
StartupNotify=false
Terminal=false
Hidden=false
Categories=FZJ-Infoterms
[Desktop Entry]
Encoding=UTF-8
Version=
Version=1.0
Type=Application
Name=infoterm-jobtime-default
Comment=
#Exec=bash -c 'IFS=: && for p in ${XDG_CONFIG_DIRS}; do if [ -e ${p}/infoterm-default/infoterm-default.sh ]; then ${p}/infoterm-default/infoterm-default.sh; break; fi; done'
Exec=bash -c '${XDG_PROFILES_DIR}/default/data/infoterm-jobtime-default/infoterm-jobtime-default.sh'
Icon=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles/default/data/icons/fzj-utils-infoterms-logo_32x32.png
StartupNotify=false
Terminal=false
Hidden=false
Categories=FZJ-Infoterms
......@@ -10,3 +10,4 @@ Terminal=false
StartupNotify=false
Categories=FZJ-Utilities
Name[de_DE.utf8]=LLview-JURECA
[Desktop Entry]
Encoding=UTF-8
Version=
Version=1.0
Type=Application
Name=infoterm-motd-default
Comment=
Exec=bash -c '${XDG_PROFILES_DIR}/default/data/infoterm-motd-default/infoterm-motd-default.sh'
Icon=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles/default/data/icons/fzj-utils-infoterms-logo_32x32.png
StartupNotify=false
Terminal=false
Hidden=false
Categories=FZJ-Infoterms
[Desktop Entry]
Encoding=UTF-8
Version=
Version=1.0
Type=Application
Name=infoterm-wall-default
Comment=
Exec=bash -c '/usr/bin/wait4signal.exe ${XDG_PROFILES_DIR}/default/data/infoterm-wall-default/infoterm-wall-default.sh'
Icon=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles/default/data/icons/fzj-utils-infoterms-logo_32x32.png
StartupNotify=false
Terminal=false
Hidden=false
Categories=FZJ-Infoterms
......@@ -5,7 +5,7 @@
Icon=utilities-terminal
StartupNotify=true
Terminal=true
Categories=FZJ-Utilities;
Categories=FZJ-XDG-Profiles;
#OnlyShowIn=FZ-Juelich;
Name=XDG profile - clone
Path=
......
......@@ -5,7 +5,7 @@
Icon=utilities-terminal
StartupNotify=true
Terminal=true
Categories=FZJ-Utilities;
Categories=FZJ-XDG-Profiles;
#OnlyShowIn=FZ-Juelich;
Name=XDG profile - list
Path=
......
......@@ -5,7 +5,7 @@
Icon=utilities-terminal
StartupNotify=true
Terminal=true
Categories=FZJ-Utilities;
Categories=FZJ-XDG-Profiles;
#OnlyShowIn=FZ-Juelich;
Name=XDG profile - publish
Path=
......
......@@ -5,7 +5,7 @@
Icon=utilities-terminal
StartupNotify=true
Terminal=true
Categories=FZJ-Utilities;
Categories=FZJ-XDG-Profiles;
#OnlyShowIn=FZ-Juelich;
Name=XFCE - reload settings
Path=
......
[Desktop Entry]
Version=1.0
Type=Directory
Icon=fzj-utils-infoterms-logo_32x32.png
Name=FZJ Infoterms
Comment=Forschungszentrum Juelich - Infoterms
[Desktop Entry]
Version=1.0
Type=Directory
Icon=fzj-utils-xdg-profiles-logo_32x32.png
Name=FZJ XDG Profiles
Comment=Forschungszentrum Juelich - XDG Profiles
#!/bin/sh
# set the XDG_CONFIG_HOME for infoterm to the directory infoterm.sh is stored
# and start terminal with forever-refresh-loop
# and start terminal
if [ -s /etc/motd ]; then
XDG_CONFIG_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" \
xfce4-terminal --disable-server --title=infoterm-motd-default --hide-menubar --hide-toolbar \
......
#!/bin/sh
# set the XDG_CONFIG_HOME for infoterm to the directory infoterm.sh is stored
# and start terminal
......@@ -12,12 +14,12 @@ echo
export TMP_FILE=`mktemp`;
while read line
do
echo "$line" > ${TMP_FILE}
done < "${1:-/dev/stdin}"
echo "$line" >> ${TMP_FILE}
done
# show TMP_FILE
XDG_CONFIG_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" \
xfce4-terminal --disable-server --title=infoterm-motd-default --hide-menubar --hide-toolbar \
xfce4-terminal --disable-server --title=infoterm-wall-default --hide-menubar --hide-toolbar \
-e 'sh -c "cat ${TMP_FILE}; read -p \"Press [Enter] key to close...\""'
rm ${TMP_FILE}
......
../../data/applications/vis-nvidia-infoterm.desktop
\ No newline at end of file
[Desktop Entry]
Encoding=UTF-8
Version=
Version=1.0
Type=Application
Name=infoterm-nvidia-vis
Comment=
#Exec=bash -c 'IFS=: && for p in ${XDG_CONFIG_DIRS}; do if [ -e ${p}/infoterm-vis/infoterm-vis.sh ]; then ${p}/infoterm-vis/infoterm-vis.sh; break; fi; done'
Exec=bash -c '${XDG_PROFILES_DIR}/vis/data/infoterm-nvidia-vis/infoterm-nvidia-vis.sh'
Icon=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles/default/data/icons/fzj-utils-infoterms-logo_32x32.png
StartupNotify=false
Terminal=false
Hidden=false
Categories=FZJ-Infoterms
#!/bin/bash
#OLD_PATH=/homeb/zam/goebbert/workspace/xdg_profiles
# settings
PROFILE=default
OLD_PATH=/homeb/zam/goebbert/workspace/xdg_profiles/etc/xdg/profiles
NEW_PATH=/usr/local/jsc/etc/xdg/profiles
#NEW_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
OLD_PATH=
NEW_PATH=
# replace profile
rm -rf ${NEW_PATH}/${PROFILE}
cp -a ${OLD_PATH}/${PROFILE} ${NEW_PATH}/
# replace path
echo
echo "${OLD_PATH} -> ${NEW_PATH}"
echo "--------------------------------------"
grep -rnw ${NEW_PATH} -e ${OLD_PATH}
echo
cd ${NEW_PATH}
SED_OLD_PATH=$(echo $OLD_PATH | sed 's_/_\\/_g')
SED_NEW_PATH=$(echo $NEW_PATH | sed 's_/_\\/_g')
#find ${NEW_PATH} -type f -print0 | xargs -0 sed -i "s/${SED_OLD_PATH}/${SED_NEW_PATH}/g"
find . -type f -print0 | xargs -0 sed -i "s/${SED_OLD_PATH}/${SED_NEW_PATH}/g"
find ${NEW_PATH} -type f -print0 | xargs -0 sed -i "s/${SED_OLD_PATH}/${SED_NEW_PATH}/g"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment