From 39b78f3b439a8b537f4d734ef6c65757faf7d0a5 Mon Sep 17 00:00:00 2001 From: Dmitri Date: Sat, 11 Oct 2025 16:30:14 +0200 Subject: [PATCH] removed unused stuff --- .zshrc | 35 ++++++++++++--------------------- link.sh | 2 +- nvim/lua/kanopo/plugins/lsp.lua | 7 +++---- nvim/main.tex | 1 - nvim/main.ts | 12 ----------- sway/config | 26 +++++++----------------- sway/scripts/pin-keymapp.sh | 18 ----------------- 7 files changed, 24 insertions(+), 77 deletions(-) delete mode 100644 nvim/main.tex delete mode 100644 nvim/main.ts delete mode 100755 sway/scripts/pin-keymapp.sh diff --git a/.zshrc b/.zshrc index 7af55d4..a905a14 100644 --- a/.zshrc +++ b/.zshrc @@ -13,32 +13,21 @@ plug "zap-zsh/completions" plug "zsh-users/zsh-syntax-highlighting" plug "wintermi/zsh-lsd" plug "romkatv/powerlevel10k" -# plug "zap-zsh/nvm" - - -# Load and initialise completion system -autoload -Uz compinit -fpath+=~/.zfunc -compinit +plug "zap-zsh/nvm" +# +# +# # Load and initialise completion system +# autoload -Uz compinit +# fpath+=~/.zfunc +# compinit # # nvm initialization -# source /usr/share/nvm/init-nvm.sh +source /usr/share/nvm/init-nvm.sh alias v="nvim" -# alias conservation-on="sudo ectool chargecontrol normal 80 80" -# alias conservation-off="sudo ectool chargecontrol normal" -# # alias orphans="sudo pacman -Qtdq | sudo pacman -Rns -" -# -# # Define variables for monitor names -# LAPTOP_MONITOR="eDP-1" -# EXTERNAL_MONITOR="DP-2" -# -# # Alias to disable laptop screen (only if external is connected) -# alias laptop-screen-off='if xrandr | grep "$EXTERNAL_MONITOR connected"; then swaymsg output $LAPTOP_MONITOR disable; echo "Laptop screen disabled."; else echo "External monitor not connected. Keeping laptop screen on."; fi' -# -# # Alias to enable laptop screen -# alias laptop-screen-on='swaymsg output $LAPTOP_MONITOR enable; echo "Laptop screen enabled."' - +alias conservation-on="sudo ectool chargecontrol normal 80 80" +alias conservation-off="sudo ectool chargecontrol normal" +alias orphans="sudo pacman -Qtdq | sudo pacman -Rns -" alias space="du -hsx * | sort -rh | head -10" @@ -47,3 +36,5 @@ export GPG_TTY=$(tty) export EDITOR="nvim" [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" diff --git a/link.sh b/link.sh index a5605cb..6ae15de 100755 --- a/link.sh +++ b/link.sh @@ -1,4 +1,4 @@ -#!bash +#!/bin/bash # ln -s ~/Documents/dotfiles/alacritty ~/.config/ ln -s ~/Documents/dotfiles/foot ~/.config/ diff --git a/nvim/lua/kanopo/plugins/lsp.lua b/nvim/lua/kanopo/plugins/lsp.lua index cf15c80..a498029 100644 --- a/nvim/lua/kanopo/plugins/lsp.lua +++ b/nvim/lua/kanopo/plugins/lsp.lua @@ -5,7 +5,7 @@ return { "mason-org/mason-lspconfig.nvim", "WhoIsSethDaniel/mason-tool-installer.nvim", - { "j-hui/fidget.nvim", opts = {} }, + { "j-hui/fidget.nvim", opts = {} }, "saghen/blink.cmp", }, @@ -116,8 +116,8 @@ return { local servers = { texlab = {}, -- clangd = {}, - gopls = {}, - nil_ls = {}, + -- gopls = {}, + -- nil_ls = {}, ts_ls = {}, lua_ls = { settings = { @@ -148,7 +148,6 @@ return { local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { "stylua", -- Used to format Lua code - "nixfmt" }) require("mason-tool-installer").setup({ ensure_installed = ensure_installed }) diff --git a/nvim/main.tex b/nvim/main.tex deleted file mode 100644 index 7cb6942..0000000 --- a/nvim/main.tex +++ /dev/null @@ -1 +0,0 @@ -\subsection{} diff --git a/nvim/main.ts b/nvim/main.ts deleted file mode 100644 index b13f6b9..0000000 --- a/nvim/main.ts +++ /dev/null @@ -1,12 +0,0 @@ -const Page = () => { - const a: number[] = [] - a.fill(1) - - -} - - - - - -rafce diff --git a/sway/config b/sway/config index 5cb5dbb..3e52a28 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 ghostty +set $term foot # Launcher: wofi (sostituisce wmenu-run) set $menu wofi -S drun -p Search -I -b -i @@ -264,15 +264,15 @@ exec_always { } ### Applicazioni in autostart -# exec keepassxc -exec flatpak run org.keepassxc.KeePassXC -# exec nextcloud -exec flatpak run com.nextcloud.desktopclient.nextcloud +exec keepassxc +# exec flatpak run org.keepassxc.KeePassXC +exec nextcloud +# exec flatpak run com.nextcloud.desktopclient.nextcloud exec wlsunset -S 08:00 -s 18:00 exec blueman-applet exec xss-lock -- swaylock -f -i $wallpaper -# exec --no-startup-id easyeffects --gapplication-service -exec flatpak run com.github.wwmm.easyeffects --gapplication-service +exec --no-startup-id easyeffects --gapplication-service +# exec flatpak run com.github.wwmm.easyeffects --gapplication-service exec --no-startup-id wluma # Avvio del polkit agent GNOME @@ -316,15 +316,3 @@ for_window [title="Picture in picture"] floating enable, sticky enable for_window [title="Save File"] floating enable 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 deleted file mode 100755 index 6925b06..0000000 --- a/sway/scripts/pin-keymapp.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/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