From 75d633fa87f7fffb06b698d7e8c0781b1e8b01c1 Mon Sep 17 00:00:00 2001
From: Matthew Defenderfer <mdefende@uab.edu>
Date: Thu, 6 Mar 2025 14:30:41 -0600
Subject: [PATCH] add some stuff

---
 template/config/menus/xfce-applications.menu  | 20 +++++++++
 template/config/xfce4/terminal/terminalrc     |  3 ++
 .../xfce-perchannel-xml/xfce4-panel.xml       | 44 +++++++++++++++++++
 template/script.sh.erb                        | 22 +++++-----
 4 files changed, 78 insertions(+), 11 deletions(-)
 create mode 100644 template/config/menus/xfce-applications.menu
 create mode 100644 template/config/xfce4/terminal/terminalrc
 create mode 100644 template/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

diff --git a/template/config/menus/xfce-applications.menu b/template/config/menus/xfce-applications.menu
new file mode 100644
index 0000000..2bbf6bd
--- /dev/null
+++ b/template/config/menus/xfce-applications.menu
@@ -0,0 +1,20 @@
+<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
+  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
+
+<Menu>
+    <Name>Xfce</Name>
+
+    <DefaultAppDirs/>
+    <DefaultDirectoryDirs/>
+    <DefaultMergeDirs/>
+
+    <Include>
+        <All/>
+    </Include>
+
+    <Layout>
+        <Filename>firefox.desktop</Filename>
+        <Filename>xfce4-terminal.desktop</Filename>
+        <Filename>Thunar.desktop</Filename>
+    </Layout>
+</Menu>
diff --git a/template/config/xfce4/terminal/terminalrc b/template/config/xfce4/terminal/terminalrc
new file mode 100644
index 0000000..b705be2
--- /dev/null
+++ b/template/config/xfce4/terminal/terminalrc
@@ -0,0 +1,3 @@
+[Configuration]
+CommandLoginShell=TRUE
+FontName=DejaVu Sans Mono 11
diff --git a/template/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml b/template/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
new file mode 100644
index 0000000..7ab1d6b
--- /dev/null
+++ b/template/config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<channel name="xfce4-panel" version="1.0">
+  <property name="configver" type="int" value="2"/>
+  <property name="panels" type="array">
+    <value type="int" value="1"/>
+    <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="length" type="uint" value="100"/>
+      <property name="length-adjust" type="bool" value="false"/>
+      <property name="plugin-ids" type="array">
+        <value type="int" value="1"/>
+        <value type="int" value="3"/>
+        <value type="int" value="8"/>
+        <value type="int" value="4"/>
+        <value type="int" value="5"/>
+      </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>
+    <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>
+    <property name="plugin-8" type="string" value="separator">
+      <property name="expand" type="bool" value="true"/>
+      <property name="style" type="uint" value="2"/>
+    </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>
+  </property>
+</channel>
diff --git a/template/script.sh.erb b/template/script.sh.erb
index 99c44a1..8c2016f 100755
--- a/template/script.sh.erb
+++ b/template/script.sh.erb
@@ -9,17 +9,17 @@ module reset
 # Launch Xfce Window Manager and Panel
 #
 
-# (
-#   export SEND_256_COLORS_TO_REMOTE=1
-#   export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
-#   export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
-#   export XDG_CACHE_HOME="$(mktemp -d)"
-#   set -x
-#   xfwm4 --compositor=off --daemon --sm-client-disable
-#   xsetroot -solid "#D3D3D3"
-#   xfsettingsd --sm-client-disable
-#   xfce4-panel --sm-client-disable
-# ) &
+(
+  export SEND_256_COLORS_TO_REMOTE=1
+  export XDG_CONFIG_HOME="<%= session.staged_root.join("config") %>"
+  export XDG_DATA_HOME="<%= session.staged_root.join("share") %>"
+  export XDG_CACHE_HOME="$(mktemp -d)"
+  set -x
+  xfwm4 --compositor=off --daemon --sm-client-disable
+  xsetroot -solid "#D3D3D3"
+  xfsettingsd --sm-client-disable
+  xfce4-panel --sm-client-disable
+) &
 
 #
 # Start Pycharm
-- 
GitLab