Skip to content

Commit b7f7755

Browse files
zeeraynekRHYME7
andauthored
feat: add reboot to UEFI to waybar power menu (#845)
* feat: add `reboot to UEFI` to waybar power menu * fix: typo in `reboot` * fix: proper shutdown command --------- Co-authored-by: Khing <53417443+kRHYME7@users.noreply.github.com>
1 parent 735dcc2 commit b7f7755

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

Configs/.local/share/waybar/menus/power.xml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
<child type="submenu">
3333
<object class="GtkMenu">
3434
<child>
35-
<object class="GtkMenuItem" id="shutdown_now">
36-
<property name="label">Suspend Now</property>
35+
<object class="GtkMenuItem" id="shutdown-now">
36+
<property name="label">Shutdown Now</property>
3737
</object>
3838
</child>
3939
<child>
40-
<object class="GtkMenuItem" id="shutdown_wait">
40+
<object class="GtkMenuItem" id="shutdown-wait">
4141
<property name="label">Shutdown (wait)</property>
4242
</object>
4343
</child>
@@ -50,8 +50,23 @@
5050

5151

5252
<child>
53-
<object class="GtkMenuItem" id="reboot">
53+
<object class="GtkMenuItem" id="reboot_sub">
5454
<property name="label">Reboot</property>
55+
56+
<child type="submenu">
57+
<object class="GtkMenu">
58+
<child>
59+
<object class="GtkMenuItem" id="reboot-now">
60+
<property name="label">Reboot</property>
61+
</object>
62+
</child>
63+
<child>
64+
<object class="GtkMenuItem" id="reboot-firmware">
65+
<property name="label">Reboot to UEFI</property>
66+
</object>
67+
</child>
68+
</object>
69+
</child>
5570
</object>
5671
</child>
5772

Configs/.local/share/waybar/modules/custom-power.jsonc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"menu": "on-click-right",
88
"menu-file": "${HYDE_WAYBAR_MENU_DIR:-$XDG_DATA_HOME/waybar/menus}/power.xml",
99
"menu-actions": {
10-
"shutdown-now": "systemctl shutdown now",
10+
"shutdown-now": "shutdown now",
1111
"shutdown-wait": "systemctl poweroff",
12-
"reboot": "reboot",
12+
"reboot-now": "systemctl reboot",
13+
"reboot-firmware": "systemctl reboot --firmware-setup",
1314
"suspend": "systemctl suspend",
1415
"hibernate": "systemctl hibernate"
1516
},

Configs/.local/share/waybar/modules/custom-powermenu.jsonc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"menu": "on-click-right",
66
"menu-file": "${HYDE_WAYBAR_MENU_DIR:-$XDG_DATA_HOME/waybar/menus}/power.xml",
77
"menu-actions": {
8-
"shutdown": "shutdown",
9-
"reboot": "reboot",
8+
"shutdown-now": "shutdown now",
9+
"shutdown-wait": "systemctl poweroff",
10+
"reboot-now": "systemctl reboot",
11+
"reboot-firmware": "systemctl reboot --firmware-setup",
1012
"suspend": "systemctl suspend",
1113
"hibernate": "systemctl hibernate"
1214
},

0 commit comments

Comments
 (0)