From 9caa1035a7ea9c5ab640f62e1ae68a9d88b2d54a Mon Sep 17 00:00:00 2001 From: Florestan Bredow Date: Thu, 26 Jun 2025 16:48:28 +0200 Subject: [PATCH] [Fish] Supprime commandes et fichier inutile --- .config/fish/conf.d/startx.fish | 4 +-- .config/fish/functions/fish_ssh_agent.fish | 32 ---------------------- 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 .config/fish/functions/fish_ssh_agent.fish diff --git a/.config/fish/conf.d/startx.fish b/.config/fish/conf.d/startx.fish index ac65d06..c8d51e0 100644 --- a/.config/fish/conf.d/startx.fish +++ b/.config/fish/conf.d/startx.fish @@ -1,8 +1,8 @@ # Start X at login if status --is-login if test -z "$DISPLAY" -a $XDG_VTNR = 1 - exec sway - # pour activer le partage d'écran mais sway ne fonctionne plus. + exec sway --unsupported-gpu + # pour activer le partage d'écran mais provoque des bugs. #exec env XDG_CURRENT_DESKTOP=sway dbus-run-session sway end end diff --git a/.config/fish/functions/fish_ssh_agent.fish b/.config/fish/functions/fish_ssh_agent.fish deleted file mode 100644 index 5960b75..0000000 --- a/.config/fish/functions/fish_ssh_agent.fish +++ /dev/null @@ -1,32 +0,0 @@ -function __ssh_agent_is_started -d "check if ssh agent is already started" - if begin; test -f $SSH_ENV; and test -z "$SSH_AGENT_PID"; end - source $SSH_ENV > /dev/null - end - - if test -z "$SSH_AGENT_PID" - return 1 - end - - ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep -q ssh-agent - #pgrep ssh-agent - return $status -end - - -function __ssh_agent_start -d "start a new ssh agent" - ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV - chmod 600 $SSH_ENV - source $SSH_ENV > /dev/null - true # suppress errors from setenv, i.e. set -gx -end - - -function fish_ssh_agent --description "Start ssh-agent if not started yet, or uses already started ssh-agent." - if test -z "$SSH_ENV" - set -xg SSH_ENV $HOME/.ssh/environment - end - - if not __ssh_agent_is_started - __ssh_agent_start - end -end