blob: fb7bb0df70ad5277b96cb4bee4302a73fbc96fcd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
-- ==================================================
-- KoolDots (2026)
-- Project URL: https://github.com/LinuxBeginnings
-- License: GNU GPLv3
-- SPDX-License-Identifier: GPL-3.0-or-later
-- ==================================================
-- Converted from config/hypr/UserConfigs/01-UserDefaults.conf (active values only).
KOOLDOTS_DEFAULTS = KOOLDOTS_DEFAULTS or {}
local editor = os.getenv("EDITOR")
if editor == nil or editor == "" then
editor = "nano"
end
local visual = os.getenv("VISUAL")
if visual == nil then
visual = ""
end
KOOLDOTS_DEFAULTS.edit = editor
KOOLDOTS_DEFAULTS.visual = visual
KOOLDOTS_DEFAULTS.term = "kitty"
KOOLDOTS_DEFAULTS.files = "thunar"
KOOLDOTS_DEFAULTS.search_engine = "https://www.google.com/search?q={}"
-- Optional user overrides live outside the pristine lua/ source tree.
do
local configHome = os.getenv("XDG_CONFIG_HOME") or ((os.getenv("HOME") or "") .. "/.config")
local userDefaults = configHome .. "/hypr/UserConfigs/user_defaults.lua"
local ok, err = pcall(dofile, userDefaults)
if not ok and err and tostring(err):find("No such file or directory", 1, true) == nil then
print("[WARN] Unable to load user defaults file " .. userDefaults .. ": " .. tostring(err))
end
end
|