diff --git a/rofi/ayu-retro.rasi b/rofi/ayu-retro.rasi index ed3ee91..ba75bcd 100644 --- a/rofi/ayu-retro.rasi +++ b/rofi/ayu-retro.rasi @@ -3,39 +3,38 @@ background: #0f111a; background-alt: #1a1c25; foreground: #cbccc6; - selected-background: #ffcc66; + selected: #ffcc66; selected-foreground: #0f111a; - border: 2; + border: 2px; border-color: #5ccfe6; - padding: 15; spacing: 5; - text-color: #cbccc6; + padding: 10; } window { location: north; - width: 40%; + anchor: north; + width: 50%; border: 2px; padding: 10; + y-offset: 60; } mainbox { background-color: inherit; - border: 0; - padding: 0; + padding: 5; } listview { - columns: 1; lines: 8; - border: 0; - padding: 0; + background-color: inherit; + columns: 1; spacing: 4; } element { - padding: 2 4; - border: 0; + padding: 4 6; + background-color: transparent; } element-text { @@ -43,21 +42,21 @@ element-text { } element selected { - background: #ffcc66; - text-color: #0f111a; + background-color: @selected; + text-color: @selected-foreground; } inputbar { - children: [ prompt, entry ]; - padding: 4; - background-color: #1f2430; + children: [prompt, entry]; + background-color: #1a1c25; + padding: 6; } prompt { - padding: 0 6 0 0; text-color: #5ccfe6; + padding: 0 8 0 0; } entry { - text-color: #cbccc6; + text-color: @foreground; } diff --git a/rofi/config.rasi b/rofi/config.rasi index c98fe8c..8646937 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -2,16 +2,7 @@ @theme "~/.config/rofi/ayu-retro.rasi" configuration { - modi: "drun,run,window"; font: "Iosevka SS14 12"; show-icons: false; - location: 0; - yoffset: 20; - xoffset: 0; - lines: 8; - line-margin: 3; - line-padding: 3; - padding: 10; - width: 40; - hide-scrollbar: true; + modi: "drun,run"; } diff --git a/rofi/powermenu.sh b/rofi/powermenu.sh index 3b96c82..743edc2 100755 --- a/rofi/powermenu.sh +++ b/rofi/powermenu.sh @@ -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 - " Shutdown") systemctl poweroff ;; - " Reboot") systemctl reboot ;; - " Suspend") systemctl suspend ;; - " Logout") i3-msg exit ;; # adjust for your WM +case "$chosen" in + *Shutdown) systemctl poweroff ;; + *Reboot) systemctl reboot ;; + *Lock) i3lock -c 000000 ;; + *Logout) i3-msg exit ;; + *Cancel) exit 0 ;; esac diff --git a/rofi/retro_launcher.sh b/rofi/retro_launcher.sh index 368cc19..7ef3a92 100755 --- a/rofi/retro_launcher.sh +++ b/rofi/retro_launcher.sh @@ -1,16 +1,19 @@ #!/bin/sh -clear -echo -e "\033[0;32m" -printf "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n" -printf "▒▒▒ LOADING SYSTEM INTERFACE █▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\n" -printf "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\n" -sleep 0.6 -printf "▒ Establishing secure link...\n" -sleep 0.4 -printf "▒ Initializing graphical core...\n" -sleep 0.3 -printf "▒ Launching interface...\n" -sleep 0.2 -echo -e "\033[0m" -rofi -show drun -theme -config ~/.config/rofi/config.rasi -p "╔═[ SELECT PROGRAM ]═╗" +kitty --class BootSplash -e bash -c " + clear + tput setaf 2 + echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓' + echo '▒▒▒ LOADING SYSTEM INTERFACE // 198X █▒▒▒▒▒▒▒▒▒▒▒' + echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓' + sleep 0.2 + echo '▒ Establishing secure link...' + sleep 0.2 + echo '▒ Initializing graphical core...' + sleep 0.1 + echo '▒ Launching interface...' + sleep 0.1 + tput sgr0 +" & +sleep 1 +rofi -show drun -theme ~/.config/rofi/ayu-retro.rasi -p "╔═[ SELECT PROGRAM ]═╗"