summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-11-30 21:59:32 +0100
committerAhmed Abdelhalim <[email protected]>2025-11-30 21:59:32 +0100
commitaacdd107162c4475128c024473457ed7090b08b0 (patch)
tree785bb692c62037a60ab7ea40c5bbbfce61c4b028
parent6f7f89025b3983d3f7876d5c15b51e6ac2851e17 (diff)
Add basic hyprland integration/autostart
-rw-r--r--.bash_profile5
-rw-r--r--.config/hypr/hyprland.conf3
-rw-r--r--.config/hypr/monitors.conf11
3 files changed, 19 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
index 8983cb0..4eab62b 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -79,6 +79,11 @@ homebrew_token() {
export HOMEBREW_GITHUB_API_TOKEN
}
+# ==== Hyprland auto start
+if command -v Hyprland 1>/dev/null 2>&1; then
+ exec Hyprland
+fi
+
if command -v neomutt 1>/dev/null 2>&1; then
# Fixes the pinentry-tty error https://github.com/neomutt/neomutt/issues/1014
mutt() {
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
new file mode 100644
index 0000000..6eacfa1
--- /dev/null
+++ b/.config/hypr/hyprland.conf
@@ -0,0 +1,3 @@
+# Hyprland main configuration file
+# Based on Omarchy hyprland setup
+source = ~/.config/hypr/monitors.conf
diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf
new file mode 100644
index 0000000..5f9e842
--- /dev/null
+++ b/.config/hypr/monitors.conf
@@ -0,0 +1,11 @@
+# Optimized for retina-class 2x displays, like 13" 2.8K, 27" 5K, 32" 6K.
+# env = GDK_SCALE,2
+# monitor=,preferred,auto,auto
+
+# Good compromise for 27" or 32" 4K monitors (but fractional!)
+# env = GDK_SCALE,1.75
+# monitor=,preferred,auto,1.6
+
+# Straight 1x setup for low-resolution displays like 1080p or 1440p
+env = GDK_SCALE,1
+monitor=,preferred,auto,1