Skip to content

Commit f4f6e71

Browse files
Save changes at: 1780131717
1 parent 689d8d0 commit f4f6e71

1 file changed

Lines changed: 78 additions & 2 deletions

File tree

sway.sh

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,85 @@ EOF
364364
function configure_application_launcher() {
365365
echo "==> Configure application launcher."
366366

367-
mkdir -p "$HOME"/.config/rofy/
367+
mkdir -p "$HOME"/.config/rofi/
368368

369-
cat > "$HOME"/.config/rofy/rofy.ini << 'EOF'
369+
cat > "$HOME"/.config/rofi/config.rasi << 'EOF'
370+
configuration {
371+
modi: "drun,run";
372+
show-icons: true;
373+
drun-display-format: "{name}";
374+
}
375+
376+
* {
377+
bg: #002b36;
378+
bg-alt: #073642;
379+
fg: #839496;
380+
fg-alt: #93a1a1;
381+
accent: #268bd2;
382+
urgent: #dc322f;
383+
384+
background-color: transparent;
385+
text-color: @fg;
386+
font: "JetBrainsMono Nerd Font 11";
387+
}
388+
389+
window {
390+
background-color: @bg;
391+
border: 2px;
392+
border-color: @accent;
393+
border-radius: 8px;
394+
width: 40%;
395+
padding: 12px;
396+
}
397+
398+
mainbox {
399+
children: [ inputbar, listview ];
400+
spacing: 8px;
401+
}
402+
403+
inputbar {
404+
background-color: @bg-alt;
405+
text-color: @fg-alt;
406+
padding: 8px;
407+
border-radius: 6px;
408+
spacing: 8px;
409+
children: [ prompt, entry ];
410+
}
411+
412+
prompt {
413+
text-color: @accent;
414+
}
415+
416+
entry {
417+
placeholder: "Search...";
418+
placeholder-color: @fg;
419+
}
420+
421+
listview {
422+
lines: 10;
423+
spacing: 4px;
424+
scrollbar: false;
425+
}
426+
427+
element {
428+
padding: 6px 8px;
429+
border-radius: 6px;
430+
}
431+
432+
element selected {
433+
background-color: @accent;
434+
text-color: @bg;
435+
}
436+
437+
element-icon {
438+
size: 1.1em;
439+
padding: 0 6px 0 0;
440+
}
441+
442+
element-text {
443+
text-color: inherit;
444+
vertical-align: 0.5;
445+
}
370446
EOF
371447
}
372448

0 commit comments

Comments
 (0)