rofi 7
This commit is contained in:
parent
ecc92f9d14
commit
55adce51c0
@ -13,7 +13,7 @@ tiling_drag modifier
|
|||||||
#exec base
|
#exec base
|
||||||
bindsym $mod+Return exec kitty
|
bindsym $mod+Return exec kitty
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
bindsym $mod+d exec --no-startup-id ~/.config/rofi/rofi_slide.sh
|
bindsym $mod+d exec --no-startup-id ~/.config/rofi/retro_launcher.sh
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
|
|||||||
@ -5,43 +5,56 @@
|
|||||||
foreground: #cbccc6;
|
foreground: #cbccc6;
|
||||||
selected: #ffcc66;
|
selected: #ffcc66;
|
||||||
selected-foreground: #0f111a;
|
selected-foreground: #0f111a;
|
||||||
border: 2px;
|
border: 1px;
|
||||||
border-color: #5ccfe6;
|
border-color: #5ccfe6;
|
||||||
padding: 15;
|
padding: 5;
|
||||||
spacing: 5;
|
spacing: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
location: north;
|
location: north;
|
||||||
anchor: north;
|
anchor: north;
|
||||||
y-offset: 0;
|
y-offset: 0;
|
||||||
width: 40%;
|
width: 35%;
|
||||||
border: 2px;
|
border: 1px;
|
||||||
padding: 10;
|
padding: 5;
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
mainbox {
|
mainbox {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
border: 0;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt, entry ];
|
||||||
|
background-color: #1f2430;
|
||||||
|
padding: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
text-color: #5ccfe6;
|
||||||
|
padding: 0 5 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
columns: 1;
|
columns: 1;
|
||||||
lines: 8;
|
lines: 10;
|
||||||
border: 0;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
spacing: 4;
|
border: 0;
|
||||||
|
spacing: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
element {
|
element {
|
||||||
padding: 2 4;
|
padding: 1 4;
|
||||||
border: 0;
|
border: 1px;
|
||||||
}
|
border-color: #3e4452;
|
||||||
|
background-color: @background-alt;
|
||||||
element-text {
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected {
|
element selected {
|
||||||
@ -49,17 +62,6 @@ element selected {
|
|||||||
text-color: @selected-foreground;
|
text-color: @selected-foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputbar {
|
element-text {
|
||||||
children: [ prompt, entry ];
|
|
||||||
padding: 4;
|
|
||||||
background-color: @background-alt;
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
padding: 0 6 0 0;
|
|
||||||
text-color: #5ccfe6;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
text-color: @foreground;
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@ kitty --class BootSplash -e bash -c "
|
|||||||
clear
|
clear
|
||||||
tput setaf 2
|
tput setaf 2
|
||||||
echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
|
echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
|
||||||
echo '▒▒▒ LOADING SYSTEM INTERFACE // 198X █▒▒▒▒▒▒▒▒▒▒▒'
|
echo '▒▒▒ LOADING SYSTEM INTERFACE █▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
|
||||||
echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
|
echo '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓'
|
||||||
sleep 0.2
|
sleep 0.2
|
||||||
echo '▒ Establishing secure link...'
|
echo '▒ Establishing secure link...'
|
||||||
|
|||||||
@ -1,17 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Launch ROFI and get its window ID
|
|
||||||
rofi -show drun -theme ~/.config/rofi/themes/ayu-retro.rasi &
|
|
||||||
sleep 0.1 # Wait for the window to appear
|
|
||||||
ROFI_WID=$(xdotool search --onlyvisible --class rofi | head -n 1)
|
|
||||||
|
|
||||||
# Get screen width and calculate center position
|
|
||||||
SCREEN_WIDTH=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -d'x' -f1)
|
|
||||||
WINDOW_WIDTH=$(xdotool getwindowgeometry $ROFI_WID | awk '/Geometry/{print $2}' | cut -d'x' -f1)
|
|
||||||
X_POS=$(( (SCREEN_WIDTH - WINDOW_WIDTH) / 2 ))
|
|
||||||
|
|
||||||
# Animate slide-down
|
|
||||||
for Y in $(seq -10 5 100); do
|
|
||||||
xdotool windowmove $ROFI_WID $X_POS $Y
|
|
||||||
sleep 0.01
|
|
||||||
done
|
|
||||||
Loading…
x
Reference in New Issue
Block a user