53 lines
1.8 KiB
Lua
53 lines
1.8 KiB
Lua
local env = require("env")
|
|
|
|
local commands = {
|
|
session = "",
|
|
logout = "",
|
|
shutdown = "",
|
|
reboot = "",
|
|
menu = "",
|
|
settings = "",
|
|
control_center = "",
|
|
lock = "",
|
|
wallpaper_select = "",
|
|
keybinds_show = "sh ~/.config/hypr/scripts/show-keybinds.sh",
|
|
clipboard = "",
|
|
clipboard_delete = "",
|
|
emoji = "",
|
|
show_all = "",
|
|
clear_notifications = "",
|
|
}
|
|
|
|
-- Noctalia
|
|
if env.shell == "noctalia" then
|
|
commands.session = "noctalia msg panel-toggle session"
|
|
commands.logout = "command -v noctalia >/dev/null 2>&1 && noctalia msg session logout || hyprctl dispatch exit"
|
|
commands.shutdown = "noctalia msg session shutdown"
|
|
commands.reboot = "noctalia msg session reboot"
|
|
commands.menu = "noctalia msg panel-toggle launcher"
|
|
commands.settings = "noctalia msg settings-toggle"
|
|
commands.control_center = "noctalia msg panel-toggle control-center"
|
|
commands.wallpaper_select = "noctalia msg panel-toggle wallpaper"
|
|
commands.lock = "noctalia msg session lock"
|
|
commands.emoji = "noctalia msg panel-toggle launcher '/emo '"
|
|
|
|
-- Caelesia
|
|
elseif env.shell == "caelestia" then
|
|
commands.session = "caelestia shell drawers toggle session"
|
|
commands.logout = "hyprctl dispatch exit"
|
|
commands.shutdown = "systemctl poweroff"
|
|
commands.reboot = "systemctl reboot"
|
|
commands.menu = "caelestia shell drawers toggle launcher"
|
|
commands.settings = "caelestia shell drawers toggle dashboard"
|
|
commands.control_center = "caelestia shell drawers toggle sidebar"
|
|
commands.wallpaper_select = 'caelestia shell drawers toggle launcher && sleep 0.1 && wtype ">wallpaper "'
|
|
commands.clipboard = "caelestia clipboard"
|
|
commands.clipboard_delete = "caelestia clipboard -d"
|
|
commands.emoji = "caelestia emoji -p"
|
|
commands.show_all = "caelestia shell drawers toggle utilities"
|
|
commands.clear_notifications = "caelestia shell notifs clear"
|
|
commands.lock = "caelestia shell lock lock"
|
|
end
|
|
|
|
return commands
|