This commit is contained in:
Dmitri 2025-09-20 08:50:47 +02:00
parent 4ed5f2fd12
commit 77fc1c35c7
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
5 changed files with 44 additions and 4 deletions

5
.zshrc
View File

@ -18,6 +18,7 @@ plug "romkatv/powerlevel10k"
# Load and initialise completion system # Load and initialise completion system
autoload -Uz compinit autoload -Uz compinit
fpath+=~/.zfunc
compinit compinit
# # nvm initialization # # nvm initialization
@ -49,3 +50,7 @@ export EDITOR="nvim"
source ~/.cargo/env source ~/.cargo/env
export GOROOT="$HOME/.local/bin/go"
export GOPATH="$HOME/.go"
export PATH="$GOROOT/bin:$GOPATH/bin:$PATH"

View File

@ -3,17 +3,17 @@
W gruvbox :) W gruvbox :)
## NODE ## NODE
Usare un custom path per node globale: Usare un custom path per node globale:
```bash ```bash
mkdir ~/.npm-global mkdir ~/.npm-global
npm config set prefix '~/.npm-global' npm config set prefix '~/.npm-global'
``` ```
## fprintd - finger print for linux ## 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) - [articolo per usare l'impronta](https://mentat.za.net/blog/2024/01/31/linux-fingerprint-reader/?utm_source=atom_feed)
FONT FONT
https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/Inconsolata.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v3.4.0/Inconsolata.zip

10
ghostty/config Normal file
View File

@ -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

View File

@ -4,7 +4,7 @@ set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
set $term foot set $term ghostty
# Launcher: wofi (sostituisce wmenu-run) # Launcher: wofi (sostituisce wmenu-run)
set $menu wofi -S drun -p Search -I -b -i 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 [app_id="configs"] workspace configs
assign [class="Spotify"] workspace 10 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 # Includi eventuali configurazioni aggiuntive
# include /etc/sway/config.d/* # include /etc/sway/config.d/*

18
sway/scripts/pin-keymapp.sh Executable file
View File

@ -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