diff --git a/.config/hypr/apps.lua b/.config/hypr/apps.lua index 51b1ad7..fb49df6 100644 --- a/.config/hypr/apps.lua +++ b/.config/hypr/apps.lua @@ -225,24 +225,24 @@ hl.window_rule { }, } -- Float Steam -hl.window_rule { - name = 'steam-float', - float = true, - no_initial_focus = true, - workspace = 'name:Gaming_1', - idle_inhibit = 'fullscreen', - match = { - class = 'steam', - }, -} -hl.window_rule { - name = 'steam-app-size', - center = true, - match = { - class = 'steam', - title = 'Steam', - }, -} +-- hl.window_rule { +-- name = 'steam-float', +-- float = true, +-- no_initial_focus = true, +-- workspace = 'name:Gaming_1', +-- idle_inhibit = 'fullscreen', +-- match = { +-- class = 'steam', +-- }, +-- } +-- hl.window_rule { +-- name = 'steam-app-center', +-- center = true, +-- match = { +-- class = 'steam', +-- title = 'Steam', +-- }, +-- } hl.window_rule { name = 'steam-opacity', tag = '-default-opacity', diff --git a/.config/hypr/input.lua b/.config/hypr/input.lua index 91904e5..f2dd7c9 100644 --- a/.config/hypr/input.lua +++ b/.config/hypr/input.lua @@ -1,12 +1,12 @@ -- https://wiki.hyprland.org/Configuring/Variables/#input -hl.config({ +hl.config { input = { -- Use multiple keyboard layouts and switch between them with Left Alt + Right Alt - kb_layout = "gb,ro", + kb_layout = 'gb,ro', -- Use a specific keyboard variant if needed (e.g. intl for international keyboards) -- kb_variant = "intl", -- kb_model = - kb_options = "compose:caps", + kb_options = 'caps:ctrl_modifier,caps:escape', -- kb_rules = -- Change speed of keyboard repeat @@ -61,16 +61,16 @@ hl.config({ key_press_enables_dpms = true, -- key press will trigger wake mouse_move_enables_dpms = true, -- mouse move will trigger wake }, -}) +} -- Scroll nicely in the terminal -hl.window_rule({ - name = "Scroll nicely in the terminal", +hl.window_rule { + name = 'Scroll nicely in the terminal', match = { - class = "com.mitchellh.ghostty", + class = 'com.mitchellh.ghostty', }, scroll_mouse = 1.5, -}) +} -- Enable touchpad gestures for changing workspaces -- See https://wiki.hyprland.org/Configuring/Gestures/ @@ -94,3 +94,4 @@ hl.window_rule({ -- active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 }, -- }) -- end + diff --git a/.config/hypr/workspaces.lua b/.config/hypr/workspaces.lua index ab9dc3a..708ac22 100644 --- a/.config/hypr/workspaces.lua +++ b/.config/hypr/workspaces.lua @@ -86,7 +86,21 @@ hl.on('monitor.focused', function() return end - local layout = workspace.tiled_layout + local monitor = hl.get_active_monitor() + + if monitor.description == 'BOE NE160QDM-NZ6' then + hl.workspace_rule { workspace = 'name:' .. tostring(workspace.name), layout = 'monocle' } + end +end) + +hl.on('config.reloaded', function() + local workspace = hl.get_active_workspace() + if hl.get_active_special_workspace() then + workspace = hl.get_active_special_workspace() + end + if not workspace then + return + end local monitor = hl.get_active_monitor()