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,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 &