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 ###
|
||||
-- ##################
|
||||
|
||||
local env = require("env")
|
||||
|
||||
hl.on("hyprland.start", function()
|
||||
if env.shell == "noctalia" then
|
||||
hl.exec_cmd("noctalia &")
|
||||
end)
|
||||
|
||||
hl.on("hyprland.start", function()
|
||||
end
|
||||
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/ensure-mime-defaults.sh")
|
||||
end)
|
||||
|
||||
@@ -1,13 +1,48 @@
|
||||
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",
|
||||
|
||||
local env = require("env")
|
||||
|
||||
local commands = {
|
||||
session = "",
|
||||
logout = "",
|
||||
shutdown = "",
|
||||
reboot = "",
|
||||
menu = "",
|
||||
settings = "",
|
||||
control_center = "",
|
||||
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",
|
||||
wallpaper_select = "",
|
||||
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