migration

This commit is contained in:
kokopi-dev
2025-10-28 16:23:11 +09:00
commit 2f27c335cf
116 changed files with 8221 additions and 0 deletions

View File

@@ -0,0 +1,154 @@
configuration {
hover-select: true;
me-select-entry: "MousePrimary";
me-accept-entry: "!MousePrimary";
font: "Geist 12";
show-icons: true;
icon-theme: "Papirus";
display-drun: " ";
}
@theme "~/.config/rofi/theme.rasi"
// Main //
window {
height: 100%;
width: 100%;
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;
margin: 24% 27.5%;
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/25.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: "Fira Code Retina 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.7em 0.9em 0.7em 0.7em;
enabled: true;
}
listview {
enabled: true;
spacing: 0.6em;
padding: 0em 1em;
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 1.5em;
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: 1.5em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
element-text {
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;
}

View File

@@ -0,0 +1,154 @@
configuration {
hover-select: true;
me-select-entry: "MousePrimary";
me-accept-entry: "!MousePrimary";
font: "Geist 12";
show-icons: true;
icon-theme: "Papirus";
display-drun: " ";
}
@theme "~/.config/rofi/theme.rasi"
// Main //
window {
height: 100%;
width: 100%;
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;
margin: 25% 17%;
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/25.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: "Fira Code Retina 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.7em 0.9em 0.7em 0.7em;
enabled: true;
}
listview {
enabled: true;
spacing: 0.6em;
padding: 0em 1em;
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 1.5em;
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: 1.5em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
element-text {
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;
}

View File

@@ -0,0 +1,50 @@
#!/bin/bash
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(
.x <= $x and
.y <= $y and
(.x + .width) > $x and
(.y + .height) > $y
) | .width' | head -n 1)
echo "$width"
}
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
}
width=$(get_current_monitor_width)
if [ "$width" -gt 2256 ]; then
#is wider than laptop monitor
THEME_FILE=~/.config/rofi/app-manager/app-manager-wide.rasi
else
#laptop monitor
THEME_FILE=~/.config/rofi/app-manager/app-manager.rasi
fi
rofi -show drun -theme $THEME_FILE
post_rofi &

View File

@@ -0,0 +1,129 @@
configuration {
font: "Geist 12";
hover-select: true;
me-select-entry: "MousePrimary";
me-accept-entry: "!MousePrimary";
click-to-exit: true;
}
@theme "~/.config/rofi/theme.rasi"
// Main //
window {
width: 20.3em;
height: 13.5em;
fullscreen: false;
enabled: true;
cursor: "default";
spacing: 0em;
opacity: 0;
background-color: transparent;
}
mainbox {
enabled: true;
spacing: 0em;
orientation: vertical;
children: [ "message", "mainContent" ];
border: 1px;
border-color: @primary-opa;
border-radius: 1em;
background-color: transparent;
}
// decorative text at top
message {
enabled: true;
background-color: @base-200;
text-color: @primary;
border: none;
}
textbox {
padding: 12px 1em 12px 0px;
font: "Octal Light 18";
letter-spacing: 5px;
horizontal-align: 0.0;
vertical-align: 0.5;
}
mainContent {
orientation: horizontal;
children: [ "listview", "imageBoxOverlay" ];
background-color: @base-200-opa;
padding: 1em 0 1em 0;
}
imageBoxOverlay {
children: ["imageBox"];
margin: 0em 1em 0em 0em;
border-radius: 1em;
padding: 0.4em;
background-image: linear-gradient(135deg,#B37ADE,#F59FD5,#7A7FDE);
}
imageBox {
enabled: true;
background-image: url("~/.config/rofi/images/sg/12.jpg", width);
border-radius: 1em;
}
// Lists //
listview {
enabled: true;
spacing: 0.6em;
padding: 0em 1em;
columns: 1;
lines: 3;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
expand: true;
fixed-height: true;
fixed-columns: true;
cursor: "default";
background-color: transparent;
}
// Elements //
element {
enabled: true;
spacing: 1em;
padding: 0.4em 0.5em 0.4em 1.5em;
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: 1.5em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
element-text {
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;
}

View File

@@ -0,0 +1,78 @@
#!/bin/bash
# ln -s ~/.config/rofi/config-manager/rofi-config-manager.sh ~/.local/bin/rofi-config-manager.sh
THEME_FILE=~/.config/rofi/config-manager/config-manager.rasi
post_rofi() {
local image_dir="$HOME/.config/rofi/images/sg"
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
}
NVIM=" Neovim"
HYPRLAND=" Hyprland"
WAYBAR=" Waybar"
GHOSTTY=" Ghostty"
ROFI_APP=" Rofi App"
ROFI_SETT=" Rofi Sett"
ROFI_CONF=" Rofi Conf"
ROFI_POW=" Rofi Pow"
HYPRLOCK=" Hyprlock"
HYPRIDLE="󰒲 Hypridle"
HYPRPAPER=" Hyprpaper"
MAKO=" Mako"
chosen=$(echo -e "$NVIM\n$HYPRLAND\n$WAYBAR\n$GHOSTTY\n$ROFI_APP\n$ROFI_SETT\n$ROFI_CONF\n$ROFI_POW\n$HYPRLOCK\n$HYPRIDLE\n$MAKO\n$HYPRPAPER" | rofi -mesg " Configs" -dmenu -p "Action:" -config ~/.config/rofi/config-manager/config-manager.rasi)
case $chosen in
"$NVIM")
ghostty -e nvim ~/.config/nvim/init.lua & disown
ghostty -e nvim ~/.config/nvim/lua/settings.lua & disown
;;
"$HYPRLAND")
ghostty -e nvim ~/.config/hypr/hyprland.conf & disown
;;
"$HYPRLOCK")
ghostty -e nvim ~/.config/hypr/hyprlock.conf & disown
;;
"$HYPRIDLE")
ghostty -e nvim ~/.config/hypr/hypridle.conf & disown
;;
"$WAYBAR")
ghostty -e nvim ~/.config/waybar/config.jsonc & disown
ghostty -e nvim ~/.config/waybar/style.css & disown
;;
"$GHOSTTY")
ghostty -e nvim ~/.config/ghostty/config & disown
ghostty -e nvim ~/.config/ghostty/themes/navarch & disown
;;
"$MAKO")
ghostty -e nvim ~/.config/mako/config & disown
;;
"$ROFI_APP")
ghostty -e nvim ~/.config/rofi/app-manager/app-manager.rasi & disown
ghostty -e nvim ~/.config/rofi/app-manager/rofi-app-manager.sh & disown
;;
"$ROFI_SETT")
ghostty -e nvim ~/.config/rofi/settings-manager/settings-manager.rasi & disown
ghostty -e nvim ~/.config/rofi/settings-manager/rofi-settings-manager.sh & disown
;;
"$ROFI_CONF")
ghostty -e nvim ~/.config/rofi/config-manager/config-manager.rasi & disown
ghostty -e nvim ~/.config/rofi/config-manager/rofi-config-manager.sh & disown
;;
"$ROFI_POW")
ghostty -e nvim ~/.config/rofi/power-manager/power-manager.rasi & disown
ghostty -e nvim ~/.config/rofi/power-manager/rofi-power-manager.sh & disown
;;
"$HYPRPAPER")
ghostty -e nvim ~/.config/hypr/hyprpaper.conf & disown
;;
esac
post_rofi &

View 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: 100%;
width: 100%;
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;
margin: 19% 22.5%;
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/11.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: "Fira Code Retina 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.7em 0.9em 0.7em 0.7em;
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 {
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;
}

View 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: 100%;
width: 100%;
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;
margin: 21.2% 8%;
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/3.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: "Fira Code Retina 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.7em 0.9em 0.7em 0.7em;
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 {
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;
}

View File

@@ -0,0 +1,13 @@
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

View File

@@ -0,0 +1,67 @@
#!/bin/bash
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(
.x <= $x and
.y <= $y and
(.x + .width) > $x and
(.y + .height) > $y
) | .width' | head -n 1)
echo "$width"
}
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
}
width=$(get_current_monitor_width)
if [ "$width" -gt 2256 ]; then
echo "showing wide"
#is wider than laptop monitor
THEME_FILE=~/.config/rofi/help-manager/help-manager-wide.rasi
else
#laptop monitor
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)
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 ""
;;
esac
post_rofi &

View File

@@ -0,0 +1,11 @@
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 + d → App/Program Launcher
Super + t → Toggle Floating Window
Super + Arrows → Navigate Windows
Super + Shft + Arrows → Move Windows
Super + s → Toggle Scratchpad/Special

View File

@@ -0,0 +1,116 @@
configuration {
hover-select: true;
me-select-entry: "MousePrimary";
me-accept-entry: "!MousePrimary";
click-to-exit: true;
}
@theme "~/.config/rofi/theme.rasi"
// Main //
window {
font: "Geist 12";
width: 15em;
height: 13.75em;
transparency: "real";
enabled: true;
cursor: "default";
spacing: 0em;
background-color: transparent;
border-radius: 1em;
}
mainbox {
enabled: true;
spacing: 0em;
orientation: vertical;
children: [ "message", "listview" ];
background-color: @base-200-opa;
border-radius: 1em;
border-color: @primary-opa;
border: 3px;
}
// decorative text at top
message {
enabled: true;
background-color: @base-200;
text-color: @primary;
border: none;
}
textbox {
padding: 12px 1em 12px 0px;
font: "Octal Light 20";
horizontal-align: 0.0;
vertical-align: 0.5;
}
// Lists //
listview {
enabled: true;
spacing: 0.6em;
padding: 1em;
columns: 1;
lines: 3;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
expand: true;
fixed-height: true;
fixed-columns: true;
cursor: "default";
background-color: transparent;
}
// Elements //
element {
enabled: true;
spacing: 1em;
padding: 0.4em 0.5em 0.4em 3.3em;
cursor: pointer;
background-color: transparent;
}
element.normal.normal,
element.alternate.normal {
background-color: transparent;
text-color: @neutral;
}
element selected.normal {
border-radius: 0.5em;
// background-color: @primary-opa;
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
text-color: @secondary;
border-color: @primary-opa;
border: 1px;
}
element-icon {
size: 1.5em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
element-text {
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;
}

View File

@@ -0,0 +1,23 @@
#!/bin/bash
# save as ~/.local/bin/rofi-power-manager.sh
LOCKSCREEN=" Lock Screen"
SLEEP="󰤄 Sleep"
REBOOT=" Reboot"
SHUTDOWN=" Shutdown"
chosen=$(echo -e "$SLEEP\n$REBOOT\n$SHUTDOWN\n$LOCKSCREEN" | rofi -mesg "󰚥 $HOSTNAME" -dmenu -p "Action:" -config ~/.config/rofi/power-manager/power-manager.rasi)
case $chosen in
"$SLEEP")
systemctl suspend-then-hibernate
;;
"$LOCKSCREEN")
pid hyprlock || ~/.config/hypr/run-hyprlock.sh
;;
"$REBOOT")
systemctl reboot
;;
"$SHUTDOWN")
systemctl poweroff
;;
esac

View File

@@ -0,0 +1,87 @@
#!/bin/bash
# run init setup.sh to symlink scripts
THEME_FILE=~/.config/rofi/settings-manager/settings-manager.rasi
get_current_monitor() {
# Use Hyprland's native cursor position
local pos=$(hyprctl cursorpos 2>/dev/null)
if [ -z "$pos" ]; then
echo "Error: Could not get cursor position from Hyprland" >&2
return 1
fi
# Strip whitespace and extract coordinates
local x=$(echo "$pos" | cut -d',' -f1 | tr -d ' ')
local y=$(echo "$pos" | cut -d',' -f2 | tr -d ' ')
hyprctl monitors -j | jq -r --arg x "$x" --arg y "$y" '
.[] | select(
.x <= ($x | tonumber) and
.y <= ($y | tonumber) and
(.x + .width) >= ($x | tonumber) and
(.y + .height) >= ($y | tonumber)
) | .name'
}
# Store the monitor at the start
if [ -z "$ROFI_MONITOR" ]; then
export ROFI_MONITOR=$(get_current_monitor)
fi
post_rofi() {
local image_dir="$HOME/.config/rofi/images/sg"
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
}
MONITOR_RELOAD="󰑓 Refresh"
MONITOR_SETTINGS="󰍹 Settings"
MONITOR_BACK=" Back"
MONITOR=" Monitor"
SOUND=" Sound"
BLUETOOTH="󰂯 Bluetooth"
NETWORK="󰲝 Network"
NIGHTLIGHT=" Night Light"
if [[ "$1" == "monitor" ]]; then
chosen=$(echo -e "$MONITOR_RELOAD\n$MONITOR_SETTINGS\n$MONITOR_BACK" | rofi -mesg "󰍹 Monitor" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR")
else
chosen=$(echo -e "$MONITOR\n$SOUND\n$BLUETOOTH\n$NETWORK\n$NIGHTLIGHT" | rofi -mesg " Settings" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR")
fi
case $chosen in
"$MONITOR_BACK")
bash ~/.config/rofi/settings-manager/rofi-settings-manager.sh
;;
"$MONITOR")
bash ~/.config/rofi/settings-manager/rofi-settings-manager.sh "monitor"
;;
"$MONITOR_RELOAD")
bash ~/.config/hypr/reload-monitors.sh
;;
"$MONITOR_SETTINGS")
ghostty -e hyprmon
;;
"$SOUND")
pavucontrol
;;
"$BLUETOOTH")
blueman-manager
;;
"$NETWORK")
ghostty -e nmtui
;;
"$NIGHTLIGHT")
ghostty -e ~/.config/wlsunset/run-wlsunset.sh
;;
esac
post_rofi &

View File

@@ -0,0 +1,129 @@
configuration {
font: "Geist 12";
hover-select: true;
me-select-entry: "MousePrimary";
me-accept-entry: "!MousePrimary";
click-to-exit: true;
}
@theme "~/.config/rofi/theme.rasi"
// Main //
window {
width: 26em;
height: 15.8em;
fullscreen: false;
enabled: true;
cursor: "default";
spacing: 0em;
opacity: 0;
background-color: transparent;
extend: false;
}
mainbox {
enabled: true;
spacing: 0em;
orientation: vertical;
children: [ "message", "mainContent" ];
border-color: @primary-opa;
border: 1px;
border-radius: 1em;
background-color: transparent;
}
// decorative text at top
message {
enabled: true;
background-color: @base-200;
text-color: @primary;
border: none;
}
textbox {
padding: 12px 1em 12px 0px;
font: "Octal Light 18";
horizontal-align: 0.0;
vertical-align: 0.5;
}
mainContent {
padding: 1em 0;
orientation: horizontal;
children: [ "listview", "imageBoxOverlay" ];
background-color: @base-200-opa;
}
imageBoxOverlay {
children: ["imageBox"];
margin: 0em 1em 0em 0em;
border-radius: 1em;
padding: 0.4em;
background-image: linear-gradient(135deg,#B575E6,#EBD488,#9084E8);
}
imageBox {
enabled: true;
background-image: url("~/.config/rofi/images/sg/15.jpg", width);
border-radius: 1em;
}
// Lists //
listview {
enabled: true;
spacing: 0.6em;
padding: 0em 1em;
columns: 1;
lines: 3;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
expand: true;
fixed-height: true;
fixed-columns: true;
cursor: "default";
background-color: transparent;
}
// Elements //
element {
enabled: true;
spacing: 1em;
padding: 0.4em 0em 0.4em 2.9em;
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: 1.5em;
cursor: inherit;
background-color: transparent;
text-color: inherit;
}
element-text {
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;
}

7
hyprland/rofi/setup.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
ln -s ~/.config/rofi/app-manager/rofi-app-manager.sh ~/.local/bin/rofi-app-manager.sh
ln -s ~/.config/rofi/config-manager/rofi-config-manager.sh ~/.local/bin/rofi-config-manager.sh
ln -s ~/.config/rofi/settings-manager/rofi-settings-manager.sh ~/.local/bin/rofi-settings-manager.sh
ln -s ~/.config/rofi/power-manager/rofi-power-manager.sh ~/.local/bin/rofi-power-manager.sh
ln -s ~/.config/rofi/help-manager/rofi-help-manager.sh ~/.local/bin/rofi-help-manager.sh

16
hyprland/rofi/theme.rasi Normal file
View File

@@ -0,0 +1,16 @@
* {
base-300: #000000;
base-100: #393342;
base-200: #211C2E;
base-200-opa: #3D3445a6;
neutral: #BAB6A9;
neutral-content:#5C543E;
primary: #d5aed6;
primary-opa: #d5aed699;
secondary: #f3e2a9;
accent: #7866C4;
success: #a3be8c;
error: #C97F87;
}