feat: brightness keys, lock screen on suspend, battery icon. fix: volume keys description
This commit is contained in:
parent
faa38c8c00
commit
ff9822d595
@ -69,7 +69,7 @@ editor_cmd = terminal .. " -e " .. editor
|
|||||||
browser = "brave"
|
browser = "brave"
|
||||||
files = "pcmanfm"
|
files = "pcmanfm"
|
||||||
wallpaper = "landscape.png"
|
wallpaper = "landscape.png"
|
||||||
lock = "i3lock -fti" .. wallpaper_dir .. "lock.png && sleep 600 && systemctl suspend"
|
lock = "i3lock -fti" .. wallpaper_dir .. "lock.png"
|
||||||
screenshot = "flameshot full -c"
|
screenshot = "flameshot full -c"
|
||||||
screenshot_gui = "flameshot gui"
|
screenshot_gui = "flameshot gui"
|
||||||
|
|
||||||
@ -469,14 +469,14 @@ globalkeys = gears.table.join(
|
|||||||
function()
|
function()
|
||||||
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +5%")
|
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 +5%")
|
||||||
end,
|
end,
|
||||||
{description = "increase volume up by 5%", group = "hotkeys"}
|
{description = "increase volume by 5%", group = "hotkeys"}
|
||||||
),
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{}, "XF86AudioLowerVolume",
|
{}, "XF86AudioLowerVolume",
|
||||||
function()
|
function()
|
||||||
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -5%")
|
awful.spawn.with_shell("pactl set-sink-mute 0 0 && pactl set-sink-volume 0 -5%")
|
||||||
end,
|
end,
|
||||||
{description = "decrease volume up by 5%", group = "hotkeys"}
|
{description = "decrease volume by 5%", group = "hotkeys"}
|
||||||
),
|
),
|
||||||
awful.key(
|
awful.key(
|
||||||
{}, "XF86AudioMute",
|
{}, "XF86AudioMute",
|
||||||
@ -519,6 +519,20 @@ globalkeys = gears.table.join(
|
|||||||
awful.spawn.with_shell("~/bin/toggle_touchpad")
|
awful.spawn.with_shell("~/bin/toggle_touchpad")
|
||||||
end,
|
end,
|
||||||
{description = "toggle touchpad", group = "hotkeys"}
|
{description = "toggle touchpad", group = "hotkeys"}
|
||||||
|
),
|
||||||
|
awful.key(
|
||||||
|
{}, "XF86MonBrightnessDown",
|
||||||
|
function()
|
||||||
|
awful.spawn("xbacklight -dec 10")
|
||||||
|
end,
|
||||||
|
{description = "decrease brightness by 10%", group = "hotkeys"}
|
||||||
|
),
|
||||||
|
awful.key(
|
||||||
|
{}, "XF86MonBrightnessUp",
|
||||||
|
function()
|
||||||
|
awful.spawn("xbacklight -inc 10")
|
||||||
|
end,
|
||||||
|
{description = "increase brightness by 10 %", group = "hotkeys"}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -742,10 +756,12 @@ client.connect_signal(
|
|||||||
|
|
||||||
apps = {
|
apps = {
|
||||||
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
"/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1",
|
||||||
|
"xss-lock --transfer-sleep-lock -- " .. lock,
|
||||||
"picom",
|
"picom",
|
||||||
"redshift",
|
"redshift",
|
||||||
"nm-applet",
|
"nm-applet",
|
||||||
"pasystray",
|
"pasystray",
|
||||||
|
"cbatticon -i symbolic",
|
||||||
"flameshot",
|
"flameshot",
|
||||||
terminal
|
terminal
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user