niri: swap back roles for ghostty and kitty & fish: safer gc (git clone) alias
This commit is contained in:
@@ -17,11 +17,11 @@ command = exec fish
|
|||||||
confirm-close-surface = false
|
confirm-close-surface = false
|
||||||
|
|
||||||
font-family = monospace
|
font-family = monospace
|
||||||
font-size = 12
|
font-size = 10
|
||||||
|
|
||||||
cursor-style = bar
|
cursor-style = bar
|
||||||
adjust-cursor-thickness = 3
|
adjust-cursor-thickness = 3
|
||||||
|
|
||||||
custom-shader = cursor-shaders/cursor-smear.glsl
|
custom-shader = cursor-shaders/cursor-smear.glsl
|
||||||
|
|
||||||
quit-after-last-window-closed = false
|
# quit-after-last-window-closed = false
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ binds {
|
|||||||
Mod+E { spawn "dolphin" "--new-window"; }
|
Mod+E { spawn "dolphin" "--new-window"; }
|
||||||
Mod+W { spawn-sh "zen || zen-browser"; }
|
Mod+W { spawn-sh "zen || zen-browser"; }
|
||||||
Mod+X { spawn "gnome-text-editor" "--new-window"; }
|
Mod+X { spawn "gnome-text-editor" "--new-window"; }
|
||||||
Mod+B { spawn-sh "pkill -x -n btop || kitty -e btop"; }
|
Mod+B { spawn-sh "pkill -x -n btop || ghostty -e btop"; }
|
||||||
Mod+T { spawn "ghostty" "+new-window"; }
|
Mod+Shift+T { spawn "ghostty" "+new-window"; }
|
||||||
Mod+Return { spawn "ghostty" "+new-window"; }
|
Mod+Shift+Return { spawn "ghostty" "+new-window"; }
|
||||||
Mod+Shift+T { spawn "kitty"; }
|
Mod+T { spawn "kitty"; }
|
||||||
Mod+Shift+Return { spawn "kitty"; }
|
Mod+Return { spawn "kitty"; }
|
||||||
Mod+Shift+W { spawn "wallpaper-carousel"; }
|
Mod+Shift+W { spawn "wallpaper-carousel"; }
|
||||||
Mod+O { spawn-sh "pkill -x -n pwvucontrol || pwvucontrol"; }
|
Mod+O { spawn-sh "pkill -x -n pwvucontrol || pwvucontrol"; }
|
||||||
|
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ window-rule {
|
|||||||
|
|
||||||
// FLoating terminal
|
// FLoating terminal
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="kitty"
|
match app-id="com.mitchellh.ghostty"
|
||||||
open-floating true
|
open-floating true
|
||||||
default-column-width { proportion 0.5; }
|
default-column-width { proportion 0.5; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal terminal
|
// Normal terminal
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id="com.mitchellh.ghostty"
|
match app-id="kitty"
|
||||||
default-column-width { proportion 0.3; }
|
default-column-width { proportion 0.3; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ MonitorItem {
|
|||||||
action.signal(15);
|
action.signal(15);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
action.exec(["kitty", "-e", "btop"]);
|
action.exec(["ghostty", "-e", "btop"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ MonitorItem {
|
|||||||
action.signal(15);
|
action.signal(15);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
action.exec(["kitty", "-e", "btop"]);
|
action.exec(["ghostty", "-e", "btop"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ MonitorItem {
|
|||||||
action.signal(15);
|
action.signal(15);
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
action.exec(["kitty", "-e", "btop"]);
|
action.exec(["ghostty", "-e", "btop"]);
|
||||||
}
|
}
|
||||||
onRightClicked: {
|
onRightClicked: {
|
||||||
_showPercent = !_showPercent;
|
_showPercent = !_showPercent;
|
||||||
|
|||||||
@@ -101,13 +101,25 @@ if type -q git
|
|||||||
end
|
end
|
||||||
|
|
||||||
if type -q wl-paste
|
if type -q wl-paste
|
||||||
alias gc="git clone \$(wl-paste)"
|
# alias gc="git clone \$(wl-paste)"
|
||||||
|
function gc
|
||||||
|
set -l repo (wl-paste)
|
||||||
|
if not string match -r '^(http|https|git|ssh)://|^git@' "$repo"
|
||||||
|
echo "Error: Clipboard does not contain a valid git repository URL." >&2
|
||||||
|
echo "Error: Clipboard content: $repo" >&2
|
||||||
|
read -P "Enter a valid git repository URL: " repo
|
||||||
|
if not string match -r '^(http|https|git|ssh)://|^git@' "$repo"
|
||||||
|
echo "Error: Invalid git repository URL." >&2
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
git clone $repo
|
||||||
|
end
|
||||||
|
|
||||||
if type -q idea
|
if type -q idea
|
||||||
function pingo
|
function pingo
|
||||||
cd "$HOME/Repositories/PGdP" || return 1
|
cd "$HOME/Repositories/PGdP" || return 1
|
||||||
set -l repo (wl-paste)
|
gc || return 1
|
||||||
git clone $repo || return 1
|
|
||||||
set -l repo_name (basename $repo .git)
|
set -l repo_name (basename $repo .git)
|
||||||
nohup idea $repo_name >/dev/null 2>&1 & disown
|
nohup idea $repo_name >/dev/null 2>&1 & disown
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user