This commit is contained in:
fatmeat 2025-05-11 17:32:25 +02:00
parent 851667ba48
commit bd8c6c67ae
4 changed files with 48 additions and 49 deletions

View File

@ -3,39 +3,38 @@
background: #0f111a; background: #0f111a;
background-alt: #1a1c25; background-alt: #1a1c25;
foreground: #cbccc6; foreground: #cbccc6;
selected-background: #ffcc66; selected: #ffcc66;
selected-foreground: #0f111a; selected-foreground: #0f111a;
border: 2; border: 2px;
border-color: #5ccfe6; border-color: #5ccfe6;
padding: 15;
spacing: 5; spacing: 5;
text-color: #cbccc6; padding: 10;
} }
window { window {
location: north; location: north;
width: 40%; anchor: north;
width: 50%;
border: 2px; border: 2px;
padding: 10; padding: 10;
y-offset: 60;
} }
mainbox { mainbox {
background-color: inherit; background-color: inherit;
border: 0; padding: 5;
padding: 0;
} }
listview { listview {
columns: 1;
lines: 8; lines: 8;
border: 0; background-color: inherit;
padding: 0; columns: 1;
spacing: 4; spacing: 4;
} }
element { element {
padding: 2 4; padding: 4 6;
border: 0; background-color: transparent;
} }
element-text { element-text {
@ -43,21 +42,21 @@ element-text {
} }
element selected { element selected {
background: #ffcc66; background-color: @selected;
text-color: #0f111a; text-color: @selected-foreground;
} }
inputbar { inputbar {
children: [ prompt, entry ]; children: [prompt, entry];
padding: 4; background-color: #1a1c25;
background-color: #1f2430; padding: 6;
} }
prompt { prompt {
padding: 0 6 0 0;
text-color: #5ccfe6; text-color: #5ccfe6;
padding: 0 8 0 0;
} }
entry { entry {
text-color: #cbccc6; text-color: @foreground;
} }

View File

@ -2,16 +2,7 @@
@theme "~/.config/rofi/ayu-retro.rasi" @theme "~/.config/rofi/ayu-retro.rasi"
configuration { configuration {
modi: "drun,run,window";
font: "Iosevka SS14 12"; font: "Iosevka SS14 12";
show-icons: false; show-icons: false;
location: 0; modi: "drun,run";
yoffset: 20;
xoffset: 0;
lines: 8;
line-margin: 3;
line-padding: 3;
padding: 10;
width: 40;
hide-scrollbar: true;
} }

View File

@ -1,9 +1,15 @@
#!/bin/sh
choice=$(printf "Shutdown\nReboot\nSuspend\nLogout" | rofi -dmenu -config ~/.config/rofi/config.rasi -p "╔═[ SYSTEM MENU ]═╗") options="Shutdown\nReboot\nLock\nLogout\nCancel"
chosen=$(echo -e "$options" | rofi -dmenu \
-theme ~/.config/rofi/ayu-retro.rasi \
-p "╔═[ POWER MENU ]═╗" \
-lines 5)
case "$choice" in case "$chosen" in
" Shutdown") systemctl poweroff ;; *Shutdown) systemctl poweroff ;;
" Reboot") systemctl reboot ;; *Reboot) systemctl reboot ;;
" Suspend") systemctl suspend ;; *Lock) i3lock -c 000000 ;;
" Logout") i3-msg exit ;; # adjust for your WM *Logout) i3-msg exit ;;
*Cancel) exit 0 ;;
esac esac

View File

@ -1,16 +1,19 @@
#!/bin/sh #!/bin/sh
clear kitty --class BootSplash -e bash -c "
echo -e "\033[0;32m" clear
printf "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n" tput setaf 2
printf "▒▒▒ LOADING SYSTEM INTERFACE █▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n" echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
printf "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n" echo '▒▒▒ LOADING SYSTEM INTERFACE // 198X █▒▒▒▒▒▒▒▒▒▒▒'
sleep 0.6 echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
printf "▒ Establishing secure link...\n" sleep 0.2
sleep 0.4 echo '▒ Establishing secure link...'
printf "▒ Initializing graphical core...\n" sleep 0.2
sleep 0.3 echo '▒ Initializing graphical core...'
printf "▒ Launching interface...\n" sleep 0.1
sleep 0.2 echo '▒ Launching interface...'
echo -e "\033[0m" sleep 0.1
rofi -show drun -theme -config ~/.config/rofi/config.rasi -p "╔═[ SELECT PROGRAM ]═╗" tput sgr0
" &
sleep 1
rofi -show drun -theme ~/.config/rofi/ayu-retro.rasi -p "╔═[ SELECT PROGRAM ]═╗"