Hardware and plugins modules
This commit is contained in:
@@ -5,3 +5,4 @@ require("hyprland.environment")
|
||||
require("hyprland.animations")
|
||||
require("hyprland.rules")
|
||||
require("hyprland.mcsr")
|
||||
require("hyprland.plugins")
|
||||
|
||||
@@ -113,7 +113,6 @@ bind('SUPER + Q', hl.dsp.workspace.toggle_special())
|
||||
-- Multi monitor
|
||||
bind("SUPER + J", hl.dsp.focus({monitor = -1}))
|
||||
bind("SUPER + SHIFT + J", hl.dsp.window.move({monitor = -1}))
|
||||
bind('SUPER + K', hl.plugin.gloview.toggle)
|
||||
|
||||
-- Screen locking
|
||||
bind("SUPER + ESCAPE", hl.dsp.exec_cmd("~/.config/scripts/lock.sh"), {locked = true})
|
||||
|
||||
@@ -24,12 +24,12 @@ hl.config({
|
||||
dim_special = 0,
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 8,
|
||||
size = 2,
|
||||
passes = 3,
|
||||
new_optimizations = true,
|
||||
ignore_opacity = true,
|
||||
special = false,
|
||||
brightness = 0.2,
|
||||
brightness = 1,
|
||||
},
|
||||
shadow = {
|
||||
range = 12,
|
||||
@@ -68,12 +68,4 @@ hl.config({
|
||||
xwayland = {
|
||||
force_zero_scaling = true,
|
||||
},
|
||||
plugin = {
|
||||
gloview = {
|
||||
blur = 0.2,
|
||||
strip_all_card = true,
|
||||
show_special = true,
|
||||
layout = 'grid'
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
2
hypr/hyprland/hardware/init.lua
Normal file
2
hypr/hyprland/hardware/init.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
local hostname = io.popen('uname -n'):read('*l')
|
||||
require('hyprland.hardware.' .. hostname)
|
||||
11
hypr/hyprland/hardware/penguin.lua
Normal file
11
hypr/hyprland/hardware/penguin.lua
Normal 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
12
hypr/hyprland/plugins.lua
Normal 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
|
||||
Reference in New Issue
Block a user