elementaryos 移动时间到面板右边/move clock to right elementary os
发表于 : 2020-10-13, 10:21
下载最新版源码 https://github.com/elementary/wingpanel/releases 解压并进入
打开src/Widgets/Panel.vala, 替换 为
打开 src/Services/IndicatorSorter.vala, 添加
修改 为
运行命令
最后是编译所需依赖
打开src/Widgets/Panel.vala, 替换
代码: 全选
center_menubar.add (indicator_entry);
代码: 全选
right_menubar.insert_sorted (indicator_entry);
代码: 全选
indicator_order[Indicator.DATETIME] = 10;
修改
代码: 全选
indicator_order[Indicator.SESSION] = 10;
代码: 全选
indicator_order[Indicator.SESSION] = 11;
代码: 全选
meson build --prefix=/usr
cd build
ninja
sudo ninja install
killall wingpanel
elementaryOS 6应该还要libmutter-6-devlibgala-dev
libgee-0.8-dev
libglib2.0-dev
libgranite-dev
libgtk-3-dev
meson
libmutter-2-dev
valacc