Hardware and plugins modules

This commit is contained in:
2026-07-31 14:53:00 -07:00
parent 3980ba3064
commit 3cd3c9ba19
6 changed files with 28 additions and 11 deletions

View File

@@ -5,3 +5,4 @@ require("hyprland.environment")
require("hyprland.animations") require("hyprland.animations")
require("hyprland.rules") require("hyprland.rules")
require("hyprland.mcsr") require("hyprland.mcsr")
require("hyprland.plugins")

View File

@@ -113,7 +113,6 @@ bind('SUPER + Q', hl.dsp.workspace.toggle_special())
-- Multi monitor -- Multi monitor
bind("SUPER + J", hl.dsp.focus({monitor = -1})) bind("SUPER + J", hl.dsp.focus({monitor = -1}))
bind("SUPER + SHIFT + J", hl.dsp.window.move({monitor = -1})) bind("SUPER + SHIFT + J", hl.dsp.window.move({monitor = -1}))
bind('SUPER + K', hl.plugin.gloview.toggle)
-- Screen locking -- Screen locking
bind("SUPER + ESCAPE", hl.dsp.exec_cmd("~/.config/scripts/lock.sh"), {locked = true}) bind("SUPER + ESCAPE", hl.dsp.exec_cmd("~/.config/scripts/lock.sh"), {locked = true})

View File

@@ -24,12 +24,12 @@ hl.config({
dim_special = 0, dim_special = 0,
blur = { blur = {
enabled = true, enabled = true,
size = 8, size = 2,
passes = 3, passes = 3,
new_optimizations = true, new_optimizations = true,
ignore_opacity = true, ignore_opacity = true,
special = false, special = false,
brightness = 0.2, brightness = 1,
}, },
shadow = { shadow = {
range = 12, range = 12,
@@ -68,12 +68,4 @@ hl.config({
xwayland = { xwayland = {
force_zero_scaling = true, force_zero_scaling = true,
}, },
plugin = {
gloview = {
blur = 0.2,
strip_all_card = true,
show_special = true,
layout = 'grid'
}
},
}) })

View File

@@ -0,0 +1,2 @@
local hostname = io.popen('uname -n'):read('*l')
require('hyprland.hardware.' .. hostname)

View File

@@ -0,0 +1,11 @@
hl.config({
input = {
accel_profile = "flat",
sensitivity = -0.8
}
})
bind("KP_ADD", hl.dsp.exec_cmd("pkill -SIGUSR1 -x gpu-screen-reco"))
bind("SUPER + F7", hl.dsp.exec_cmd("pkill -x quickshell; quickshell"))
bind("SUPER + F4", hl.dsp.exec_cmd("playerctl next"))

12
hypr/hyprland/plugins.lua Normal file
View File

@@ -0,0 +1,12 @@
if hl.plugin.gloview ~= nil then
hl.config({plugin = {
gloview = {
layout = 'rows',
blur = 1,
strip_all_card = true,
show_special = true,
above_namespaces = 'quickshell'
}
}})
hl.bind('SUPER + K', hl.plugin.gloview.toggle, {submap_universal = true})
end