rofi 5
This commit is contained in:
parent
fa62e73c92
commit
ecc92f9d14
@ -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 rofi -show drun -theme ~/.config/rofi/ayu-retro.rasi -p "╔═[ SELECT PROGRAM ]═╗"
|
bindsym $mod+d exec --no-startup-id ~/.config/rofi/rofi_slide.sh
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+j focus left
|
bindsym $mod+j focus left
|
||||||
|
|||||||
@ -7,37 +7,41 @@
|
|||||||
selected-foreground: #0f111a;
|
selected-foreground: #0f111a;
|
||||||
border: 2px;
|
border: 2px;
|
||||||
border-color: #5ccfe6;
|
border-color: #5ccfe6;
|
||||||
|
padding: 15;
|
||||||
spacing: 5;
|
spacing: 5;
|
||||||
padding: 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
location: north;
|
location: north;
|
||||||
anchor: north;
|
anchor: north;
|
||||||
y-offset: 0;
|
y-offset: 0;
|
||||||
width: 50%;
|
width: 40%;
|
||||||
border: 2px;
|
border: 2px;
|
||||||
|
padding: 10;
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
mainbox {
|
mainbox {
|
||||||
background-color: @background;
|
background-color: inherit;
|
||||||
padding: 5;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
lines: 8;
|
|
||||||
columns: 1;
|
columns: 1;
|
||||||
background-color: transparent;
|
lines: 8;
|
||||||
padding: 5 0 0 0;
|
|
||||||
spacing: 4;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
spacing: 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
element {
|
element {
|
||||||
padding: 6 8;
|
padding: 2 4;
|
||||||
background-color: transparent;
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
text-color: @foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected {
|
element selected {
|
||||||
@ -45,19 +49,15 @@ element selected {
|
|||||||
text-color: @selected-foreground;
|
text-color: @selected-foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
inputbar {
|
||||||
children: [prompt, entry];
|
children: [ prompt, entry ];
|
||||||
|
padding: 4;
|
||||||
background-color: @background-alt;
|
background-color: @background-alt;
|
||||||
padding: 6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt {
|
prompt {
|
||||||
|
padding: 0 6 0 0;
|
||||||
text-color: #5ccfe6;
|
text-color: #5ccfe6;
|
||||||
padding: 0 8 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
|
|||||||
17
rofi/rofi_slide.sh
Normal file
17
rofi/rofi_slide.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/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