| 1 | terminal = "foot" |
| 2 | menu = "fuzzel" |
| 3 | browser = "librewolf" |
| 4 | mainMod = "SUPER" |
| 5 | |
| 6 | -- ----------------------------------------------------- |
| 7 | -- Path to home |
| 8 | -- ----------------------------------------------------- |
| 9 | HOME = os.getenv("HOME") |
| 10 | |
| 11 | |
| 12 | -- Theme (pywal) |
| 13 | dofile(HOME .. "/.cache/wal/hyprland-colors.lua") |
| 14 | |
| 15 | -- ----------------------------------------------------- |
| 16 | -- Autostart |
| 17 | -- ----------------------------------------------------- |
| 18 | hl.on("hyprland.start", function() |
| 19 | hl.exec_cmd("wl-paste --type text --watch cliphist store") |
| 20 | hl.exec_cmd("wl-paste --type image --watch cliphist store") |
| 21 | hl.exec_cmd("hyprpm reload -n") |
| 22 | hl.exec_cmd("kanshi") |
| 23 | hl.exec_cmd("waybar") |
| 24 | hl.exec_cmd("swaync") |
| 25 | hl.exec_cmd("gammastep") |
| 26 | hl.exec_cmd("hypridle") |
| 27 | hl.exec_cmd(os.getenv("HOME") .. "/.local/bin/setwall -n") |
| 28 | hl.exec_cmd("systemctl --user start hyprpolkitagent") |
| 29 | end) |
| 30 | |
| 31 | -------------------------------------------------- |
| 32 | -- Plugins |
| 33 | -------------------------------------------------- |
| 34 | package.path = package.path .. ";./?.lua;./?/init.lua" |
| 35 | smw = require("plugins.split-monitor-workspaces") |
| 36 | smw.setup({ |
| 37 | workspace_count = 10, |
| 38 | }) |
| 39 | |
| 40 | -- ----------------------------------------------------- |
| 41 | -- SOURCE FILES |
| 42 | -- ----------------------------------------------------- |
| 43 | require("source.environment_variables") |
| 44 | require("source.permissions") |
| 45 | require("source.appearance") |
| 46 | require("source.input") |
| 47 | require("source.keybinds") |
| 48 | |
| 49 | |
| 50 | -------------------------------------------------- |
| 51 | -- Window rules |
| 52 | -------------------------------------------------- |
| 53 | hl.window_rule({ |
| 54 | name = "suppress-maximize-events", |
| 55 | |
| 56 | match = { |
| 57 | class = ".*", |
| 58 | }, |
| 59 | |
| 60 | suppress_event = "maximize", |
| 61 | }) |
| 62 | |
| 63 | hl.window_rule({ |
| 64 | name = "fix-xwayland-drags", |
| 65 | |
| 66 | match = { |
| 67 | class = "^$", |
| 68 | title = "^$", |
| 69 | xwayland = true, |
| 70 | float = true, |
| 71 | fullscreen = false, |
| 72 | pin = false, |
| 73 | }, |
| 74 | |
| 75 | no_focus = true, |
| 76 | }) |
| 77 | |
| 78 | hl.window_rule({ |
| 79 | name = "move-hyprland-run", |
| 80 | |
| 81 | match = { |
| 82 | class = "hyprland-run", |
| 83 | }, |
| 84 | |
| 85 | move = "20 monitor_h-120", |
| 86 | float = true, |
| 87 | }) |