分页: 1 / 1

elementaryos 移动时间到面板右边/move clock to right elementary os

发表于 : 2020-10-13, 10:21
admin
下载最新版源码 https://github.com/elementary/wingpanel/releases 解压并进入

打开src/Widgets/Panel.vala, 替换

代码: 全选

center_menubar.add (indicator_entry);

代码: 全选

right_menubar.insert_sorted (indicator_entry);
打开 src/Services/IndicatorSorter.vala, 添加

代码: 全选

 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
最后是编译所需依赖
libgala-dev
libgee-0.8-dev
libglib2.0-dev
libgranite-dev
libgtk-3-dev
meson
libmutter-2-dev
valacc
elementaryOS 6应该还要libmutter-6-dev

图片