add:wip mango
This commit is contained in:
152
mango/rofi/help-manager/help-manager.rasi
Normal file
152
mango/rofi/help-manager/help-manager.rasi
Normal file
@@ -0,0 +1,152 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
font: "Geist 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
display-drun: " ";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 498px;
|
||||
width: 1110px;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "imageBoxOverlay" , "listbox", "rightTab" ];
|
||||
background-color: @base-200-opa;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
rightTab {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(135deg,#B37ADE26,#d5aed6d9);
|
||||
expand: false;
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
background-color: rgba(0,0,0,0.9);
|
||||
margin: 1.4em 0.8em 1.4em 1.4em;
|
||||
border-radius: 1em;
|
||||
padding: 0.6em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#f3e2a9,#DE7AB9,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/neco/14.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
// Lists //
|
||||
listbox {
|
||||
spacing: 0em;
|
||||
padding: 1.4em 0.8em 1.4em 0em;
|
||||
children: [ "inputbar" , "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
// Inputs //
|
||||
inputbar {
|
||||
enabled: true;
|
||||
margin: 0.2em 0.8em 0.8em 0.8em;
|
||||
children: [ "prompt", "entry" ];
|
||||
background-color: transparent;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
prompt {
|
||||
font: "Geist 14";
|
||||
text-color: #E5C38F;
|
||||
background-color: transparent;
|
||||
padding: 0.8em 0.5em 0em 0.5em;
|
||||
}
|
||||
entry {
|
||||
font: "Geist 11";
|
||||
text-color: #f5e0dcff;
|
||||
background-color: #1E1B21;
|
||||
background-image: linear-gradient(135deg,#2E2A33,#1E1B21);
|
||||
border-radius: 0.5em;
|
||||
border-color: @secondary;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: #BF9FD875;
|
||||
border: 1px;
|
||||
padding: 0.4em 0.2em 0.2em 0.4em;
|
||||
enabled: true;
|
||||
}
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 0em;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 0.4em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 0em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
font: "Geist Mono 10";
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
29
mango/rofi/help-manager/neovim-keybinds.txt
Normal file
29
mango/rofi/help-manager/neovim-keybinds.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
42
mango/rofi/help-manager/rofi-help-manager.sh
Executable file
42
mango/rofi/help-manager/rofi-help-manager.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
THEME_FILE=~/.config/rofi/help-manager/help-manager.rasi
|
||||
post_rofi() {
|
||||
local image_dir="$HOME/.config/rofi/images/neco"
|
||||
local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE"
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
SYSTEM=" System"
|
||||
NVIM=" Neovim"
|
||||
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 ""
|
||||
;;
|
||||
"$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 &
|
||||
22
mango/rofi/help-manager/system-keybinds.txt
Normal file
22
mango/rofi/help-manager/system-keybinds.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
Super + ALT + p → Copy/Save Screenshot
|
||||
Super + ALT + v → Screen Region Video Capture
|
||||
Super + Return → Terminal
|
||||
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 + Shft + Arrows → Move Windows
|
||||
Super + LMB (Drag) → Move Window
|
||||
Super + RMB (Drag) → Resize Window
|
||||
Super + , (comma) → Toggle Tile Mode
|
||||
Super + . (period) → Toggle Scroller Mode
|
||||
Ctrl + (0-9) → Navigate To Workspace#
|
||||
Ctrl + Super + L/R Arr → Move L/R With Focused Window
|
||||
Alt + (0-9) → Move Window To Workspace#
|
||||
Alt + a → Toggle Maximize Window
|
||||
Alt + f → Toggle Fullscreen Window
|
||||
Alt + tab → Toggle Overview Mode
|
||||
Reference in New Issue
Block a user