dotfiles/.config/rofi/control.rasi
Sarthak b4c6c7dbd5 replace the rofi control centre with a real GTK panel
rofi spawns a process per menu, so every volume nudge and every step back
destroyed and recreated the window. That is the flicker, and no tuning fixes
it. The panel is now one GTK window: a GtkStack for views, real GtkScale
sliders wired to wpctl, status on a timer, and a pidfile so super+x toggles
it shut. Escape steps back inside the same window.

Also: picom no longer fades or animates rofi, ::selection is not valid GTK
css, and the network/bluetooth lists no longer print their payload column.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cn3dHfbgNYdbZvzb1b3GQt
2026-09-04 01:12:49 +05:30

83 lines
1.9 KiB
Text

/* Sakura Line - control centre panel */
* {
main-bg: #0f0d17;
main-bg-trans: #0f0d17d9;
main-fg: #e9eefb;
accent: #92b9ea;
urgent: #e0798f;
select-bg: #92b9ea2b;
select-fg: #cfe0f7;
dim: #7f7796;
border-color: #3d3752;
background-color: transparent;
text-color: @main-fg;
}
window {
transparency: "real";
background-color: @main-bg-trans;
border: 1px;
border-color: @border-color;
border-radius: 14px;
width: 560px;
padding: 0px;
location: center;
anchor: center;
}
mainbox {
padding: 0px;
spacing: 0px;
children: [ inputbar, listview ];
}
inputbar {
padding: 16px 20px;
spacing: 0px;
border: 0px 0px 1px 0px;
border-color: @border-color;
children: [ prompt, entry ];
}
prompt {
text-color: @accent;
padding: 0px 12px 0px 0px;
vertical-align: 0.5;
font: "JetBrainsMono Nerd Font Bold 13";
}
entry {
text-color: @main-fg;
placeholder: "type to filter";
placeholder-color: @dim;
vertical-align: 0.5;
cursor: text;
font: "JetBrainsMono Nerd Font 13";
}
listview {
lines: 13;
columns: 1;
fixed-height: false;
scrollbar: false;
padding: 10px 10px 14px 10px;
spacing: 2px;
}
element {
padding: 10px 12px;
border-radius: 9px;
text-color: @main-fg;
}
element selected {
background-color: @select-bg;
text-color: @select-fg;
}
element-text {
text-color: inherit;
vertical-align: 0.5;
font: "JetBrainsMono Nerd Font 12";
}