diff --git a/.zshrc b/.zshrc index 95bfefc..4ad9372 100644 --- a/.zshrc +++ b/.zshrc @@ -18,6 +18,7 @@ plug "romkatv/powerlevel10k" # Load and initialise completion system autoload -Uz compinit +fpath+=~/.zfunc compinit # # nvm initialization @@ -49,3 +50,7 @@ export EDITOR="nvim" source ~/.cargo/env + +export GOROOT="$HOME/.local/bin/go" +export GOPATH="$HOME/.go" +export PATH="$GOROOT/bin:$GOPATH/bin:$PATH" diff --git a/README.md b/README.md index 768de29..a1198ff 100644 --- a/README.md +++ b/README.md @@ -3,17 +3,17 @@ W gruvbox :) ## NODE + Usare un custom path per node globale: + ```bash mkdir ~/.npm-global npm config set prefix '~/.npm-global' ``` - ## fprintd - finger print for linux + - [articolo per usare l'impronta](https://mentat.za.net/blog/2024/01/31/linux-fingerprint-reader/?utm_source=atom_feed) - - FONT https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/Inconsolata.zip diff --git a/ghostty/config b/ghostty/config new file mode 100644 index 0000000..817c077 --- /dev/null +++ b/ghostty/config @@ -0,0 +1,10 @@ +font-family = Iosevka NF +font-size = 18 + +window-decoration = false +mouse-hide-while-typing = true + + +theme = Gruvbox Dark +shell-integration = zsh + diff --git a/sway/config b/sway/config index 14c94d0..5cb5dbb 100644 --- a/sway/config +++ b/sway/config @@ -4,7 +4,7 @@ set $left h set $down j set $up k set $right l -set $term foot +set $term ghostty # Launcher: wofi (sostituisce wmenu-run) set $menu wofi -S drun -p Search -I -b -i @@ -319,5 +319,12 @@ for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill # assign [app_id="configs"] workspace configs assign [class="Spotify"] workspace 10 +for_window [app_id="keymapp"] floating enable +for_window [app_id="keymapp"] resize set width 800 px height 600 px +for_window [app_id="keymapp"] move position 100%-800px 100%-600px +for_window [app_id="keymapp"] mark pin-keymapp +no_focus [app_id="keymapp"] +exec_always ~/.config/sway/scripts/pin-keymapp.sh + # Includi eventuali configurazioni aggiuntive # include /etc/sway/config.d/* diff --git a/sway/scripts/pin-keymapp.sh b/sway/scripts/pin-keymapp.sh new file mode 100755 index 0000000..6925b06 --- /dev/null +++ b/sway/scripts/pin-keymapp.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Follow current workspace and place bottom-right at 800x600. +# Requires the window to be marked "pin-keymapp" and floating. + +# Subscribe to workspace changes +swaymsg -t subscribe '["workspace"]' | while read -r _; do + # Ensure the window exists before issuing moves + if swaymsg -t get_tree | jq -e '.. | objects | select(.marks? and (index("pin-keymapp"))) ' >/dev/null; then + # Move to current workspace + swaymsg '[con_mark="pin-keymapp"] move container to workspace current' + # Ensure size, then place. Order matters: floating -> resize -> move. + swaymsg '[con_mark="pin-keymapp"] floating enable' + swaymsg '[con_mark="pin-keymapp"] resize set width 800 px height 600 px' + swaymsg '[con_mark="pin-keymapp"] move position 100%-800px 100%-600px' + # If needed (multi-output absolute coords), use: + # swaymsg '[con_mark="pin-keymapp"] move absolute position 100%-800px 100%-600px' + fi +done