Compare commits
5
Commits
b1534e45c4
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bdc58986d | ||
|
|
deed6d81bc | ||
|
|
75ce12490b | ||
|
|
c0201ea4e7 | ||
|
|
320ad9df0f |
+2
-5
@@ -10,11 +10,8 @@ general {
|
|||||||
|
|
||||||
# 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+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
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ local pieces = {
|
|||||||
"window",
|
"window",
|
||||||
"workspace",
|
"workspace",
|
||||||
"passthrough",
|
"passthrough",
|
||||||
|
"screenshot",
|
||||||
}
|
}
|
||||||
|
|
||||||
M.binds = {}
|
M.binds = {}
|
||||||
|
|||||||
@@ -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,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,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