aboutsummaryrefslogtreecommitdiff
path: root/.config/hypr/hyprland.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/hypr/hyprland.lua')
-rw-r--r--.config/hypr/hyprland.lua100
1 files changed, 100 insertions, 0 deletions
diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua
new file mode 100644
index 0000000..c93e8e6
--- /dev/null
+++ b/.config/hypr/hyprland.lua
@@ -0,0 +1,100 @@
+
+terminal = "foot"
+menu = "fuzzel"
+browser = "librewolf"
+mainMod = "SUPER"
+
+-- -----------------------------------------------------
+-- Path to home
+-- -----------------------------------------------------
+HOME = os.getenv("HOME")
+
+
+-- Theme (pywal)
+require(os.getenv("HOME") .. "/.cache/wal/colors.lua")
+
+
+-- -----------------------------------------------------
+-- Autostart
+-- -----------------------------------------------------
+
+hl.on("hyprland.start", function()
+ hl.exec_cmd("hyprpm reload -n")
+ hl.exec_cmd("kanshi")
+ hl.exec_cmd("waybar")
+ hl.exec_cmd("swaync")
+ hl.exec_cmd("gammastep")
+ hl.exec_cmd("hypridle")
+ hl.exec_cmd(os.getenv("HOME") .. "/.local/bin/setwall -n")
+ hl.exec_cmd("systemctl --user start hyprpolkitagent")
+end)
+
+--------------------------------------------------
+-- Plugins
+--------------------------------------------------
+
+-- hl.config({
+-- plugin = {
+-- hyprsplit = {
+-- num_workspaces = 10,
+-- persistent_workspaces = true,
+-- },
+--
+-- ["split-monitor-workspaces"] = {
+-- count = 10,
+-- keep_focused = true,
+-- enable_notifications = false,
+-- enable_persistent_workspaces = true,
+-- },
+-- },
+-- })
+
+-- -----------------------------------------------------
+-- SOURCE FILES
+-- -----------------------------------------------------
+require("source.environment_variables")
+require("source.permissions")
+require("source.appearance")
+require("source.input")
+require("source.keybinds")
+
+
+--------------------------------------------------
+-- Window rules
+--------------------------------------------------
+
+hl.window_rule({
+ name = "suppress-maximize-events",
+
+ match = {
+ class = ".*",
+ },
+
+ suppress_event = "maximize",
+})
+
+hl.window_rule({
+ name = "fix-xwayland-drags",
+
+ match = {
+ class = "^$",
+ title = "^$",
+ xwayland = true,
+ float = true,
+ fullscreen = false,
+ pin = false,
+ },
+
+ no_focus = true,
+})
+
+hl.window_rule({
+ name = "move-hyprland-run",
+
+ match = {
+ class = "hyprland-run",
+ },
+
+ move = "20 monitor_h-120",
+ float = true,
+})