add bind for lid switch to lock

This commit is contained in:
2025-08-01 19:17:08 -07:00
parent dac65222bf
commit c81e517a87
3 changed files with 15 additions and 0 deletions

View File

@@ -41,3 +41,4 @@ eval "$(fzf --bash)"
eval "$(zoxide init --cmd cd bash)"
bind 'set mark-symlinked-directories on'

View File

@@ -297,6 +297,8 @@ bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
# Lock when lid closed
bindl = , switch:on:Lid Switch, exec, loginctl lock-session
# Flag "e" means it will repeat when held down
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+

View File

@@ -7,6 +7,18 @@
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"ssh_connections": [
{
"host": "miningtcup.me",
"projects": [
{
"paths": [
"/home/ted/tmp"
]
}
]
}
],
"icon_theme": "Material Icon Theme",
"telemetry": {
"metrics": false,