From 5338a984e9c1589370c9f73f6781bc91c035ab2b Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 28 Dec 2023 03:10:43 +0100 Subject: [PATCH] Add DE-specific lxpanel config --- user/modules.d/lxpanel/config/config | 2 + user/modules.d/lxpanel/config/panels/panel | 126 +++++++++++++++++++++ user/modules.d/lxpanel/run | 7 +- 3 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 user/modules.d/lxpanel/config/config create mode 100644 user/modules.d/lxpanel/config/panels/panel diff --git a/user/modules.d/lxpanel/config/config b/user/modules.d/lxpanel/config/config new file mode 100644 index 0000000..b72b2ca --- /dev/null +++ b/user/modules.d/lxpanel/config/config @@ -0,0 +1,2 @@ +[Command] +Logout=me.fier.de logoff diff --git a/user/modules.d/lxpanel/config/panels/panel b/user/modules.d/lxpanel/config/panels/panel new file mode 100644 index 0000000..64efa02 --- /dev/null +++ b/user/modules.d/lxpanel/config/panels/panel @@ -0,0 +1,126 @@ +# lxpanel config file. Manually editing is not recommended. +# Use preference dialog in lxpanel to adjust config when you can. + +Global { + edge=bottom + allign=left + margin=0 + widthtype=percent + width=100 + height=22 + transparent=0 + tintcolor=#000000 + alpha=220 + setdocktype=1 + setpartialstrut=1 + usefontcolor=0 + fontcolor=#ffffff + usefontsize=0 + fontsize=10 + background=0 + backgroundfile=/usr/share/lxpanel/images/background.png + iconsize=16 +} +Plugin { + type=menu + Config { + image=/home/arthur/.icons/Raleigh/generic/16/computer.png + system { + } + separator { + } + item { + command=run + } + separator { + } + item { + image=gnome-logout + command=logout + } + } +} +Plugin { + type=separator + Config { + } +} +Plugin { + type=launchbar + Config { + Button { + id=pcmanfm.desktop + } + Button { + id=chromium.desktop + } + Button { + id=geany.desktop + } + Button { + id=lxterminal.desktop + } + } +} +Plugin { + type=taskbar + expand=1 + Config { + tooltips=1 + IconsOnly=0 + AcceptSkipPager=1 + ShowIconified=1 + ShowMapped=1 + ShowAllDesks=0 + UseMouseWheel=0 + UseUrgencyHint=1 + FlatButton=0 + MaxTaskWidth=150 + spacing=1 + DisableUpscale=-1 + UseSmallerIcons=0 + } +} +Plugin { + type=separator + Config { + } +} +Plugin { + type=tray + Config { + } +} +Plugin { + type=launchbar + Config { + Button { + id=pavucontrol.desktop + } + Button { + id=connman-gtk.desktop + } + } +} +Plugin { + type=batt + Config { + } +} +Plugin { + type=dclock + Config { + ClockFmt=%R + TooltipFmt=%A %x + BoldFont=0 + IconOnly=0 + CenterText=0 + } +} +Plugin { + type=wincmd + Config { + Button1=iconify + Button2=shade + } +} diff --git a/user/modules.d/lxpanel/run b/user/modules.d/lxpanel/run index f8c41f7..b503ba3 100755 --- a/user/modules.d/lxpanel/run +++ b/user/modules.d/lxpanel/run @@ -1,2 +1,7 @@ #!/usr/bin/env bash -lxpanel & disown +mkdir -p "$HOME/.config/lxpanel" +if ! [ -L "$HOME/.config/lxpanel/me.fier.de" ]; then + ln -s "../me.fier.de/modules.d/lxpanel/config" "$HOME/.config/lxpanel/me.fier.de" +fi + +lxpanel --profile me.fier.de & disown