【树莓派】:桌面系统最上方菜单栏误删,添加panel配置文件重新生成 | 您所在的位置:网站首页 › 树莓派桌面没有任务栏 › 【树莓派】:桌面系统最上方菜单栏误删,添加panel配置文件重新生成 |
【问题描述】 今天误操作导致VNC连接的树莓派桌面上方的菜单栏丢失,网上都是如下操作: #(后面-pi为用户名 如果没有改过用户名就不管他) 删除配置文件 $ rm -rf ~/.config/lxpanel/LXDE-pi #重启 $ sudo reboot试了一下根本没用 【解决方案】 在/home/pi/.config/lxpanel/LXDE-pi/panels目录下新建名为panel.txt文件: (.config是隐藏文件需要打开隐藏文件显示) panel.txt # lxpanel config file. Manually editing is not recommended. # Use preference dialog in lxpanel to adjust config when you can. Global { edge=top align=left margin=0 widthtype=percent width=100 height=36 transparent=0 tintcolor=#000000 alpha=0 autohide=0 heightwhenhidden=2 setdocktype=1 setpartialstrut=1 usefontcolor=0 fontsize=12 fontcolor=#ffffff usefontsize=0 background=0 backgroundfile=/usr/share/lxpanel/images/background.png iconsize=36 monitor=0 point_at_menu=0 } Plugin { type=menu Config { padding=4 image=start-here system { } separator { } item { image=system-run command=run } separator { } item { image=system-shutdown command=logout } } } Plugin { type=space Config { Size=4 } } Plugin { type=launchbar Config { Button { id=lxde-x-www-browser.desktop } Button { id=pcmanfm.desktop } Button { id=lxterminal.desktop } } } Plugin { type=space Config { Size=8 } } Plugin { type=taskbar expand=1 Config { tooltips=1 IconsOnly=0 ShowAllDesks=0 UseMouseWheel=1 UseUrgencyHint=1 FlatButton=0 MaxTaskWidth=200 spacing=1 GroupedTasks=0 } } Plugin { type=space Config { Size=2 } } Plugin { type=tray Config { } } Plugin { type=ejecter Config { AutoHide=1 } } Plugin { type=space Config { Size=2 } } Plugin { type=bluetooth Config { } } Plugin { type=space Config { Size=2 } } Plugin { type=dhcpcdui Config { } } Plugin { type=space Config { Size=2 } } Plugin { type=volumealsabt Config { } } Plugin { type=space Config { Size=2 } } Plugin { type=dclock Config { ClockFmt=%R TooltipFmt=%A %x BoldFont=0 IconOnly=0 CenterText=1 } } Plugin { type=space Config { Size=2 } } Plugin { type=ptbatt Config { } } Plugin { type=space Config { Size=2 } } Plugin { type=magnifier Config { } } Plugin { type=ejecter Config { } } Plugin { type=cpufreq Config { } } Plugin { type=cpu Config { } } Plugin { type=cputemp Config { } } Plugin { type=bluetooth Config { } } Plugin { type=netstatus Config { } }重启设备,一键搞定: 字体图标大小都可以通过参数配置实现修改 |
CopyRight 2018-2019 实验室设备网 版权所有 |