Renamed hyprland folder in /usr/share to hypr to override default hyprland configs
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 57s
All checks were successful
bluebuild / Build Custom Image (recipe.yml) (push) Successful in 57s
This commit is contained in:
14
files/system/usr/share/hypr/scripts/powermenu.lua
Normal file
14
files/system/usr/share/hypr/scripts/powermenu.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env lua
|
||||
local menu = require("menu")
|
||||
local executable = {
|
||||
["Shutdown"] = "/usr/share/hyprland/scripts/hypr_power/hypr_shutdown",
|
||||
["Reboot"] = "/usr/share/hyprland/scripts/hypr_power/hypr_reboot",
|
||||
["Log out"] = "/usr/share/hyprland/scripts/hypr_power/hypr_logout",
|
||||
["Cancel"] = "",
|
||||
}
|
||||
|
||||
local options = { "Shutdown", "Reboot", "Log out", "Cancel" }
|
||||
|
||||
local s = menu:bring_menu("Power menu", options)
|
||||
|
||||
os.execute(executable[s])
|
Reference in New Issue
Block a user