From 368f6e8d986080851d29d1ad26f49757eceb6ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= <email@thomasave.be> Date: Fri, 12 Nov 2021 15:14:13 +0100 Subject: [PATCH] Update rofi design --- rofi/.toggle_rofi.sh | 6 ++++++ rofi/config.rasi | 2 +- rofi/material-ocean.rasi | 12 +++++++----- rofi/show-calculator.sh | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100755 rofi/.toggle_rofi.sh diff --git a/rofi/.toggle_rofi.sh b/rofi/.toggle_rofi.sh new file mode 100755 index 0000000..13d4cd8 --- /dev/null +++ b/rofi/.toggle_rofi.sh @@ -0,0 +1,6 @@ +if ps -C rofi > /dev/null +then + echo "Already running" +else + rofi -show combi -combi-modi drun,calc:~/.config/rofi/show-calculator.sh +fi diff --git a/rofi/config.rasi b/rofi/config.rasi index ab749a7..67c2b1b 100644 --- a/rofi/config.rasi +++ b/rofi/config.rasi @@ -1,5 +1,5 @@ configuration { - font: "SF Pro Rounded 15"; + font: "SF Pro Rounded 13"; show-icons: true; theme: "~/.config/rofi/material-ocean.rasi"; icon-theme: "Papirus"; diff --git a/rofi/material-ocean.rasi b/rofi/material-ocean.rasi index ce334c0..ced3b03 100644 --- a/rofi/material-ocean.rasi +++ b/rofi/material-ocean.rasi @@ -15,8 +15,9 @@ window { transparency: "real"; background-color: @background; text-color: @foreground; - width: 1000px; + width: 800px; y-offset: -25%; + border-radius: 5px; } textbox-prompt-colon { @@ -75,12 +76,13 @@ mainbox { message { children: [ textbox ]; + border-radius: 5px; } textbox { background-color: @selected; text-color: @foreground; - padding: 25px 6px 25px 80px; + padding: 20px 6px 20px 80px; } element { @@ -88,7 +90,7 @@ element { text-color: @foreground; orientation: horizontal; border-radius: 4px; - padding: 6px 6px 6px 6px; + padding: 2px 2px 2px 2px; } element-text, element-icon { @@ -102,13 +104,13 @@ element-icon { } element-text { - padding: 16px 0px 0px 10px; + padding: 20px 0px 0px 10px; } element selected { background-color: @selected; text-color: @selected-text; border: 0px; - border-radius: 0px; + border-radius: 3px; border-color: @selected; } diff --git a/rofi/show-calculator.sh b/rofi/show-calculator.sh index 596dadd..7c74891 100755 --- a/rofi/show-calculator.sh +++ b/rofi/show-calculator.sh @@ -1,7 +1,7 @@ #!/bin/bash if [[ -z "$1" ]]; then - echo "Show calculator" + echo "Calc Mode" else killall rofi