klt Fájlt másolni már tudok (elvileg), most egy kicsit szkriptet szeretnék megtanulni írni (a hozzáértők nyilván jelezni fogják, görcsösen).
A tipped nem volt rossz, ez egy valós veszély, léptem is rá valamit, hogy ne lebegjen állandóan a fejem felettem, hogy erről megfeledkezem, bár most nem ez történt, egy másik triviális hiba volt a sikertelenség hátterében.
A kódot hiába tettem be a szkriptbe, aztán próbáltam csak úgy magában, aztán mivel ez nem hozta a kívánt eredményt ki-bejelentkezés után sem, a fájlokat próbáltam meg kimenteni, visszamásolni, aztán az egész ~/.local és ~/.config könyvtárat kimenteni és visszamásolni. Ki-bejelentkezés után sem lett a panel egyszer sem olyan, mint szerettem volna. Még a konfigurációs fájlok törlése és ki-bejelentkezés után is maradt a teszt kedvéért szándékosan elrontott panel. A nagyjából üres (telepítés utáni alapbeállítással megegyező) állapot eléréséhez is le kellett állítani folyamatokat és úgy törölni az érintett konfigurációs fájlokat. Itt ütött éjfélt az óra, szóval alvás következett, de azért itt már sejtettem az egyik lehetséges számomra is megugorható megoldási lehetőséget.
Visszamásoltam a telepítés után elmentett lemezképet és szkript ezzel a kóddal egészült ki:
# A panel birizgálása (Whisker, időjárás, munkaterület-váltó)
cat <<_xfce4-panel.xml > $USER_HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
<?xml version="1.1" 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"/>
<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=0;y=0"/>
<property name="length" type="uint" value="100"/>
<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="4"/>
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="19"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="7"/>
<value type="int" value="8"/>
<value type="int" value="9"/>
<value type="int" value="10"/>
</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="11"/>
<value type="int" value="12"/>
<value type="int" value="13"/>
<value type="int" value="14"/>
<value type="int" value="15"/>
<value type="int" value="16"/>
<value type="int" value="17"/>
<value type="int" value="18"/>
</property>
</property>
</property>
<property name="plugins" type="empty">
<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-5" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-6" type="string" value="systray">
<property name="square-icons" type="bool" value="true"/>
<property name="known-legacy-items" type="array">
<value type="string" value="polkit-mate-authentication-agent-1"/>
<value type="string" value="ethernet network connection “wired connection 1” active"/>
</property>
</property>
<property name="plugin-7" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-8" type="string" value="clock"/>
<property name="plugin-9" type="string" value="separator">
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-10" type="string" value="actions"/>
<property name="plugin-11" type="string" value="showdesktop"/>
<property name="plugin-12" type="string" value="separator"/>
<property name="plugin-13" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17858270291.desktop"/>
</property>
</property>
<property name="plugin-14" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17858270292.desktop"/>
</property>
</property>
<property name="plugin-15" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17858270293.desktop"/>
</property>
</property>
<property name="plugin-16" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="17858270294.desktop"/>
</property>
</property>
<property name="plugin-17" type="string" value="separator"/>
<property name="plugin-18" type="string" value="directorymenu">
<property name="base-directory" type="string" value="/home/teszt"/>
</property>
<property name="plugin-4" type="string" value="whiskermenu"/>
<property name="plugin-19" type="string" value="weather"/>
</property>
</channel>
_xfce4-panel.xml
cat <<_xfwm4.xml > $USER_HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
<?xml version="1.1" encoding="UTF-8"?>
<channel name="xfwm4" version="1.0">
<property name="general" type="empty">
<property name="activate_action" type="string" value="bring"/>
<property name="borderless_maximize" type="bool" value="true"/>
<property name="box_move" type="bool" value="false"/>
<property name="box_resize" type="bool" value="false"/>
<property name="button_layout" type="string" value="O|SHMC"/>
<property name="button_offset" type="int" value="0"/>
<property name="button_spacing" type="int" value="0"/>
<property name="click_to_focus" type="bool" value="true"/>
<property name="cycle_apps_only" type="bool" value="false"/>
<property name="cycle_draw_frame" type="bool" value="true"/>
<property name="cycle_raise" type="bool" value="false"/>
<property name="cycle_hidden" type="bool" value="true"/>
<property name="cycle_minimum" type="bool" value="true"/>
<property name="cycle_minimized" type="bool" value="false"/>
<property name="cycle_preview" type="bool" value="true"/>
<property name="cycle_tabwin_mode" type="int" value="0"/>
<property name="cycle_workspaces" type="bool" value="false"/>
<property name="double_click_action" type="string" value="maximize"/>
<property name="double_click_distance" type="int" value="5"/>
<property name="double_click_time" type="int" value="250"/>
<property name="easy_click" type="string" value="Alt"/>
<property name="focus_delay" type="int" value="250"/>
<property name="focus_hint" type="bool" value="true"/>
<property name="focus_new" type="bool" value="true"/>
<property name="frame_opacity" type="int" value="100"/>
<property name="frame_border_top" type="int" value="0"/>
<property name="full_width_title" type="bool" value="true"/>
<property name="horiz_scroll_opacity" type="bool" value="false"/>
<property name="inactive_opacity" type="int" value="100"/>
<property name="maximized_offset" type="int" value="0"/>
<property name="mousewheel_rollup" type="bool" value="true"/>
<property name="move_opacity" type="int" value="100"/>
<property name="placement_mode" type="string" value="center"/>
<property name="placement_ratio" type="int" value="20"/>
<property name="popup_opacity" type="int" value="100"/>
<property name="prevent_focus_stealing" type="bool" value="false"/>
<property name="raise_delay" type="int" value="250"/>
<property name="raise_on_click" type="bool" value="true"/>
<property name="raise_on_focus" type="bool" value="false"/>
<property name="raise_with_any_button" type="bool" value="true"/>
<property name="repeat_urgent_blink" type="bool" value="false"/>
<property name="resize_opacity" type="int" value="100"/>
<property name="scroll_workspaces" type="bool" value="true"/>
<property name="shadow_delta_height" type="int" value="0"/>
<property name="shadow_delta_width" type="int" value="0"/>
<property name="shadow_delta_x" type="int" value="0"/>
<property name="shadow_delta_y" type="int" value="-3"/>
<property name="shadow_opacity" type="int" value="50"/>
<property name="show_app_icon" type="bool" value="false"/>
<property name="show_dock_shadow" type="bool" value="true"/>
<property name="show_frame_shadow" type="bool" value="true"/>
<property name="show_popup_shadow" type="bool" value="false"/>
<property name="snap_resist" type="bool" value="false"/>
<property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/>
<property name="vblank_mode" type="string" value="auto"/>
<property name="theme" type="string" value="Default"/>
<property name="tile_on_move" type="bool" value="true"/>
<property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 9"/>
<property name="title_horizontal_offset" type="int" value="0"/>
<property name="titleless_maximize" type="bool" value="false"/>
<property name="title_shadow_active" type="string" value="false"/>
<property name="title_shadow_inactive" type="string" value="false"/>
<property name="title_vertical_offset_active" type="int" value="0"/>
<property name="title_vertical_offset_inactive" type="int" value="0"/>
<property name="toggle_workspaces" type="bool" value="false"/>
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="true"/>
<property name="workspace_count" type="int" value="1"/>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="wrap_layout" type="bool" value="true"/>
<property name="wrap_resistance" type="int" value="10"/>
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
<property name="zoom_pointer" type="bool" value="true"/>
<property name="workspace_names" type="array">
<value type="string" value="Workspace 1"/>
<value type="string" value="Workspace 2"/>
<value type="string" value="Workspace 3"/>
<value type="string" value="Workspace 4"/>
</property>
</property>
</channel>
_xfwm4.xml
Illetve meguntam, hogy minden felhasználói állományt, amit piszkáltam egyesével visszaadjak a felhasználó tulajdonába, úgyhogy a jopap.sh végén most van egy ilyen.
chown -R $TARGET_USER:$TARGET_USER $USER_HOME
Ráengedtem az eddig összeeszkábált szkriptet a rendszerre, gyorsan és problémamentesen lefutott.
Csináltam (egyelőre még kézzel) egy újraindítást. Ezzel a futó folyamatok elég jól megszakadtak és bejelentkezés után a személyemre szabott panel fogadott.
Ha állítanék be helyet (várost) is az időjárás-kisalkamázás számára, akkor biztos változna még valamilyen fájl is, de azzal most nem terhelném a közt, így jó lehet ez minden hasonló cipőt viselőnek, pont ilyen panelt óhajtónak ez a rész.