forked from Shinonome/dots-hyprland
hl: make custom stuff optional
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
require("hyprland.lib")
|
||||
require("hyprland.variables")
|
||||
require("custom.variables")
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/variables.lua") then
|
||||
require("custom.variables")
|
||||
end
|
||||
if is_file_exists(HOME .. "/.config/hypr/custom/keybinds.lua") then
|
||||
require("custom.keybinds")
|
||||
end
|
||||
|
||||
local qsScripts = "$HOME/.config/quickshell/$qsConfig/scripts"
|
||||
local hyprScripts = "$HOME/.config/hypr/hyprland/scripts"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
HOME = os.getenv("HOME")
|
||||
|
||||
function is_file_exists(name)
|
||||
local f = io.open(name, "r")
|
||||
if f ~= nil then
|
||||
|
||||
@@ -23,7 +23,7 @@ hl.on("hyprland.start", function()
|
||||
end
|
||||
|
||||
if createdFiles > 0 then
|
||||
hl.exec_cmd("notify-send 'Hyprland config' 'Created " .. createdFiles .. " custom Hyprland config files in " .. baseCustomDir .. "' -a 'Hyprland'")
|
||||
hl.exec_cmd("hyprctl reload")
|
||||
-- hl.exec_cmd("notify-send 'Hyprland config' 'Created " .. createdFiles .. " custom Hyprland config files in " .. baseCustomDir .. "' -a 'Hyprland'")
|
||||
-- hl.exec_cmd("hyprctl reload")
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user