From c81e517a87b74b3280c154924b3903098d762b0f Mon Sep 17 00:00:00 2001 From: Ted Pier Date: Fri, 1 Aug 2025 19:17:08 -0700 Subject: [PATCH] add bind for lid switch to lock --- .bashrc | 1 + .config/hypr/hyprland.conf | 2 ++ .config/zed/settings.json | 12 ++++++++++++ 3 files changed, 15 insertions(+) diff --git a/.bashrc b/.bashrc index 110285f..e6a0267 100644 --- a/.bashrc +++ b/.bashrc @@ -41,3 +41,4 @@ eval "$(fzf --bash)" eval "$(zoxide init --cmd cd bash)" bind 'set mark-symlinked-directories on' + diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 6f27426..998bdb0 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -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%+ diff --git a/.config/zed/settings.json b/.config/zed/settings.json index 35a267b..b75a23d 100644 --- a/.config/zed/settings.json +++ b/.config/zed/settings.json @@ -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,