did a load of stuff for no reason
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
-- ~/.config/hypr/autoload.lua
|
-- ~/.config/hypr/autoload.lua
|
||||||
|
|
||||||
|
-- Path to search
|
||||||
local modules = os.getenv("HOME") .. "/.config/hypr/modules"
|
local modules = os.getenv("HOME") .. "/.config/hypr/modules"
|
||||||
|
|
||||||
|
-- Get all files in modules dir
|
||||||
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
|
local p = io.popen('find -L "' .. modules .. '" -name "*.lua" -type f | sort')
|
||||||
if not p then
|
if not p then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Recursively search and return modules
|
||||||
for path in p:lines() do
|
for path in p:lines() do
|
||||||
local ok, err = pcall(dofile, path)
|
local ok, err = pcall(dofile, path)
|
||||||
if not ok then
|
if not ok then
|
||||||
|
|||||||
56
hyprland.lua
56
hyprland.lua
@@ -15,62 +15,6 @@ end
|
|||||||
|
|
||||||
require("autoload")
|
require("autoload")
|
||||||
|
|
||||||
-- This is an example Hyprland Lua config file.
|
|
||||||
-- Refer to the wiki for more information.
|
|
||||||
-- https://wiki.hypr.land/Configuring/Start/
|
|
||||||
|
|
||||||
-- Please note not all available settings / options are set here.
|
|
||||||
-- For a full list, see the wiki
|
|
||||||
|
|
||||||
-- You can (and should!!) split this configuration into multiple files
|
|
||||||
-- Create your files separately and then require them like this:
|
|
||||||
-- require("myColors")
|
|
||||||
|
|
||||||
------------------
|
|
||||||
---- MONITORS ----
|
|
||||||
------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Monitors/
|
|
||||||
hl.monitor({
|
|
||||||
output = "",
|
|
||||||
mode = "preferred",
|
|
||||||
position = "auto",
|
|
||||||
scale = "auto",
|
|
||||||
})
|
|
||||||
|
|
||||||
---------------------
|
|
||||||
---- MY PROGRAMS ----
|
|
||||||
---------------------
|
|
||||||
|
|
||||||
-- Set programs that you use
|
|
||||||
local terminal = "kitty"
|
|
||||||
local fileManager = "dolphin"
|
|
||||||
local menu = "hyprlauncher"
|
|
||||||
|
|
||||||
-------------------
|
|
||||||
---- AUTOSTART ----
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
|
|
||||||
|
|
||||||
-- Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
-- Or execute your favorite apps at launch like this:
|
|
||||||
--
|
|
||||||
-- hl.on("hyprland.start", function ()
|
|
||||||
-- hl.exec_cmd(terminal)
|
|
||||||
-- hl.exec_cmd("nm-applet")
|
|
||||||
-- hl.exec_cmd("waybar & hyprpaper & firefox")
|
|
||||||
-- end)
|
|
||||||
|
|
||||||
-------------------------------
|
|
||||||
---- ENVIRONMENT VARIABLES ----
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
-- See https://wiki.hypr.land/Configuring/Advanced-and-Cool/Environment-variables/
|
|
||||||
|
|
||||||
hl.env("XCURSOR_SIZE", "24")
|
|
||||||
hl.env("HYPRCURSOR_SIZE", "24")
|
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
----- PERMISSIONS -----
|
----- PERMISSIONS -----
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|||||||
10
modules/.luarc.json
Normal file
10
modules/.luarc.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"workspace": {
|
||||||
|
"library": [
|
||||||
|
"/nix/store/k1jc5h9ls6j600hcpjciqn0s29whas63-hyprland-0.55.0+date=2026-05-11_5e441ca/share/hypr/stubs/hl.meta.lua"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"diagnostics": {
|
||||||
|
"globals": ["hl"]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,25 +1,42 @@
|
|||||||
|
-- Set modifier keys
|
||||||
local mainMod = "SUPER + "
|
local mainMod = "SUPER + "
|
||||||
local subMod = mainMod
|
local subMod = mainMod
|
||||||
local keyboardString = "qwertyuiop"
|
local keyboardString = "qwertyuiop"
|
||||||
|
local keybindIndex = 1
|
||||||
|
|
||||||
|
-- Set different modifiers on laptop
|
||||||
if Hostname == "mobile02" then
|
if Hostname == "mobile02" then
|
||||||
mainMod = "ALT + "
|
mainMod = "ALT + "
|
||||||
subMod = "SUPER + "
|
subMod = "SUPER + "
|
||||||
keyboardString = "1234567890"
|
keyboardString = "1234567890"
|
||||||
|
keybindIndex = 2
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Delete windows
|
-- Delete windows
|
||||||
hl.bind(mainMod .. " + backspace", hl.dsp.window.close())
|
hl.bind(mainMod .. " + backspace", hl.dsp.window.close())
|
||||||
|
|
||||||
|
hl.bind(mainMod .. "d", function()
|
||||||
|
hl.notification.create({ text = tostring(hl.get_windows({ class = "otter" })[1]), timeout = 3000, icon = "ok" })
|
||||||
|
if hl.get_windows({ class = "otter" })[1] ~= nil then
|
||||||
|
hl.dsp.focus({ window = { class = "otter" } })
|
||||||
|
else
|
||||||
|
hl.exec_cmd("kitty --class otter --title otter-launcher -e sh -c 'sleep 0.05 && otter-launcher'")
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
-- Open windows
|
-- Open windows
|
||||||
local globalAppBinds = {
|
local globalAppBinds = {
|
||||||
{ key = "RETURN", dispatch = "kitty" },
|
{ key = { "RETURN" }, dispatch = "kitty" },
|
||||||
{ key = "f", dispatch = "firefox" },
|
{ key = { "f", "o" }, dispatch = "firefox" },
|
||||||
{ key = "s", dispatch = "nemo" },
|
{ key = { "s" }, dispatch = "nemo" },
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, bind in ipairs(globalAppBinds) do
|
for _, bind in ipairs(globalAppBinds) do
|
||||||
hl.bind(mainMod .. bind.key, hl.dsp.exec_cmd(bind.dispatch))
|
if bind.key[keybindIndex] then
|
||||||
|
hl.bind(mainMod .. bind.key[keybindIndex], hl.dsp.exec_cmd(bind.dispatch))
|
||||||
|
else
|
||||||
|
hl.bind(mainMod .. bind.key[1], hl.dsp.exec_cmd(bind.dispatch))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Workspace functions
|
-- Workspace functions
|
||||||
|
|||||||
10
modules/settings/.luarc.json
Normal file
10
modules/settings/.luarc.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"workspace": {
|
||||||
|
"library": [
|
||||||
|
"/nix/store/k1jc5h9ls6j600hcpjciqn0s29whas63-hyprland-0.55.0+date=2026-05-11_5e441ca/share/hypr/stubs/hl.meta.lua"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"diagnostics": {
|
||||||
|
"globals": ["hl"]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
|
-- Import catppuccin colors
|
||||||
local ctp = require("modules.mocha")
|
local ctp = require("modules.mocha")
|
||||||
hl.config({
|
hl.config({
|
||||||
|
|
||||||
|
-- gaps and colors
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 3,
|
gaps_in = 3,
|
||||||
resize_on_border = true,
|
resize_on_border = true,
|
||||||
@@ -17,6 +20,17 @@ hl.config({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Scrolling layout settings
|
||||||
|
scrolling = {
|
||||||
|
column_width = 0.8,
|
||||||
|
follow_min_visible = 0.1,
|
||||||
|
focus_fit_method = 0,
|
||||||
|
wrap_focus = false,
|
||||||
|
wrap_swapcol = false,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Window appearence
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = 10,
|
rounding = 10,
|
||||||
rounding_power = 2,
|
rounding_power = 2,
|
||||||
@@ -34,4 +48,13 @@ hl.config({
|
|||||||
vibrancy = 0.5,
|
vibrancy = 0.5,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Remove irritants
|
||||||
|
ecosystem = {
|
||||||
|
no_update_news = true,
|
||||||
|
no_donation_nag = true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
hl.env("XCURSOR_SIZE", "20")
|
||||||
|
hl.env("HYPRCURSOR_SIZE", "20")
|
||||||
|
|||||||
Reference in New Issue
Block a user