From ff02840e944f2257d3f5f47444dce6d1e91f9ad4 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Wed, 23 Oct 2024 18:40:25 -0600 Subject: [PATCH] fixed some stuff --- .config/hypr/hypridle.conf | 27 +++++++++++++++++++++++++++ .config/hypr/hyprland.conf | 5 +++-- .config/hypr/hyprlock.conf | 8 ++++++++ .config/nvim/lazy-lock.json | 1 + 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .config/hypr/hypridle.conf create mode 100644 .config/hypr/hyprlock.conf diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf new file mode 100644 index 0000000..340ff14 --- /dev/null +++ b/.config/hypr/hypridle.conf @@ -0,0 +1,27 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +listener { + timeout = 150 # 2.5min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 330 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index b1fffcf..dd5f0ec 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -185,8 +185,9 @@ gestures { # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more device { - name = epic-mouse-v1 - sensitivity = -0.5 + name = razer-razer-deathadder-v2 + sensitivity = -0.2 + accel_profile = flat } diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..9c12f6a --- /dev/null +++ b/.config/hypr/hyprlock.conf @@ -0,0 +1,8 @@ +background { + path = /home/piwalker/Downloads/wallpaper-minimal.jpg +} + + +input-field { + position = 0, -20 +} diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index abfef18..a9b4663 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -4,6 +4,7 @@ "coc.nvim": { "branch": "master", "commit": "9fd857818977ce9f9f6f7271034fc917dede7035" }, "gitsigns.nvim": { "branch": "main", "commit": "ee7634ab4f0a6606438fe13e16cbf2065589a5ed" }, "lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" }, + "mini.hipatterns": { "branch": "main", "commit": "797cbdc893cdcc2f0fbc05a23b4dae238a1fb0ae" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" }, "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },