Compare commits
8
Commits
e8594c54ef
..
0.56.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
666ad77a02 | ||
|
|
fade16974b | ||
|
|
deed6d81bc | ||
|
|
75ce12490b | ||
|
|
c0201ea4e7 | ||
|
|
320ad9df0f | ||
|
|
b1534e45c4 | ||
|
|
626a0fd769 |
@@ -0,0 +1,17 @@
|
|||||||
|
general {
|
||||||
|
ignore_dbus_inhibit = false
|
||||||
|
}
|
||||||
|
|
||||||
|
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.
|
||||||
|
}
|
||||||
|
|
||||||
|
# dpms
|
||||||
|
listener {
|
||||||
|
timeout = 660
|
||||||
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
|
||||||
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
|
||||||
|
}
|
||||||
|
|
||||||
+2
-5
@@ -30,12 +30,9 @@ listener {
|
|||||||
|
|
||||||
# dpms
|
# dpms
|
||||||
listener {
|
listener {
|
||||||
# DPMS TIMEOUT
|
|
||||||
timeout = 660
|
timeout = 660
|
||||||
# DPMS ONTIMEOUT
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
|
||||||
on-timeout = hyprctl dispatch dpms off
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
|
||||||
# DPMS ONRESUME
|
|
||||||
on-resume = hyprctl dispatch dpms on
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Suspend
|
# Suspend
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ M.curves = {
|
|||||||
curve = {
|
curve = {
|
||||||
type = "spring",
|
type = "spring",
|
||||||
mass = 1,
|
mass = 1,
|
||||||
stiffness = 50,
|
stiffness = 500,
|
||||||
dampening = 8,
|
dampening = 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ local events = require("lua.lib.events")
|
|||||||
local utils = require("lua.lib.utils")
|
local utils = require("lua.lib.utils")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
M.autostart = {}
|
||||||
|
|
||||||
-- for openRC system
|
-- for openRC system
|
||||||
if settings["hostname"] == "optiplex-gentoo" and not settings["systemd"] then
|
if settings["hostname"] == "optiplex-gentoo" and not settings["systemd"] then
|
||||||
M.autostart = {
|
M.autostart = {
|
||||||
|
|||||||
@@ -9,6 +9,15 @@ M.layer_rules = {
|
|||||||
blur = true,
|
blur = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "hibiki",
|
||||||
|
match = {
|
||||||
|
namespace = "^(hibiki)$",
|
||||||
|
},
|
||||||
|
blur = true,
|
||||||
|
ignore_alpha = 0.10,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "waybar-translucent-popups",
|
name = "waybar-translucent-popups",
|
||||||
match = {
|
match = {
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ M.confs = {
|
|||||||
background_color = colorscheme.background,
|
background_color = colorscheme.background,
|
||||||
font_family = settings["font_family"],
|
font_family = settings["font_family"],
|
||||||
},
|
},
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
function M.load()
|
function M.load()
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
local settings=require("lua.lib.settings")
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local function start_hypridle()
|
local function start_hypridle()
|
||||||
|
if string.sub(settings["hostname"], 1, 4) == "ATRI" then
|
||||||
|
hl.exec_cmd("hypridle -c ~/.config/hypr/hypridle-ATRI.conf")
|
||||||
|
else
|
||||||
hl.exec_cmd("hypridle")
|
hl.exec_cmd("hypridle")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
M.autostart = {
|
M.autostart = {
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ ! -d /sys/class/power_supply/BAT1 ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the current battery percentage
|
# Get the current battery percentage
|
||||||
battery_percentage=$(cat /sys/class/power_supply/BAT1/capacity)
|
battery_percentage=$(cat /sys/class/power_supply/BAT1/capacity)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user