From 356749e6beac7f7b9a72b9bd25cb54404fbee70c Mon Sep 17 00:00:00 2001
From: Trianta <56975502+Trimutex@users.noreply.github.com>
Date: Wed, 17 Apr 2024 04:25:01 -0500
Subject: [PATCH] hyprland: update config to current style

---
 hypr/hyprland.conf    | 23 +++++++++++------------
 hypr/theme.conf       |  9 +++++----
 hypr/windowrules.conf |  5 +++++
 3 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index dd3d522..e55aede 100755
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -1,16 +1,14 @@
 # █▀▄▀█ █▀█ █▄░█ █ ▀█▀ █▀█ █▀█
 # █░▀░█ █▄█ █░▀█ █ ░█░ █▄█ █▀▄
 
-# Day
-monitor=DP-1, 1920x1080@144, 760x0, 1, vrr, 1
-monitor=DP-3, 3440x1440@160, 0x1080, 1, vrr, 1
+# Single
+monitor=DP-3, highrr, 0x0, 1, vrr, 1
+monitor=DP-1, disable
 
-# Night
-#monitor=DP-1, disable
-#monitor=DP-3, 3440x1440@160, 0x0, 1, vrr, 1
+# Double
+#monitor=DP-3, highrr, 0x1080, 1, vrr, 1
+#monitor=DP-1, highrr, 760x0, 1, vrr, 1
 
-# Set primary monitor for xwayland
-exec-once = xrandr --output DP-3 --primary
 
 
 # █░░ ▄▀█ █░█ █▄░█ █▀▀ █░█
@@ -22,11 +20,11 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR
 exec-once = dbus-update-activation-environment --systemd --all # for XDPH
 exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
 exec-once = /usr/lib/polkit-kde-authentication-agent-1 # authentication dialogue for GUI apps
-exec-once = ~/.config/waybar/autobar.sh
+exec-once = waybar -c ~/.config/waybar/config
 exec-once = dunst # start notification demon
 exec-once = swww init
 exec-once = syncthing --no-browser
-exec-once = xwaylandvideobridge
+
 
 
 # █▀▀ █▄░█ █░█
@@ -61,8 +59,9 @@ input {
 # █░░ ▄▀█ █▄█ █▀█ █░█ ▀█▀ █▀
 # █▄▄ █▀█ ░█░ █▄█ █▄█ ░█░ ▄█
 
-workspace = DP-3, 1
-workspace = DP-1, 5
+workspace = 1, monitor:DP-3
+workspace = 5, monitor:DP-1 
+exec-once = xrandr --output DP-3 --primary # Set primary monitor for xwayland
 
 dwindle {
     pseudotile = yes
diff --git a/hypr/theme.conf b/hypr/theme.conf
index 9e01fcc..68a1e6e 100644
--- a/hypr/theme.conf
+++ b/hypr/theme.conf
@@ -28,12 +28,13 @@ general {
     #gaps_out = 40, 160, 40, 160
     gaps_in = 0
     gaps_out = 0
-    #border_size = 4
-    border_size = 0
+    border_size = 4
+    #border_size = 0
     col.active_border = $peach
-    col.inactive_border = $peach
+    #col.inactive_border = $peach
     layout = dwindle
     resize_on_border = false
+    cursor_inactive_timeout = 2
 }
 
 group {
@@ -49,6 +50,7 @@ decoration {
     dim_special = 0.3
     #active_opacity = 1.0
     #inactive_opacity = 0.8
+    fullscreen_opacity = 1.0
 
     blur {
         enabled = yes
@@ -85,4 +87,3 @@ misc {
     force_default_wallpaper = 0
     vrr = 1
 }
-
diff --git a/hypr/windowrules.conf b/hypr/windowrules.conf
index 2374a56..b5c786c 100644
--- a/hypr/windowrules.conf
+++ b/hypr/windowrules.conf
@@ -20,8 +20,13 @@ windowrulev2 = center, title:^(SnakePlusPlus)$
 windowrulev2 = opacity 0.6, title:^(SnakePlusPlus)$ 
 windowrulev2 = float, title:^(TetrisPlusPlus)$ 
 windowrulev2 = center, title:^(TetrisPlusPlus)$ 
+windowrulev2 = float, title:^(wifiLogger)$ 
+windowrulev2 = center, title:^(wifiLogger)$ 
 
 # Games
+windowrulev2 = opacity 1.00 override 1.00 override, class:^(net-runelite-client-RuneLite)$
+windowrulev2 = pseudo, class:^(net-runelite-client-RuneLite)$
+windowrulev2 = size 825 520, class:^(net-runelite-client-RuneLite)$
 windowrulev2 = opacity 1.00 override 1.00 override, class:^(Minecraft.*)$
 windowrulev2 = pseudo, class:^(Minecraft.*)$
 windowrulev2 = size 2560 1080, class:^(Minecraft.*)$