Commit cdee99c

Ansari <ping@ansari.wtf>
2025-12-19 18:37:16
Refactor Hyprland configuration; replace monitors module with windows module, update keybinds
1 parent 3d8218f
Changed files (6)
.config/hypr/modules/keybinds.conf
@@ -6,7 +6,8 @@ bind = $mainMod, f, togglefloating
 bind = $mainMod CTRL, f , fullscreen
 bind = $mainMod, P, pseudo, # dwindle
 bind = $mainMod, J, togglesplit # dwindle
-bind = ALT, TAB, cyclenext
+bind = ALT, TAB, cyclenext,floating
+bind = ALT, TAB, bringactivetotop
 bind = $mainMod CTRL,     w,swapwindow, u
 bind = $mainMod CTRL,     a,swapwindow, l
 bind = $mainMod CTRL,     s,swapwindow, d
.config/hypr/modules/monitors.conf → .config/hypr/modules/windows.conf
@@ -1,10 +1,7 @@
-monitor=,preferred,auto,1
-monitor=FALLBACK,1920x1080@60,auto,1
+monitor=DP-1,1920x1080@144,auto,1
 
 # Floating windows
-windowrule = float true, match:tag floating-window
-windowrule = center true, match:tag floating-window
-windowrule = size 875 600, match:tag floating-window
+windowrule = float true,center true,size 875 600,match:tag floating-window
 
 windowrule = tag +floating-window, match:class (Thunar|thunar|org.gnome.Evince|org.wraith.*|org.pulseaudio.pavucontrol|com.mitchellh.ghostty)
 windowrule = tag +floating-window, match:class (xdg-desktop-portal-gtk), match:title ^(Open.*Files?|Open [F|f]older.*|Save.*Files?|Save.*As|Save|All Files|.*wants to [open|save].*|[C|c]hoose.*)
@@ -17,4 +14,6 @@ windowrule = rounding 8, match:tag pop
 windowrule = workspace 1, match:class ^(zen)$
 windowrule = workspace 2, match:class ^(code|code-oss|Code-Insiders)$
 windowrule = workspace special:music, match:class ^(chrome-music\.youtube\..*)$
-windowrule = workspace 3, match:class ^(chrome-gemini.google.com.*)$
\ No newline at end of file
+windowrule = workspace 3, match:class ^(chrome-gemini.google.com.*)$
+
+windowrule = float true,center true,size 1000 550,rounding 12,tag -floating-window,match:class org.wraith.about
\ No newline at end of file
.config/hypr/hyprland.conf
@@ -1,5 +1,5 @@
 source = ./modules/vars.conf
-source = ./modules/monitors.conf
+source = ./modules/windows.conf
 source = ./modules/autostarts.conf
 source = ./modules/keybinds.conf
 source = ./modules/decorations.conf
.config/waybar/config.jsonc
@@ -3,7 +3,7 @@
   "position": "top",
   "height": 32,
   "spacing": 0,
-  "modules-left": ["clock", "custom/packages"],
+  "modules-left": ["custom/about","clock", "custom/packages"],
   "modules-center": ["hyprland/workspaces#main"],
   "modules-right": [
     "hyprland/workspaces#special",
@@ -13,6 +13,13 @@
     "custom/power"
   ],
 
+  "custom/about": {
+    "format": "󰣇",
+    "interval": 0,
+    "tooltip-format": "About System",
+    "on-click": "launch-or-focus-tui \"about\" \"bash -c 'fastfetch; read -n 1 -s'\"",
+  },
+
   "hyprland/workspaces#main": {
     "disable-scroll": false,
     "show-special": false,
.config/waybar/style.css
@@ -30,6 +30,7 @@ menuitem:hover {
 
 #clock,
 #custom-packages,
+#custom-about,
 #custom-power,
 #custom-brightness,
 #pulseaudio,
@@ -41,12 +42,15 @@ menuitem:hover {
   border-radius: 7px;
 }
 
-#clock {
-  margin-left: 14px;
+#custom-about {
+  margin-left: 14px;  
+  padding: 0px 10px;
+  min-width: 20px;
 }
 
+#clock,
 #custom-packages {
-  margin-left: 10px;
+  margin-left: 5px;
 }
 
 #custom-power {
.local/share/applications/arch-cleanup.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=Arch Cleanup
+Exec=launch-or-focus-tui "arch-cleanup" "/home/robin/.wraith/scripts/arch-spring-cleanup.sh"
+Terminal=false
+Type=Application
+Icon=/home/robin/.assets/icons/shell.png
+StartupNotify=true
+