From d3dbcda6d7d65c25f728a929f5f67d6e605c64ce Mon Sep 17 00:00:00 2001
From: Fabian Hinz
Date: Thu, 4 Jan 2024 01:58:51 +0100
Subject: [PATCH] Split notebook config for hyprland and improve batterylife
---
config/hypr/banshee.conf | 47 ++++++++++++++++++++++++++++++++++++++
config/hypr/hyprland.conf | 36 ++++++-----------------------
config/hypr/sunnydale.conf | 33 ++++++++++++++++++++++++++
3 files changed, 87 insertions(+), 29 deletions(-)
create mode 100644 config/hypr/banshee.conf
create mode 100644 config/hypr/sunnydale.conf
diff --git a/config/hypr/banshee.conf b/config/hypr/banshee.conf
new file mode 100644
index 0000000..d62b22a
--- /dev/null
+++ b/config/hypr/banshee.conf
@@ -0,0 +1,47 @@
+
+# See https://wiki.hyprland.org/Configuring/Monitors/
+# monitor=,preferred,auto,1
+#monitor=DP-1, 2560x1440@143.973Hz, auto, auto, vrr,0
+#
+device:asue140a:00-04f3:3134-touchpad {
+ # accel_profile adaptive
+ #pointer_accel -0.1
+ tap_button_map = lmr
+ natural_scroll = yes
+ # middle_emulation enabled
+ # scroll_factor = 0.4
+}
+
+bindr = $mainMod, super_l, exec, pkill -USR1 waybar
+exec = kanshictl reload # apply current kanshi setup when saved
+exec-once = $scriptsDir/battery-notif.sh
+exec-once = kanshi &
+
+general {
+ # See https://wiki.hyprland.org/Configuring/Variables/ for more
+
+ gaps_in = 3
+ gaps_out = 6
+ border_size = 2
+ col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
+ col.inactive_border = rgba(595959aa)
+
+ layout = dwindle
+}
+
+decoration {
+ # See https://wiki.hyprland.org/Configuring/Variables/ for more
+
+ rounding = 10
+
+ blur {
+ enabled = false
+ size = 3
+ passes = 1
+ }
+
+ drop_shadow = false
+ shadow_range = 4
+ shadow_render_power = 3
+ col.shadow = rgba(1a1a1aee)
+}
diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf
index ee0aaef..df2aeb5 100644
--- a/config/hypr/hyprland.conf
+++ b/config/hypr/hyprland.conf
@@ -31,6 +31,7 @@ $editor = nvim
#
# Source a file (multi-file configs)
source=~/.config/hypr/macchiato.conf
+source=~/.config/hypr/host.conf
# Some default env vars.
env = XCURSOR_SIZE,24
@@ -52,7 +53,6 @@ env = GDK_BACKEND,wayland
# Startup
exec = $scriptsDir/startup
-# exec = kanshictl reload # apply current kanshi setup when saved
exec-once = hyprctl setcursor Catppuccin-Macchiato-Lavender-Cursors 24
exec-once = $scriptsDir/system/picom-toggle.sh
exec-once = pypr
@@ -87,7 +87,7 @@ input {
follow_mouse = 1
touchpad {
- natural_scroll = no
+ natural_scroll = yes
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
@@ -97,35 +97,13 @@ device:logitech-g305-1 {
sensitivity = 0
}
-
-general {
- # See https://wiki.hyprland.org/Configuring/Variables/ for more
-
- gaps_in = 5
- gaps_out = 10
- border_size = 2
- col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
- col.inactive_border = rgba(595959aa)
-
- layout = dwindle
+misc {
+ disable_hyprland_logo = true
+ disable_splash_rendering = true
+ mouse_move_enables_dpms = true
+ # no_direct_scanout = true #for fullscreen games
}
-decoration {
- # See https://wiki.hyprland.org/Configuring/Variables/ for more
-
- rounding = 10
-
- blur {
- enabled = true
- size = 3
- passes = 1
- }
-
- drop_shadow = yes
- shadow_range = 4
- shadow_render_power = 3
- col.shadow = rgba(1a1a1aee)
-}
animations {
enabled = yes
diff --git a/config/hypr/sunnydale.conf b/config/hypr/sunnydale.conf
new file mode 100644
index 0000000..6365679
--- /dev/null
+++ b/config/hypr/sunnydale.conf
@@ -0,0 +1,33 @@
+
+# See https://wiki.hyprland.org/Configuring/Monitors/
+# monitor=,preferred,auto,auto
+monitor=DP-1, 2560x1440@143.973Hz, auto, auto, vrr,0
+
+general {
+ # See https://wiki.hyprland.org/Configuring/Variables/ for more
+
+ gaps_in = 5
+ gaps_out = 10
+ border_size = 2
+ col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
+ col.inactive_border = rgba(595959aa)
+
+ layout = dwindle
+}
+
+decoration {
+ # See https://wiki.hyprland.org/Configuring/Variables/ for more
+
+ rounding = 10
+
+ blur {
+ enabled = yes
+ size = 3
+ passes = 1
+ }
+
+ drop_shadow = yes
+ shadow_range = 4
+ shadow_render_power = 3
+ col.shadow = rgba(1a1a1aee)
+}