noctalia depend on env variable
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
shell = "noctalia",
|
||||||
|
-- shell = "cealestia"
|
||||||
|
}
|
||||||
|
|||||||
@@ -28,15 +28,13 @@ hl.config({
|
|||||||
-- ## MY PROGRAMS ###
|
-- ## MY PROGRAMS ###
|
||||||
-- ##################
|
-- ##################
|
||||||
|
|
||||||
|
local env = require("env")
|
||||||
|
|
||||||
hl.on("hyprland.start", function()
|
hl.on("hyprland.start", function()
|
||||||
|
if env.shell == "noctalia" then
|
||||||
hl.exec_cmd("noctalia &")
|
hl.exec_cmd("noctalia &")
|
||||||
end)
|
end
|
||||||
|
|
||||||
hl.on("hyprland.start", function()
|
|
||||||
hl.exec_cmd("hypridle &")
|
hl.exec_cmd("hypridle &")
|
||||||
end)
|
|
||||||
|
|
||||||
hl.on("hyprland.start", function()
|
|
||||||
hl.exec_cmd("sh ~/.config/hypr/scripts/portal-host-override.sh")
|
hl.exec_cmd("sh ~/.config/hypr/scripts/portal-host-override.sh")
|
||||||
hl.exec_cmd("sh ~/.config/hypr/scripts/ensure-mime-defaults.sh")
|
hl.exec_cmd("sh ~/.config/hypr/scripts/ensure-mime-defaults.sh")
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -1,13 +1,48 @@
|
|||||||
return {
|
|
||||||
session = "noctalia msg panel-toggle session",
|
local env = require("env")
|
||||||
logout = "command -v noctalia >/dev/null 2>&1 && noctalia msg session logout || hyprctl dispatch exit",
|
|
||||||
shutdown = "noctalia msg session shutdown",
|
local commands = {
|
||||||
reboot = "noctalia msg session reboot",
|
session = "",
|
||||||
menu = "noctalia msg panel-toggle launcher",
|
logout = "",
|
||||||
settings = "noctalia msg settings-toggle",
|
shutdown = "",
|
||||||
control_center = "noctalia msg panel-toggle control-center",
|
reboot = "",
|
||||||
lock = "noctalia msg session lock",
|
menu = "",
|
||||||
|
settings = "",
|
||||||
|
control_center = "",
|
||||||
|
lock = "",
|
||||||
screensaver = "sh ~/.config/hypr/scripts/screensaver-start.sh force",
|
screensaver = "sh ~/.config/hypr/scripts/screensaver-start.sh force",
|
||||||
wallpaper_select = "noctalia msg panel-toggle wallpaper",
|
wallpaper_select = "",
|
||||||
keybinds_show = "sh ~/.config/hypr/scripts/show-keybinds.sh",
|
keybinds_show = "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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.lock = "noctalia msg session lock"
|
||||||
|
commands.wallpaper_select = "noctalia msg panel-toggle wallpaper"
|
||||||
|
commands.keybinds_show = "sh ~/.config/hypr/scripts/show-keybinds.sh"
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
return commands
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- return {
|
||||||
|
-- session = "noctalia msg panel-toggle session",
|
||||||
|
-- logout = "command -v noctalia >/dev/null 2>&1 && noctalia msg session logout || hyprctl dispatch exit",
|
||||||
|
-- shutdown = "noctalia msg session shutdown",
|
||||||
|
-- reboot = "noctalia msg session reboot",
|
||||||
|
-- menu = "noctalia msg panel-toggle launcher",
|
||||||
|
-- settings = "noctalia msg settings-toggle",
|
||||||
|
-- control_center = "noctalia msg panel-toggle control-center",
|
||||||
|
-- lock = "noctalia msg session lock",
|
||||||
|
-- screensaver = "sh ~/.config/hypr/scripts/screensaver-start.sh force",
|
||||||
|
-- wallpaper_select = "noctalia msg panel-toggle wallpaper",
|
||||||
|
-- keybinds_show = "sh ~/.config/hypr/scripts/show-keybinds.sh",
|
||||||
|
-- }
|
||||||
|
|||||||
Reference in New Issue
Block a user