Compare commits

...
5 Commits
Author SHA1 Message Date
wyj 3bdc58986d new: add screenshot bind 2026-07-27 16:34:53 -04:00
wyj deed6d81bc update: add hibiki rule 2026-07-18 15:59:28 -04:00
wyj 75ce12490b update: xwayland force zero factor 2026-07-09 18:10:24 -04:00
wyj c0201ea4e7 fix: exit hypridle battery script when BAT1 doesn't exist 2026-06-30 21:53:26 -04:00
wyj 320ad9df0f fix: fix hypridle dpms to lua 2026-06-30 02:52:47 -04:00
7 changed files with 58 additions and 10 deletions
+2 -5
View File
@@ -10,11 +10,8 @@ general {
# dpms
listener {
# DPMS TIMEOUT
timeout = 660
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
}
+2 -5
View File
@@ -30,12 +30,9 @@ listener {
# dpms
listener {
# DPMS TIMEOUT
timeout = 660
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
}
# Suspend
+1
View File
@@ -7,6 +7,7 @@ local pieces = {
"window",
"workspace",
"passthrough",
"screenshot",
}
M.binds = {}
+37
View File
@@ -0,0 +1,37 @@
local bind = require("lua.lib.bind")
local M = {}
local function screenshot_fullscreen()
local home = os.getenv("HOME")
local dir = home .. "/Pictures/screenshots/"
local name = "screenshot_" .. os.date("%Y%d%m_%H%M%S") .. ".png"
local file = dir .. name
local monitor = hl.get_active_monitor()
if monitor == nil then
return
end
hl.exec_cmd(
string.format(
"grim -o %q %q && " .. "wl-copy --type image/png < %q && " .. "notify-send %q %q && " .. "swappy -f %q",
monitor.name,
file,
file,
"Screenshot created and copied to clipboard",
"Mode: Fullscreen",
file
)
)
end
M.binds = {
{
keys = bind.with_leader("SHIFT + Print"),
dispatcher = screenshot_fullscreen,
desc = "Make fullscreen screenshot",
},
}
return M
+9
View File
@@ -9,6 +9,15 @@ M.layer_rules = {
blur = true,
},
{
name = "hibiki",
match = {
namespace = "^(hibiki)$",
},
blur = true,
ignore_alpha = 0.10,
},
{
name = "waybar-translucent-popups",
match = {
+3
View File
@@ -12,6 +12,9 @@ M.confs = {
background_color = colorscheme.background,
font_family = settings["font_family"],
},
xwayland = {
force_zero_scaling = true,
},
}
function M.load()
+4
View File
@@ -1,5 +1,9 @@
#!/bin/bash
if [[ ! -d /sys/class/power_supply/BAT1 ]]; then
exit 0
fi
# Get the current battery percentage
battery_percentage=$(cat /sys/class/power_supply/BAT1/capacity)