Skip to content

Commit

Permalink
Merge pull request #3 from nesi/noscreensaver
Browse files Browse the repository at this point in the history
update vnc image to v0.2.0; change default panel config
  • Loading branch information
chrisdjscott authored Aug 21, 2024
2 parents da55d57 + c40d5d9 commit e0df04d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 22 deletions.
2 changes: 1 addition & 1 deletion submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script:
native:
container:
name: "virtualdesktop"
image: "ghcr.io/nesi/nesi-ondemand-vnc:v0.1.0"
image: "ghcr.io/nesi/nesi-ondemand-vnc:v0.2.0"
command: ["/bin/bash","-l","<%= staged_root %>/custom_job_script.sh"]
restart_policy: 'OnFailure'
env:
Expand Down
83 changes: 63 additions & 20 deletions template/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,84 @@
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<value type="int" value="2"/>
<property name="dark-mode" type="bool" value="true"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=6;x=99;y=24"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="48"/>
<property name="position" type="string" value="p=6;x=0;y=0"/>
<property name="length" type="uint" value="100"/>
<property name="length-adjust" type="bool" value="false"/>
<property name="position-locked" type="bool" value="true"/>
<property name="icon-size" type="uint" value="16"/>
<property name="size" type="uint" value="26"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="8"/>
<value type="int" value="4"/>
<value type="int" value="5"/>
<value type="int" value="12"/>
<value type="int" value="13"/>
</property>
</property>
<property name="panel-2" type="empty">
<property name="autohide-behavior" type="uint" value="1"/>
<property name="position" type="string" value="p=10;x=0;y=0"/>
<property name="length" type="uint" value="1"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="48"/>
<property name="plugin-ids" type="array">
<value type="int" value="15"/>
<value type="int" value="16"/>
<value type="int" value="17"/>
<value type="int" value="18"/>
<value type="int" value="19"/>
<value type="int" value="20"/>
<value type="int" value="21"/>
<value type="int" value="22"/>
</property>
<property name="mode" type="uint" value="0"/>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-3" type="string" value="tasklist">
<property name="flat-buttons" type="bool" value="false"/>
<property name="show-handle" type="bool" value="true"/>
<property name="plugin-1" type="string" value="applicationsmenu"/>
<property name="plugin-2" type="string" value="tasklist">
<property name="grouping" type="uint" value="1"/>
</property>
<property name="plugin-3" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-4" type="string" value="pager"/>
<property name="plugin-5" type="string" value="clock">
<property name="digital-format" type="string" value="%r"/>
<property name="mode" type="uint" value="2"/>
<property name="plugin-5" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-8" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="2"/>
<property name="plugin-12" type="string" value="clock"/>
<property name="plugin-13" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-15" type="string" value="showdesktop"/>
<property name="plugin-16" type="string" value="separator"/>
<property name="plugin-17" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17242088061.desktop"/>
</property>
</property>
<property name="plugin-18" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17242088062.desktop"/>
</property>
</property>
<property name="plugin-19" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17242088063.desktop"/>
</property>
</property>
<property name="plugin-20" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17242088064.desktop"/>
</property>
</property>
<property name="plugin-1" type="string" value="applicationsmenu">
<property name="show-generic-names" type="bool" value="true"/>
<property name="show-menu-icons" type="bool" value="true"/>
<property name="button-icon" type="string" value="fedora-logo-icon"/>
<property name="show-tooltips" type="bool" value="true"/>
<property name="plugin-21" type="string" value="separator"/>
<property name="plugin-22" type="string" value="directorymenu">
<property name="base-directory" type="string" value="/nesi/home/csco212"/>
</property>
</property>
</channel>
2 changes: 1 addition & 1 deletion template/desktops/xfce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi
PANEL_CONFIG="${HOME}/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml"
if [[ ! -e "${PANEL_CONFIG}" ]]; then
mkdir -p "$(dirname "${PANEL_CONFIG}")"
cp "/etc/xdg/xfce4/panel/default.xml" "${PANEL_CONFIG}"
cp "${SESSION_DIR}/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml" "${PANEL_CONFIG}"
fi

# Disable startup services
Expand Down

0 comments on commit e0df04d

Please sign in to comment.