diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index 6931483..da5ef8d 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -5,3 +5,4 @@ require("hyprland.environment") require("hyprland.animations") require("hyprland.rules") require("hyprland.mcsr") +require("hyprland.plugins") diff --git a/hypr/hyprland/binds.lua b/hypr/hyprland/binds.lua index c3bdca0..7111dc9 100644 --- a/hypr/hyprland/binds.lua +++ b/hypr/hyprland/binds.lua @@ -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}) diff --git a/hypr/hyprland/config.lua b/hypr/hyprland/config.lua index 1cd152b..fd44f49 100644 --- a/hypr/hyprland/config.lua +++ b/hypr/hyprland/config.lua @@ -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' - } - }, }) diff --git a/hypr/hyprland/hardware/init.lua b/hypr/hyprland/hardware/init.lua new file mode 100644 index 0000000..05fc588 --- /dev/null +++ b/hypr/hyprland/hardware/init.lua @@ -0,0 +1,2 @@ +local hostname = io.popen('uname -n'):read('*l') +require('hyprland.hardware.' .. hostname) diff --git a/hypr/hyprland/hardware/penguin.lua b/hypr/hyprland/hardware/penguin.lua new file mode 100644 index 0000000..70dba07 --- /dev/null +++ b/hypr/hyprland/hardware/penguin.lua @@ -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")) diff --git a/hypr/hyprland/plugins.lua b/hypr/hyprland/plugins.lua new file mode 100644 index 0000000..6f5fb87 --- /dev/null +++ b/hypr/hyprland/plugins.lua @@ -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