refactor: remove obsolete or private functions
Remove several functions that are either no longer relevant or belong in .user-dots as local/machine-specific functions.
This commit is contained in:
@@ -1,7 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function get-color --wraps='/home/rootiest/scripts/hex2rgb.sh "$(wl-colorpicker-plasma)"' --description 'alias get-color=/home/rootiest/scripts/hex2rgb.sh "$(wl-colorpicker-plasma)"'
|
|
||||||
/home/rootiest/scripts/hex2rgb.sh "$(wl-colorpicker-plasma)" $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function monitors
|
|
||||||
# 0. Capture the ID of the pane we are starting in (Top-Left)
|
|
||||||
set local_id $KITTY_WINDOW_ID
|
|
||||||
|
|
||||||
# Define remote commands
|
|
||||||
set racknerd_cmd "ssh -t racknerd btop"
|
|
||||||
set server_cmd "ssh -t rootiest-server btop"
|
|
||||||
set mini_cmd "ssh -t racknerd-mini btop"
|
|
||||||
|
|
||||||
# 1. Split vertically from Top-Left to create Top-Right (RackNerd)
|
|
||||||
set rack_id (kitty @ launch --location=vsplit --cwd=current sh -c "$racknerd_cmd")
|
|
||||||
|
|
||||||
# 2. Return focus to Top-Left and split horizontally to create Bottom-Left (Server)
|
|
||||||
kitty @ focus-window --match "id:$local_id"
|
|
||||||
set server_id (kitty @ launch --location=hsplit --cwd=current sh -c "$server_cmd")
|
|
||||||
|
|
||||||
# 3. Focus Top-Right (RackNerd) and split horizontally to create Bottom-Right (Mini)
|
|
||||||
kitty @ focus-window --match "id:$rack_id"
|
|
||||||
set mini_id (kitty @ launch --location=hsplit --cwd=current sh -c "$mini_cmd")
|
|
||||||
|
|
||||||
# 4. Final focus back to the Top-Left to launch local btop
|
|
||||||
kitty @ focus-window --match "id:$local_id"
|
|
||||||
|
|
||||||
# Run local btop
|
|
||||||
btop
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function nlazyup --wraps='nvim --headless "+Lazy! sync" +qa' --description 'alias nlazyup=nvim --headless "+Lazy! sync" +qa'
|
|
||||||
nvim --headless "+Lazy! sync" +qa $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function nnotes --wraps='cd~/vaults/Rootiest Notes/;nvim' --wraps='cd ~/vaults/Rootiest Notes/;nvim' --wraps='cd ~/vaults/Rootiest\\ Notes/;nvim' --description 'alias nnotes=cd ~/vaults/Rootiest\\ Notes/;nvim'
|
|
||||||
cd ~/vaults/Rootiest\ Notes/;nvim $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function nvimup --wraps='nvim "+UpdateNeovim"' --wraps='NVIMUPDATER_HEADLESS=1 nvim "+UpdateNeovim"' --description 'alias nvimup=NVIMUPDATER_HEADLESS=1 nvim "+UpdateNeovim"'
|
|
||||||
NVIMUPDATER_HEADLESS=1 nvim "+UpdateNeovim" $argv
|
|
||||||
|
|
||||||
end
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# Copyright (C) 2026 Rootiest
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
|
|
||||||
function tailart --wraps='tailscale file get ~/Pictures/Art/' --description 'alias tailart=tailscale file get ~/Pictures/Art/'
|
|
||||||
tailscale file get ~/Pictures/Art/ $argv
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user