Added hyprland config and scripts
Some checks failed
bluebuild / Build Custom Image (recipe.yml) (push) Failing after 26s
Some checks failed
bluebuild / Build Custom Image (recipe.yml) (push) Failing after 26s
This commit is contained in:
14
files/system/usr/share/hyprland/scripts/powermenu.lua
Normal file
14
files/system/usr/share/hyprland/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