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 &