update:test mirror
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
Ldr + l → Refresh LSP
|
||||
Ldr + s → Search Replace Current
|
||||
Ldr + S → Search Replace Global
|
||||
Ldr + cc → Comment/Uncomment
|
||||
Ldr + x → Navigate/Show Errors/Warnings
|
||||
Ctrl + f → Find Search File
|
||||
Ldr + fg → Find Live Grep Search
|
||||
Ldr + ca → Show Code Actions
|
||||
K → Peek Signature
|
||||
gd → Go To Definition
|
||||
gr → Find References
|
||||
Ctrl + l → Clear Highlights
|
||||
Alt + Arrows → Navigate/Switch Panels
|
||||
Ldr + l → Refresh LSP
|
||||
Ctl + f → Scroll Up Cmp
|
||||
Ctl + b → Scroll Down Cmp
|
||||
]d → Next Diagnostic
|
||||
[d → Prev Diagnostic
|
||||
Ldr + s → Search Replace Current
|
||||
Ldr + S → Search Replace Global
|
||||
Ldr + F → Format Code
|
||||
Ldr + x → Clear Diagnostics
|
||||
Ldr + cc → Comment/Uncomment
|
||||
Ldr + xx → Toggle/Show Errors/Warnings
|
||||
Ctrl + f → Find Search File
|
||||
Ldr + fg → Find Live Grep Search
|
||||
Ldr + ca → Show Code Actions
|
||||
K → Peek Signature
|
||||
gd → Go To Definition
|
||||
gr → Find References
|
||||
Ctrl + l → Clear Highlights
|
||||
Alt + Arrows → Navigate/Switch Panels
|
||||
Alt + b → Navigate/Jump Back Buf
|
||||
Alt + n → Navigate/Jump Next Buf
|
||||
Alt + c → Clear Jumps/Buf
|
||||
Alt + q → Clear/Quit Current Jump/Buf
|
||||
Ctrl + Tab → Add File To Tab
|
||||
Ldr + E → Open Directory/netrw
|
||||
(netrw) Ldr + ER → Close netrw
|
||||
(netrw) Ldr + d → Duplicate file
|
||||
(netrw) Ldr + sw → Set Current Root Dir
|
||||
Ldr + e{,<,(,",' → Wrap Word With Wrapper
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
get_current_monitor_width() {
|
||||
# Get cursor position from Hyprland
|
||||
local pos=$(hyprctl cursorpos 2>/dev/null | head -n 1)
|
||||
|
||||
|
||||
if [ -z "$pos" ]; then
|
||||
echo "Error: Could not get cursor position from Hyprland" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
# Extract coordinates (hyprctl cursorpos returns: "x, y")
|
||||
local x=$(echo "$pos" | awk -F',' '{print $1}' | tr -d ' ')
|
||||
local y=$(echo "$pos" | awk -F',' '{print $2}' | tr -d ' ')
|
||||
|
||||
|
||||
# Get the width of the monitor containing the cursor
|
||||
local width=$(hyprctl monitors -j | jq -r --argjson x "$x" --argjson y "$y" '
|
||||
.[] | select(
|
||||
@@ -20,7 +20,7 @@ get_current_monitor_width() {
|
||||
(.x + .width) > $x and
|
||||
(.y + .height) > $y
|
||||
) | .width' | head -n 1)
|
||||
|
||||
|
||||
echo "$width"
|
||||
}
|
||||
|
||||
@@ -47,21 +47,30 @@ else
|
||||
THEME_FILE=~/.config/rofi/help-manager/help-manager.rasi
|
||||
fi
|
||||
|
||||
|
||||
SYSTEM=" System"
|
||||
NVIM=" Neovim"
|
||||
chosen=$(echo -e "$SYSTEM\n$NVIM" | rofi -mesg " Keybinds" -dmenu -p "Action:" -config ~/.config/rofi/config-manager/config-manager.rasi)
|
||||
BASH_HELP=" Bash"
|
||||
chosen=$(echo -e "$SYSTEM\n$NVIM\n$BASH_HELP" | rofi -mesg " Keybinds" -dmenu -p "Action:" -config ~/.config/rofi/config-manager/config-manager.rasi)
|
||||
|
||||
case $chosen in
|
||||
"$NVIM")
|
||||
cat ~/.config/rofi/help-manager/neovim-keybinds.txt | rofi -mesg " Neovim Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
"$SYSTEM")
|
||||
cat ~/.config/rofi/help-manager/system-keybinds.txt | rofi -mesg " System Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
"$NVIM")
|
||||
cat ~/.config/rofi/help-manager/neovim-keybinds.txt | rofi -mesg " Neovim Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
"$SYSTEM")
|
||||
cat ~/.config/rofi/help-manager/system-keybinds.txt | rofi -mesg " System Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
"$BASH_HELP")
|
||||
if [ ! -d "/tmp/firefox-dev" ]; then
|
||||
echo "Creating firefox profile"
|
||||
mkdir -p /tmp/firefox-dev
|
||||
firefox -CreateProfile "dev-profile /tmp/firefox-dev"
|
||||
fi
|
||||
|
||||
firefox -P dev-profile -private-window https://devhints.io/bash &
|
||||
;;
|
||||
esac
|
||||
post_rofi &
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
Super + Return → Terminal
|
||||
Super + B → Browser
|
||||
Super + Shift + q → Quit Window
|
||||
Super + Shift + c → Configs Launcher
|
||||
Super + Shift + x → Settings Launcher
|
||||
Super + Shift + p → Power/System Launcher
|
||||
Super + e → File Manager
|
||||
Super + Shft + q → Quit Window
|
||||
Super + Shft + c → Configs Launcher
|
||||
Super + Shft + x → Settings Launcher
|
||||
Super + Shft + p → Power/System Launcher
|
||||
Super + d → App/Program Launcher
|
||||
Super + t → Toggle Floating Window
|
||||
Super + Arrows → Navigate Windows
|
||||
Super + (0-9) → Navigate To Workspace#
|
||||
Super + Shft + Arrows → Move Windows
|
||||
Super + Shft + (0-9) → Move Window To Workspace#
|
||||
Super + s → Toggle Scratchpad/Special
|
||||
Super + S → Move Win To Scratchpad/Special
|
||||
Super + LMB (Drag) → Move Window
|
||||
Super + RMB (Drag) → Resize Window
|
||||
|
||||
Reference in New Issue
Block a user