Updated hyprland config
This commit is contained in:
parent
8587f9d2e0
commit
c582124035
9 changed files with 58 additions and 165 deletions
|
|
@ -1,18 +1,12 @@
|
|||
-- Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||
|
||||
local colors = require("config/colors")
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
|
||||
hl.config({
|
||||
general = {
|
||||
gaps_in = 1,
|
||||
gaps_out = 1,
|
||||
border_size = 1,
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
-- Resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = true,
|
||||
-- Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false,
|
||||
layout = "dwindle",
|
||||
col = {
|
||||
|
|
@ -22,7 +16,6 @@ hl.config({
|
|||
},
|
||||
})
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
hl.config({
|
||||
decoration = {
|
||||
rounding = 2,
|
||||
|
|
@ -35,7 +28,6 @@ hl.config({
|
|||
render_power = 3,
|
||||
color = "rgba(1a1a1aee)",
|
||||
},
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur = {
|
||||
enabled = true,
|
||||
size = 6,
|
||||
|
|
@ -128,33 +120,24 @@ hl.animation({ leaf="workspaces", enabled=true, speed=2.8, bezier="easeOutQu
|
|||
hl.animation({ leaf="workspacesIn", enabled=true, speed=2.6, bezier="easeOutQuint", style="slide" })
|
||||
hl.animation({ leaf="workspacesOut", enabled=true, speed=2.6, bezier="easeOutQuint", style="slide" })
|
||||
|
||||
-- Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||
|
||||
-- "Smart gaps" / "No gaps when only"
|
||||
-- uncomment all if you wish to use that.
|
||||
-- workspace = w[tv1], gapsout:0, gapsin:0
|
||||
-- workspace = f[1], gapsout:0, gapsin:0
|
||||
-- windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
-- windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
-- windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
|
||||
-- windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
|
||||
-- Layouts
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
-- Dwindle
|
||||
hl.config({
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
-- You probably want this
|
||||
},
|
||||
})
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
-- Master
|
||||
hl.config({
|
||||
master = {
|
||||
new_status = "master",
|
||||
},
|
||||
})
|
||||
|
||||
-- https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
-- Misc
|
||||
hl.config({
|
||||
misc = {
|
||||
force_default_wallpaper = 0, -- Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
|
|
@ -168,9 +151,6 @@ hl.config({
|
|||
---- WINDOWS AND WORKSPACES ---
|
||||
-------------------------------
|
||||
|
||||
-- See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
-- See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
-- Ignore maximize requests from apps. You'll probably like this.
|
||||
hl.window_rule({
|
||||
name = "suppress-maximize-events",
|
||||
|
|
@ -179,7 +159,6 @@ hl.window_rule({
|
|||
suppress_event = "maximize",
|
||||
})
|
||||
|
||||
|
||||
-- Fix some dragging issues with XWayland
|
||||
hl.window_rule({
|
||||
-- Fix some dragging issues with XWayland
|
||||
|
|
@ -196,24 +175,7 @@ hl.window_rule({
|
|||
no_focus = true,
|
||||
})
|
||||
|
||||
|
||||
-- Albert
|
||||
|
||||
hl.window_rule({
|
||||
name = "albert",
|
||||
match = {
|
||||
class = "^(albert)$",
|
||||
},
|
||||
border_size = 0,
|
||||
no_blur = true,
|
||||
no_shadow = true,
|
||||
float = true,
|
||||
stay_focused = true,
|
||||
no_dim = true,
|
||||
})
|
||||
|
||||
-- Prism Launcher
|
||||
|
||||
hl.window_rule({
|
||||
name = "prismlauncher-all",
|
||||
match = {
|
||||
|
|
@ -221,7 +183,6 @@ hl.window_rule({
|
|||
},
|
||||
pseudo = true,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "prismlauncher-main",
|
||||
match = {
|
||||
|
|
@ -232,7 +193,6 @@ hl.window_rule({
|
|||
})
|
||||
|
||||
-- Nautilus
|
||||
|
||||
hl.window_rule({
|
||||
name = "nautilus-main",
|
||||
match = {
|
||||
|
|
@ -243,7 +203,6 @@ hl.window_rule({
|
|||
})
|
||||
|
||||
-- GTK file picker
|
||||
|
||||
hl.window_rule({
|
||||
name = "gtk-file-picker",
|
||||
match = {
|
||||
|
|
@ -256,7 +215,6 @@ hl.window_rule({
|
|||
-- Vivado
|
||||
|
||||
--# Loading screen
|
||||
|
||||
hl.window_rule({
|
||||
name = "vivado-loading-screen",
|
||||
match = {
|
||||
|
|
@ -265,7 +223,6 @@ hl.window_rule({
|
|||
float = true,
|
||||
center = true,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "vivado-loading-screen-2",
|
||||
match = {
|
||||
|
|
@ -273,9 +230,7 @@ hl.window_rule({
|
|||
},
|
||||
size = { 397, 295 },
|
||||
})
|
||||
|
||||
--# Main window
|
||||
|
||||
hl.window_rule({
|
||||
name = "vivado-main",
|
||||
match = {
|
||||
|
|
@ -285,7 +240,6 @@ hl.window_rule({
|
|||
})
|
||||
|
||||
-- Kdenlive
|
||||
|
||||
hl.window_rule({
|
||||
name = "kdenlive-all",
|
||||
match = {
|
||||
|
|
@ -293,7 +247,6 @@ hl.window_rule({
|
|||
},
|
||||
pseudo = true,
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "kdenlive-welcome",
|
||||
match = {
|
||||
|
|
@ -303,7 +256,6 @@ hl.window_rule({
|
|||
})
|
||||
|
||||
-- Gnome characters
|
||||
|
||||
hl.window_rule({
|
||||
name = "gnome-characters",
|
||||
match = {
|
||||
|
|
@ -313,6 +265,20 @@ hl.window_rule({
|
|||
size = { "(849)", "(566)" },
|
||||
})
|
||||
|
||||
-- Albert
|
||||
hl.window_rule({
|
||||
name = "albert",
|
||||
match = {
|
||||
class = "^(albert)$",
|
||||
},
|
||||
border_size = 0,
|
||||
no_blur = true,
|
||||
no_shadow = true,
|
||||
float = true,
|
||||
stay_focused = true,
|
||||
no_dim = true,
|
||||
})
|
||||
|
||||
|
||||
-- Legacy disabled code
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue