summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dot-config/hypr/binds.lua2
-rw-r--r--dot-config/hypr/hyprland.lua12
-rw-r--r--dot-config/hypr/input.lua3
-rw-r--r--dot-config/hypr/layout.lua2
-rw-r--r--dot-config/hypr/plugins.lua38
-rw-r--r--dot-config/hypr/rules.lua28
6 files changed, 65 insertions, 20 deletions
diff --git a/dot-config/hypr/binds.lua b/dot-config/hypr/binds.lua
index 77f48d35..cc0156cb 100644
--- a/dot-config/hypr/binds.lua
+++ b/dot-config/hypr/binds.lua
@@ -35,7 +35,7 @@ hl.bind(mod .. " + V", hl.dsp.exec_cmd("qs ipc call launcher standalone Clip"))
-- GUI
hl.bind(mod .. " + SHIFT + F", hl.dsp.exec_cmd(vars.fileManager))
-- bind = mod shift, w, execr, $browser --restore-last-session
-hl.bind(mod .. " + SHIFT + W", hl.dsp.exec_cmd(vars.browser .. " -new-tab about:sessionrestore"))
+hl.bind(mod .. " + SHIFT + W", hl.dsp.exec_cmd(vars.browser .. " -new-window"))
hl.bind(mod .. " + SHIFT + E", hl.dsp.exec_cmd("zeditor"))
hl.bind(mod .. " + SHIFT + D", hl.dsp.exec_cmd("vesktop " .. vars.waylandarg))
hl.bind(mod .. " + SHIFT + B", hl.dsp.exec_cmd("beeper " .. vars.waylandarg))
diff --git a/dot-config/hypr/hyprland.lua b/dot-config/hypr/hyprland.lua
index 4b3de26b..8da7ee95 100644
--- a/dot-config/hypr/hyprland.lua
+++ b/dot-config/hypr/hyprland.lua
@@ -19,6 +19,12 @@ hl.monitor({
vars = require("vars")
colors = require("colors")
+-------------------------------
+---- ENVIRONMENT VARIABLES ----
+-------------------------------
+
+require("env")
+
-------------------
---- AUTOSTART ----
-------------------
@@ -26,12 +32,6 @@ colors = require("colors")
require("autostart")
--------------------------------
----- ENVIRONMENT VARIABLES ----
--------------------------------
-
-require("env")
-
-----------------------
----- PERMISSIONS -----
-----------------------
diff --git a/dot-config/hypr/input.lua b/dot-config/hypr/input.lua
index f760aebc..6d95d670 100644
--- a/dot-config/hypr/input.lua
+++ b/dot-config/hypr/input.lua
@@ -1,6 +1,7 @@
hl.config({
input = {
- kb_layout = us,
+ kb_layout = "us",
+ kb_variant = "altgr-intl",
-- kb_options = caps:swapescape -- changed in kb settings
follow_mouse = 1, -- 2
diff --git a/dot-config/hypr/layout.lua b/dot-config/hypr/layout.lua
index 2dbcfaa4..0ea97267 100644
--- a/dot-config/hypr/layout.lua
+++ b/dot-config/hypr/layout.lua
@@ -5,7 +5,7 @@ hl.config({
dwindle = {
preserve_split = true, -- You probably want this
- force_split = 3,
+ -- force_split = 3,
precise_mouse_move = true
},
diff --git a/dot-config/hypr/plugins.lua b/dot-config/hypr/plugins.lua
index d68617d3..99b4434b 100644
--- a/dot-config/hypr/plugins.lua
+++ b/dot-config/hypr/plugins.lua
@@ -136,3 +136,41 @@ hl.plugin.dynamic_cursors.shape_rule {
shape = "clientside",
mode = "none",
}
+
+
+if hl.plugin.hyprglass then
+ local hg = hl.plugin.hyprglass
+
+ hg.config({
+ default_theme = "dark",
+ default_preset = "clear",
+ tint_color = 0x8899aa22,
+
+ brightness = 0.9,
+ dark = { brightness = 0.82 },
+ light = { adaptive_boost = 0.5 },
+
+ layers = { enabled = true },
+ })
+
+ -- Layer surfaces: each call whitelists the namespace and configures it
+ hg.layer("quickshell::bar", { preset = "subtle", mask_threshold = 0.05 })
+ hg.layer("swaync")
+ hg.layer("quickshell:bezel", { preset = "ui", mask_threshold = 0.3 })
+ hg.layer("debug-panel", { exclude = true })
+
+ -- Presets
+ hg.preset("clear", {
+ glass_opacity = 0.8,
+ blur_strength = 1.5,
+ dark = { brightness = 0.7 },
+ light = { brightness = 1.2 },
+ })
+
+ hg.preset("contrasted", {
+ inherits = "high_contrast",
+ contrast = 1.2,
+ adaptive_dim = 1.5,
+ dark = { tint_color = 0x02142aa9 },
+ })
+end
diff --git a/dot-config/hypr/rules.lua b/dot-config/hypr/rules.lua
index abe9c422..cffd2c6a 100644
--- a/dot-config/hypr/rules.lua
+++ b/dot-config/hypr/rules.lua
@@ -157,7 +157,7 @@ local app_tags = {
{ class = "^(" .. (vars.browser or "$browser") .. "|Brave-browser|chromium|firefox|thorium|zen)$", tag = "+web" },
{ class = "^(" .. (vars.fileManager or "$fileManager") .. "|Pcmanfm|thunar|org.qbittorrent.qBittorrent|Caja)$", tag = "+file" },
{ class = "^(code|code-url-handler|cursor-url-handler|code-oss|Code - OSS|install4j-burp-StartBurp|burp-StartBurp|Unity|jetbrains-pycharm-ce|Postman|jetbrains-clion|.*\\.zed\\.Zed-.*|dev.zed.Zed-Preview)$", tag = "+code" },
- { class = "^(LibreOffice.*|libreoffice.*|Typora|obsidian|figma-linux|anytype|craft-nativefier-e0958b|evince|org.gnome.Evince|ClickUp)$", tag = "+office" },
+ { class = "^(LibreOffice.*|libreoffice.*|Typora|.*obsidian.*|figma-linux|anytype|craft-nativefier-e0958b|evince|org.gnome.Evince|ClickUp)$", tag = "+office" },
{ class = "^(discord|vesktop|VencordDesktop|Chat-gpt|Whatsapp-for-linux|Chatbox)$", tag = "+communication" },
{ class = "^(Audacity|Music|MPlayer|Lxmusic|Inkscape|Gimp|Blender|obs|zoom|Zoom|Pitivi|kdenlive|openshot|vlc|cider|Cider|shotwell|Shotwell|fr.handbrake.ghb|spotify|Spotify)$", tag = "+media" },
{ class = "^(Minecraft|Badlion|War|steam_proton|steam|csgo_linux64|cs2|minecraft-launcher|lutris|genshinimpact\\.exe|moe\\.launcher\\.an-anime-game-launcher|lunarclient|Lunar Client.*|zenlesszonezero\\.exe|moe\\.launcher\\.sleepy-launcher|org\\.vinegarhq\\.Sober|War Thunder.*|steam_app_.*)$", tag = "+games" },
@@ -233,7 +233,7 @@ local opacity_rules = {
{ class = "^Caja$", active = "0.90", inactive = "0.80" },
{ class = "^polkit-gnome-authentication-agent-1$", active = "0.80", inactive = "0.70" },
{ title = "^Open$", active = "0.80", inactive = "0.70" },
- { class = "^obsidian$", active = "0.99", inactive = "0.99" },
+ { class = "^.*obsidian.*$", active = "0.99", inactive = "" },
}
for _, rule in ipairs(opacity_rules) do
@@ -263,9 +263,9 @@ local layer_rules = {
{ namespace = "^swaync-control-center$", blur = true, ignore_alpha = 0, animation = "slide right" },
{ namespace = "^logout_dialog$", blur = true },
{ namespace = "^waybar$", blur = true, ignore_alpha = 0 },
- { namespace = "^quickshell::launcher.*$", blur = true, ignore_alpha = 0, dim_around = true, animation = "popin 45%" },
- { namespace = "^quickshell::bar$", blur = true, ignore_alpha = 0 },
- { namespace = "^quickshell::CC$", blur = true, ignore_alpha = 0, dim_around = true },
+ { namespace = "^quickshell::launcher.*$", blur = true, ignore_alpha = 0, dim_around = true, animation = "popin 45%", blur_popups = true },
+ { namespace = "^quickshell::bar$", blur = true, ignore_alpha = 0, blur_popups = true },
+ { namespace = "^quickshell::CC$", blur = true, ignore_alpha = 0, dim_around = true, blur_popups = true },
{ namespace = "^syshud$", blur = true, ignore_alpha = 0 },
{ namespace = "^selection$", animation = "none" },
{ namespace = "^mpvpaper$", animation = "gnome 0%" }
@@ -283,12 +283,17 @@ end
-- xwaylandvideobridge
hl.window_rule({
- match = { class = "^(xwaylandvideobridge)$" },
- opacity = "0.0 override",
- no_anim = true,
- no_initial_focus = true,
- max_size = { "1", "1" },
- no_blur = true
+ name = "xwayland-video-bridge-fixes",
+ match = {
+ class = "xwaylandvideobridge"
+ },
+
+ no_initial_focus = true,
+ no_focus = true,
+ no_anim = true,
+ no_blur = true,
+ max_size = {1,1},
+ opacity = 0.0
})
-- Roblox join private server
@@ -300,6 +305,7 @@ hl.window_rule({ match = { class = "^(org.vinegarhq.Sober)$", title = "^(Join Fr
-- suppressevent
hl.window_rule({ match = { class = "^spotify$" }, suppress_event = "activatefocus activate" })
hl.window_rule({ match = { class = "^org.gnome.Evince$" }, suppress_event = "activate" })
+hl.window_rule({ match = { class = "^Bitwarden$" }, suppress_event = "activate" })
-- Fix some dragging issues with XWayland
hl.window_rule({