From ef098951dff6b5b22389318faad4f041ef37eea0 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 20 Jul 2023 03:29:34 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96rofi=20windows=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/rofi/colors.rasi | 2 +- home/config/rofi/windows.rasi | 63 ++++++++++------------------------- 2 files changed, 19 insertions(+), 46 deletions(-) diff --git a/home/config/rofi/colors.rasi b/home/config/rofi/colors.rasi index 3885d6b..91bd4a7 100644 --- a/home/config/rofi/colors.rasi +++ b/home/config/rofi/colors.rasi @@ -4,7 +4,7 @@ padding: 0; spacing: 0; - bg: #39404f80; + bg: #57606fae; fg: #f8f8f2; dark: #39404f; red: #bf616a; diff --git a/home/config/rofi/windows.rasi b/home/config/rofi/windows.rasi index a10053a..48bc853 100644 --- a/home/config/rofi/windows.rasi +++ b/home/config/rofi/windows.rasi @@ -1,16 +1,8 @@ configuration { modes: "windowcd"; icon-theme: "Nordzy-cyan-dark"; - - window { - display-name: ""; - } - - windowcd { - display-name: ""; - } - - window-format: "{c} - {t}"; + //window-thumbnail: true; + window-format: "{c:20}\n{t:25}"; } @theme "./colors.rasi" @@ -18,68 +10,49 @@ configuration { window { transparency: "real"; - width: 720px; + location: center; + width: 1200px; border-radius: 4px; background-color: @bg; } mainbox { - padding: 24px; - children: [inputbar, listview]; -} - -inputbar { - background-color: @grey; - border-radius: 6px; - margin: 12px 0; - children: [prompt, entry]; -} - -entry { - background-color: transparent; - padding: 16px 4px; - font: "Menlo 16"; vertical-align: 0.5; + padding: 48px 24px; + children: [ listview ]; } -prompt { - padding: 16px; - font: "'Material Icons' bold 24px"; - vertical-align: 0.5; - background-color: transparent; -} listview { - lines: 8; - scrollbar: true; + flow: horizontal; + fixed-columns: true; + columns: 3; + lines: 2; cycle: false; background-color: transparent; } -scrollbar { - handle-width: 5px ; - handle-color: @blue; - background-color: @bg; -} + element { - padding: 0 12px; - margin: 0 12px 0 0; + //orientation: vertical; + padding: 32px 6px; + margin: 12px 24px; border-radius: 6px; text-color: @blue; - background-color: transparent; + background-color: @grey; children: [element-icon, element-text]; } element-icon { - size: 48; - padding: 12px 10px; + size: 64; + padding: 0 10px; background-color: transparent; } element-text { padding: 12px 0; - font: "Menlo 16"; + font: "Menlo 14"; vertical-align: 0.5; text-color: inherit; background-color: transparent;