From 0b50edf7248e41bd0350e2808373ad6bc06ff88c Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 10 Jul 2023 05:44:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96rofi=E6=A0=B7=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/confirm.rasi | 6 +++--- home/config/rofi/powermenu.rasi | 6 +++--- home/local/bin/scripts/rofi_powermenu.sh | 6 +++--- home/local/bin/scripts/run_asroot.sh | 6 ++++++ 5 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 home/local/bin/scripts/run_asroot.sh diff --git a/home/config/rofi/colors.rasi b/home/config/rofi/colors.rasi index 7086c80..0bce6f2 100644 --- a/home/config/rofi/colors.rasi +++ b/home/config/rofi/colors.rasi @@ -17,5 +17,5 @@ background-color: @bg; text-color: @fg; - font: "Menlo 9"; + font: "Menlo 12"; } diff --git a/home/config/rofi/confirm.rasi b/home/config/rofi/confirm.rasi index c3123bf..7326008 100644 --- a/home/config/rofi/confirm.rasi +++ b/home/config/rofi/confirm.rasi @@ -30,7 +30,7 @@ inputbar { textbox-prompt-colon { expand: false; - str: ""; + str: ""; font: "'Material Icons' 24px"; padding: 12px 14px; border-radius: 50%; @@ -40,8 +40,8 @@ textbox-prompt-colon { } prompt { padding: 12px 16px; - border-radius: 24px; - background-color: @blue; + border-radius: 50%; + background-color: @grey; text-color: @fg; vertical-align: 0.5; } diff --git a/home/config/rofi/powermenu.rasi b/home/config/rofi/powermenu.rasi index 5c95005..e47ef71 100644 --- a/home/config/rofi/powermenu.rasi +++ b/home/config/rofi/powermenu.rasi @@ -29,7 +29,7 @@ inputbar { textbox-prompt-colon { expand: false; - str: ""; + str: ""; font: "'Material Icons' 24px"; padding: 12px 14px; border-radius: 50%; @@ -39,8 +39,8 @@ textbox-prompt-colon { } prompt { padding: 12px 16px; - border-radius: 24px; - background-color: @blue; + border-radius: 50%; + background-color: @grey; text-color: @fg; vertical-align: 0.5; } diff --git a/home/local/bin/scripts/rofi_powermenu.sh b/home/local/bin/scripts/rofi_powermenu.sh index ef76cbd..f2e121d 100644 --- a/home/local/bin/scripts/rofi_powermenu.sh +++ b/home/local/bin/scripts/rofi_powermenu.sh @@ -3,11 +3,11 @@ prompt="Select the action..." mesg="Uptime : `uptime -p | sed -e 's/up //g'`" -option_1="" +option_1="" option_2="" -option_3="" +option_3="" option_4="" -option_5="" +option_5="" yes='' no='' diff --git a/home/local/bin/scripts/run_asroot.sh b/home/local/bin/scripts/run_asroot.sh new file mode 100644 index 0000000..f53a435 --- /dev/null +++ b/home/local/bin/scripts/run_asroot.sh @@ -0,0 +1,6 @@ +#!/bin/bash + + +export SUDO_ASKPASS=${HOME}/.local/bin/scripts/rofi_password.sh + +sudo -E -A $1