mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Compare commits
3 Commits
3344abb36b
...
e4d6deb3c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4d6deb3c5 | ||
|
|
95c7531db4 | ||
|
|
7baa944aee |
7
.claude/settings.local.json
Normal file
7
.claude/settings.local.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"allow": [
|
||||||
|
"Bash(xargs ls -la)"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -436,6 +436,7 @@ Allo stato attuale `ansible/site.yml` espone questi tag:
|
|||||||
| `emptty` | gestione display manager `emptty` | desktop Void |
|
| `emptty` | gestione display manager `emptty` | desktop Void |
|
||||||
| `gnome` | configurazione host GNOME | workstation host Linux, parte desktop |
|
| `gnome` | configurazione host GNOME | workstation host Linux, parte desktop |
|
||||||
| `i3` | sessione/configurazione i3 | desktop Void |
|
| `i3` | sessione/configurazione i3 | desktop Void |
|
||||||
|
| `npm` | installazione pacchetti npm globali | desktop Void, workstation Linux, WSL |
|
||||||
| `nvidia` | componenti NVIDIA desktop | desktop Void |
|
| `nvidia` | componenti NVIDIA desktop | desktop Void |
|
||||||
| `packages` | installazione e aggiornamento pacchetti | tutti i profili |
|
| `packages` | installazione e aggiornamento pacchetti | tutti i profili |
|
||||||
| `services` | gestione servizi runit/systemd/Windows | tutti i profili |
|
| `services` | gestione servizi runit/systemd/Windows | tutti i profili |
|
||||||
|
|||||||
@@ -518,7 +518,7 @@
|
|||||||
label: "{{ binary_tool.name }}"
|
label: "{{ binary_tool.name }}"
|
||||||
|
|
||||||
- name: Install desktop npm packages
|
- name: Install desktop npm packages
|
||||||
tags: [packages]
|
tags: [packages, npm]
|
||||||
community.general.npm:
|
community.general.npm:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
global: true
|
global: true
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
|
|
||||||
- name: Install workstation npm packages
|
- name: Install workstation npm packages
|
||||||
tags: [packages]
|
tags: [packages, npm]
|
||||||
community.general.npm:
|
community.general.npm:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
global: true
|
global: true
|
||||||
|
|||||||
39
dotfiles/desktop/.bashrc.d/14-dbus-session.sh
Normal file
39
dotfiles/desktop/.bashrc.d/14-dbus-session.sh
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Validate DBUS_SESSION_BUS_ADDRESS: a stale value (e.g. inherited from a
|
||||||
|
# dead X session) makes secret-tool, mbsync, msmtp fail with
|
||||||
|
# "Could not connect: No such file or directory".
|
||||||
|
# Fall back to ~/.dbus-session-bus-address (written by .xinitrc) or
|
||||||
|
# /run/user/$UID/bus, mirroring scripts/bootstrap_mail.sh.
|
||||||
|
|
||||||
|
_dbus_addr_socket_path() {
|
||||||
|
printf '%s' "${1#unix:path=}" | sed 's/,.*//'
|
||||||
|
}
|
||||||
|
|
||||||
|
_dbus_addr_is_live() {
|
||||||
|
case "$1" in
|
||||||
|
unix:path=*)
|
||||||
|
[ -S "$(_dbus_addr_socket_path "$1")" ]
|
||||||
|
;;
|
||||||
|
unix:abstract=*)
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! _dbus_addr_is_live "${DBUS_SESSION_BUS_ADDRESS:-}"; then
|
||||||
|
unset DBUS_SESSION_BUS_ADDRESS
|
||||||
|
if [ -f "$HOME/.dbus-session-bus-address" ]; then
|
||||||
|
_saved=$(tr -d '\n' <"$HOME/.dbus-session-bus-address" 2>/dev/null)
|
||||||
|
if [ -n "$_saved" ] && _dbus_addr_is_live "$_saved"; then
|
||||||
|
export DBUS_SESSION_BUS_ADDRESS="$_saved"
|
||||||
|
fi
|
||||||
|
unset _saved
|
||||||
|
fi
|
||||||
|
if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ] && [ -S "/run/user/$(id -u)/bus" ]; then
|
||||||
|
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$(id -u)/bus"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset -f _dbus_addr_socket_path _dbus_addr_is_live
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
[Default Applications]
|
[Default Applications]
|
||||||
text/html=firefox.desktop
|
text/html=userapp-Firefox-91DVN3.desktop
|
||||||
x-scheme-handler/http=firefox.desktop
|
x-scheme-handler/http=userapp-Firefox-91DVN3.desktop
|
||||||
x-scheme-handler/https=firefox.desktop
|
x-scheme-handler/https=userapp-Firefox-91DVN3.desktop
|
||||||
x-scheme-handler/about=firefox.desktop
|
x-scheme-handler/about=firefox.desktop
|
||||||
x-scheme-handler/unknown=firefox.desktop
|
x-scheme-handler/unknown=firefox.desktop
|
||||||
application/pdf=com.github.xournalpp.xournalpp.desktop
|
application/pdf=com.github.xournalpp.xournalpp.desktop
|
||||||
@@ -164,6 +164,13 @@ text/x-readme=emacs.desktop
|
|||||||
text/x-rst=emacs.desktop
|
text/x-rst=emacs.desktop
|
||||||
text/x-tex=emacs.desktop
|
text/x-tex=emacs.desktop
|
||||||
text/x-texinfo=emacs.desktop
|
text/x-texinfo=emacs.desktop
|
||||||
|
x-scheme-handler/chrome=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/x-extension-htm=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/x-extension-html=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/x-extension-shtml=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/xhtml+xml=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/x-extension-xhtml=userapp-Firefox-91DVN3.desktop
|
||||||
|
application/x-extension-xht=userapp-Firefox-91DVN3.desktop
|
||||||
|
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
application/json=emacs.desktop;
|
application/json=emacs.desktop;
|
||||||
@@ -326,3 +333,6 @@ text/x-readme=emacs.desktop;
|
|||||||
text/x-rst=emacs.desktop;
|
text/x-rst=emacs.desktop;
|
||||||
text/x-tex=emacs.desktop;
|
text/x-tex=emacs.desktop;
|
||||||
text/x-texinfo=emacs.desktop;
|
text/x-texinfo=emacs.desktop;
|
||||||
|
x-scheme-handler/http=userapp-Firefox-91DVN3.desktop;
|
||||||
|
x-scheme-handler/https=userapp-Firefox-91DVN3.desktop;
|
||||||
|
x-scheme-handler/chrome=userapp-Firefox-91DVN3.desktop;
|
||||||
|
|||||||
@@ -198,8 +198,20 @@ parse_secret_lookup_args() {
|
|||||||
|
|
||||||
resolve_dbus_session_bus_address() {
|
resolve_dbus_session_bus_address() {
|
||||||
if [ -n "${DBUS_SESSION_BUS_ADDRESS:-}" ]; then
|
if [ -n "${DBUS_SESSION_BUS_ADDRESS:-}" ]; then
|
||||||
printf '%s\n' "$DBUS_SESSION_BUS_ADDRESS"
|
case "$DBUS_SESSION_BUS_ADDRESS" in
|
||||||
return 0
|
unix:path=*)
|
||||||
|
_path=${DBUS_SESSION_BUS_ADDRESS#unix:path=}
|
||||||
|
_path=${_path%%,*}
|
||||||
|
if [ -S "$_path" ]; then
|
||||||
|
printf '%s\n' "$DBUS_SESSION_BUS_ADDRESS"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
unix:abstract=*)
|
||||||
|
printf '%s\n' "$DBUS_SESSION_BUS_ADDRESS"
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$HOME/.dbus-session-bus-address" ]; then
|
if [ -f "$HOME/.dbus-session-bus-address" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user