From b115edd210633fc38fcc0b78f93c0ebf49066f17 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 6 Mar 2022 13:46:07 -0500 Subject: [PATCH] Leftwm and ssh session goop --- config/leftwm/config.toml | 5 +++++ xinitrc | 2 ++ zshrc | 22 ---------------------- 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/config/leftwm/config.toml b/config/leftwm/config.toml index ad2e83f..4496e18 100644 --- a/config/leftwm/config.toml +++ b/config/leftwm/config.toml @@ -43,6 +43,11 @@ value = "slock" modifier = ["modkey", "Control"] key = "l" +[[keybind]] +command = "ToggleFullScreen" +modifier = ["modkey", "Shift"] +key = "f" + [[keybind]] command = "MoveToLastWorkspace" modifier = ["modkey", "Shift"] diff --git a/xinitrc b/xinitrc index 4d6491a..b3be680 100644 --- a/xinitrc +++ b/xinitrc @@ -16,4 +16,6 @@ function _xinit_setup_xinput() { _xinit_setup_xinput +eval "$(ssh-agent)" + exec leftwm diff --git a/zshrc b/zshrc index a62693a..4661f9e 100644 --- a/zshrc +++ b/zshrc @@ -169,26 +169,6 @@ done export GPG_TTY=$(tty) -function dump-ssh-agent() { - env | awk '/SSH/ { - sub(/=/, "=\"", $1) - sub(/$/, "\"", $1) - print "export " $1 - }' | tee ~/.ssh/agent.out -} - -function load-ssh-agent() { - source ~/.ssh/agent.out -} - -function start-ssh-agent() { - ssh-agent >~/.ssh/agent.out -} - -function setup-ssh-agent() { - start-ssh-agent && load-ssh-agent -} - function __maybesource() { if [[ -f "${1}" ]]; then if [[ "${2}" == silent ]]; then @@ -221,8 +201,6 @@ function docker-cleanup() { done } -load-ssh-agent &>/dev/null - export NVM_DIR="${HOME}/.nvm" __maybesource ~/.zshenv