Compare commits
14
Commits
4bbae7a78c
...
0.56.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
666ad77a02 | ||
|
|
fade16974b | ||
|
|
deed6d81bc | ||
|
|
75ce12490b | ||
|
|
c0201ea4e7 | ||
|
|
320ad9df0f | ||
|
|
b1534e45c4 | ||
|
|
626a0fd769 | ||
|
|
e8594c54ef | ||
|
|
38fd195673 | ||
|
|
dc123bba33 | ||
|
|
f00c8affc4 | ||
|
|
e298b55cb7 | ||
|
|
a0b22453eb |
@@ -0,0 +1,8 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
insert_file_newline=true
|
||||||
|
|
||||||
|
[*.lua]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
general {
|
||||||
|
ignore_dbus_inhibit = false
|
||||||
|
}
|
||||||
|
|
||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
|
}
|
||||||
|
|
||||||
|
# dpms
|
||||||
|
listener {
|
||||||
|
timeout = 660
|
||||||
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
|
||||||
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
|
||||||
|
}
|
||||||
|
|
||||||
+2
-5
@@ -30,12 +30,9 @@ listener {
|
|||||||
|
|
||||||
# dpms
|
# dpms
|
||||||
listener {
|
listener {
|
||||||
# DPMS TIMEOUT
|
|
||||||
timeout = 660
|
timeout = 660
|
||||||
# DPMS ONTIMEOUT
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
|
||||||
on-timeout = hyprctl dispatch dpms off
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
|
||||||
# DPMS ONRESUME
|
|
||||||
on-resume = hyprctl dispatch dpms on
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Suspend
|
# Suspend
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ M.curves = {
|
|||||||
curve = {
|
curve = {
|
||||||
type = "spring",
|
type = "spring",
|
||||||
mass = 1,
|
mass = 1,
|
||||||
stiffness = 50,
|
stiffness = 500,
|
||||||
dampening = 8,
|
dampening = 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,21 @@
|
|||||||
local settings = require("lua.lib.settings")
|
local settings = require("lua.lib.settings")
|
||||||
|
local events = require("lua.lib.events")
|
||||||
|
local utils = require("lua.lib.utils")
|
||||||
|
local M = {}
|
||||||
|
|
||||||
|
M.autostart = {}
|
||||||
|
|
||||||
|
-- for openRC system
|
||||||
|
if settings["hostname"] == "optiplex-gentoo" and not settings["systemd"] then
|
||||||
|
M.autostart = {
|
||||||
|
function()
|
||||||
|
hl.exec_cmd("gentoo-pipewire-launcher")
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
function M:load()
|
||||||
|
events.map("hyprland.start", self.autostart)
|
||||||
|
end
|
||||||
|
|
||||||
|
return utils.extend_config(M, "lua.user.conf.autostart")
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
local utils = require("lua.lib.utils")
|
local utils = require("lua.lib.utils")
|
||||||
|
local settings = require("lua.lib.settings")
|
||||||
require("lua.lib.globals")
|
require("lua.lib.globals")
|
||||||
|
|
||||||
M.cursor = "Vimix-Hyprcursor"
|
M.cursor = "Vimix-Hyprcursor"
|
||||||
M.size = 32
|
M.size = 32
|
||||||
|
if settings["profile"] == "laptop" then
|
||||||
|
M.size = 36
|
||||||
|
end
|
||||||
|
|
||||||
function M.fetch_Vimix_hyprcursor()
|
function M.fetch_Vimix_hyprcursor()
|
||||||
if M.cursor == "Vimix-Hyprcursor" then
|
if M.cursor == "Vimix-Hyprcursor" then
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ M.confs = {
|
|||||||
enabled = true,
|
enabled = true,
|
||||||
range = 15,
|
range = 15,
|
||||||
render_power = 2,
|
render_power = 2,
|
||||||
color = 0xbb000000,
|
color = colorscheme.crust.."bb",
|
||||||
offset = { 1, 1 },
|
offset = { 1, 1 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ require("lua.conf.layout").load()
|
|||||||
require("lua.conf.misc").load()
|
require("lua.conf.misc").load()
|
||||||
require("lua.conf.windowrules").load()
|
require("lua.conf.windowrules").load()
|
||||||
require("lua.conf.layerrules").load()
|
require("lua.conf.layerrules").load()
|
||||||
|
require("lua.conf.autostart"):load()
|
||||||
|
|
||||||
require("lua.binds").load()
|
require("lua.binds").load()
|
||||||
require("lua.modules").load()
|
require("lua.modules").load()
|
||||||
|
|||||||
@@ -9,6 +9,15 @@ M.layer_rules = {
|
|||||||
blur = true,
|
blur = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "hibiki",
|
||||||
|
match = {
|
||||||
|
namespace = "^(hibiki)$",
|
||||||
|
},
|
||||||
|
blur = true,
|
||||||
|
ignore_alpha = 0.10,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "waybar-translucent-popups",
|
name = "waybar-translucent-popups",
|
||||||
match = {
|
match = {
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ M.confs = {
|
|||||||
background_color = colorscheme.background,
|
background_color = colorscheme.background,
|
||||||
font_family = settings["font_family"],
|
font_family = settings["font_family"],
|
||||||
},
|
},
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.load()
|
function M.load()
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
|
local settings=require("lua.lib.settings")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local function start_hypridle()
|
local function start_hypridle()
|
||||||
|
if string.sub(settings["hostname"], 1, 4) == "ATRI" then
|
||||||
|
hl.exec_cmd("hypridle -c ~/.config/hypr/hypridle-ATRI.conf")
|
||||||
|
else
|
||||||
hl.exec_cmd("hypridle")
|
hl.exec_cmd("hypridle")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
M.autostart = {
|
M.autostart = {
|
||||||
start_hypridle,
|
start_hypridle,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ M.autostart = {}
|
|||||||
M.autostop = {}
|
M.autostop = {}
|
||||||
M.binds = {}
|
M.binds = {}
|
||||||
M.envs = {}
|
M.envs = {}
|
||||||
|
M.windowrules = {}
|
||||||
|
|
||||||
local function collect_modules_prop(module, prop)
|
local function collect_modules_prop(module, prop)
|
||||||
if module[prop] then
|
if module[prop] then
|
||||||
@@ -51,6 +52,7 @@ for _, item in ipairs(modules) do
|
|||||||
collect_modules_prop(module, "autostop")
|
collect_modules_prop(module, "autostop")
|
||||||
collect_modules_prop(module, "binds")
|
collect_modules_prop(module, "binds")
|
||||||
collect_modules_prop(module, "envs")
|
collect_modules_prop(module, "envs")
|
||||||
|
collect_modules_prop(module, "windowrules")
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.load()
|
function M.load()
|
||||||
@@ -61,6 +63,10 @@ function M.load()
|
|||||||
for name, value in pairs(M.envs) do
|
for name, value in pairs(M.envs) do
|
||||||
hl.env(name, value)
|
hl.env(name, value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, rule in ipairs(M.windowrules) do
|
||||||
|
hl.window_rule(rule)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
@@ -17,4 +17,14 @@ M.binds = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
M.windowrules = {
|
||||||
|
{
|
||||||
|
name = "Pyprland rules",
|
||||||
|
match = {
|
||||||
|
class = "kitty-dropterm"
|
||||||
|
},
|
||||||
|
float = true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ local M = {}
|
|||||||
M.autostart = {
|
M.autostart = {
|
||||||
function()
|
function()
|
||||||
hl.exec_cmd("hyprctl plugin load /usr/lib/hyprland-plugins/hyprexpo.so")
|
hl.exec_cmd("hyprctl plugin load /usr/lib/hyprland-plugins/hyprexpo.so")
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
M.confs = {
|
M.confs = {
|
||||||
@@ -41,7 +41,7 @@ M.binds = {
|
|||||||
dispatcher = function()
|
dispatcher = function()
|
||||||
hl.plugin.hyprexpo.expo("toggle")
|
hl.plugin.hyprexpo.expo("toggle")
|
||||||
end,
|
end,
|
||||||
desc = "Toggle hyprexpo"
|
desc = "Toggle hyprexpo",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ ! -d /sys/class/power_supply/BAT1 ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the current battery percentage
|
# Get the current battery percentage
|
||||||
battery_percentage=$(cat /sys/class/power_supply/BAT1/capacity)
|
battery_percentage=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user