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
|
||||
|
||||
font-family = monospace
|
||||
font-size = 12
|
||||
font-size = 10
|
||||
|
||||
cursor-style = bar
|
||||
adjust-cursor-thickness = 3
|
||||
|
||||
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+W { spawn-sh "zen || zen-browser"; }
|
||||
Mod+X { spawn "gnome-text-editor" "--new-window"; }
|
||||
Mod+B { spawn-sh "pkill -x -n btop || kitty -e btop"; }
|
||||
Mod+T { spawn "ghostty" "+new-window"; }
|
||||
Mod+Return { spawn "ghostty" "+new-window"; }
|
||||
Mod+Shift+T { spawn "kitty"; }
|
||||
Mod+Shift+Return { spawn "kitty"; }
|
||||
Mod+B { spawn-sh "pkill -x -n btop || ghostty -e btop"; }
|
||||
Mod+Shift+T { spawn "ghostty" "+new-window"; }
|
||||
Mod+Shift+Return { spawn "ghostty" "+new-window"; }
|
||||
Mod+T { spawn "kitty"; }
|
||||
Mod+Return { spawn "kitty"; }
|
||||
Mod+Shift+W { spawn "wallpaper-carousel"; }
|
||||
Mod+O { spawn-sh "pkill -x -n pwvucontrol || pwvucontrol"; }
|
||||
|
||||
|
||||
@@ -18,14 +18,14 @@ window-rule {
|
||||
|
||||
// FLoating terminal
|
||||
window-rule {
|
||||
match app-id="kitty"
|
||||
match app-id="com.mitchellh.ghostty"
|
||||
open-floating true
|
||||
default-column-width { proportion 0.5; }
|
||||
}
|
||||
|
||||
// Normal terminal
|
||||
window-rule {
|
||||
match app-id="com.mitchellh.ghostty"
|
||||
match app-id="kitty"
|
||||
default-column-width { proportion 0.3; }
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ MonitorItem {
|
||||
action.signal(15);
|
||||
return ;
|
||||
}
|
||||
action.exec(["kitty", "-e", "btop"]);
|
||||
action.exec(["ghostty", "-e", "btop"]);
|
||||
}
|
||||
|
||||
Process {
|
||||
|
||||
@@ -16,7 +16,7 @@ MonitorItem {
|
||||
action.signal(15);
|
||||
return ;
|
||||
}
|
||||
action.exec(["kitty", "-e", "btop"]);
|
||||
action.exec(["ghostty", "-e", "btop"]);
|
||||
}
|
||||
|
||||
Process {
|
||||
|
||||
@@ -19,7 +19,7 @@ MonitorItem {
|
||||
action.signal(15);
|
||||
return ;
|
||||
}
|
||||
action.exec(["kitty", "-e", "btop"]);
|
||||
action.exec(["ghostty", "-e", "btop"]);
|
||||
}
|
||||
onRightClicked: {
|
||||
_showPercent = !_showPercent;
|
||||
|
||||
@@ -101,13 +101,25 @@ if type -q git
|
||||
end
|
||||
|
||||
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
|
||||
function pingo
|
||||
cd "$HOME/Repositories/PGdP" || return 1
|
||||
set -l repo (wl-paste)
|
||||
git clone $repo || return 1
|
||||
gc || return 1
|
||||
set -l repo_name (basename $repo .git)
|
||||
nohup idea $repo_name >/dev/null 2>&1 & disown
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user