From 66e731c831d78e6b0b7b4f413156b736b79829ce Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:14:01 +1030 Subject: [PATCH 01/14] Update launcher.sh Accept style as cli arg --- files/launchers/type-1/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-1/launcher.sh b/files/launchers/type-1/launcher.sh index 85b7df4..a6d99ea 100755 --- a/files/launchers/type-1/launcher.sh +++ b/files/launchers/type-1/launcher.sh @@ -12,7 +12,7 @@ ## style-11 style-12 style-13 style-14 style-15 dir="$HOME/.config/rofi/launchers/type-1" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From 7f98b34211d995e4f13024798cba2b4467843d96 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:15:12 +1030 Subject: [PATCH 02/14] Update launcher.sh --- files/launchers/type-2/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-2/launcher.sh b/files/launchers/type-2/launcher.sh index 3422cd7..79d7240 100755 --- a/files/launchers/type-2/launcher.sh +++ b/files/launchers/type-2/launcher.sh @@ -12,7 +12,7 @@ ## style-11 style-12 style-13 style-14 style-15 dir="$HOME/.config/rofi/launchers/type-2" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From a0848ed0250bb486f293e6d8b2d31181c2ded995 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:15:26 +1030 Subject: [PATCH 03/14] Update launcher.sh --- files/launchers/type-3/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-3/launcher.sh b/files/launchers/type-3/launcher.sh index ae97b5f..bbc95ce 100755 --- a/files/launchers/type-3/launcher.sh +++ b/files/launchers/type-3/launcher.sh @@ -11,7 +11,7 @@ ## style-6 style-7 style-8 style-9 style-10 dir="$HOME/.config/rofi/launchers/type-3" -theme='style-10' +theme=${1:-'style-1'} ## Run rofi \ From 4b14ac9068fbd1e8a9b09a6b6d12f652c71d2ddc Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:15:39 +1030 Subject: [PATCH 04/14] Update launcher.sh --- files/launchers/type-4/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-4/launcher.sh b/files/launchers/type-4/launcher.sh index 6572cda..1625359 100755 --- a/files/launchers/type-4/launcher.sh +++ b/files/launchers/type-4/launcher.sh @@ -11,7 +11,7 @@ ## style-6 style-7 style-8 style-9 style-10 dir="$HOME/.config/rofi/launchers/type-4" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From 10739c30b1470ff997b2d49ea46923865c2468d9 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:15:50 +1030 Subject: [PATCH 05/14] Update launcher.sh --- files/launchers/type-5/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-5/launcher.sh b/files/launchers/type-5/launcher.sh index e9d0a3a..f601794 100755 --- a/files/launchers/type-5/launcher.sh +++ b/files/launchers/type-5/launcher.sh @@ -10,7 +10,7 @@ ## style-1 style-2 style-3 style-4 style-5 dir="$HOME/.config/rofi/launchers/type-5" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From 62d82fc292d639c0bebbb19666c42e7a2457c4f6 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:16:01 +1030 Subject: [PATCH 06/14] Update launcher.sh --- files/launchers/type-6/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-6/launcher.sh b/files/launchers/type-6/launcher.sh index c0b4d33..854edde 100755 --- a/files/launchers/type-6/launcher.sh +++ b/files/launchers/type-6/launcher.sh @@ -11,7 +11,7 @@ ## style-6 style-7 style-8 style-9 style-10 dir="$HOME/.config/rofi/launchers/type-6" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From 326cc548b5b0f718656523a933a090d45df9130a Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:16:12 +1030 Subject: [PATCH 07/14] Update launcher.sh --- files/launchers/type-7/launcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/launchers/type-7/launcher.sh b/files/launchers/type-7/launcher.sh index aa45aa9..e1d0d61 100755 --- a/files/launchers/type-7/launcher.sh +++ b/files/launchers/type-7/launcher.sh @@ -11,7 +11,7 @@ ## style-6 style-7 style-8 style-9 style-10 dir="$HOME/.config/rofi/launchers/type-7" -theme='style-1' +theme=${1:-'style-1'} ## Run rofi \ From 0e10e9257f2d4ca77e7da2d7dbd049df6899b05d Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:17:34 +1030 Subject: [PATCH 08/14] Update powermenu.sh --- files/powermenu/type-1/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-1/powermenu.sh b/files/powermenu/type-1/powermenu.sh index dd978af..baf591d 100755 --- a/files/powermenu/type-1/powermenu.sh +++ b/files/powermenu/type-1/powermenu.sh @@ -11,7 +11,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-1" -theme='style-1' +theme=${1:-'style-1'} # CMDs uptime="`uptime -p | sed -e 's/up //g'`" From 139114e146cee382452496dbaf3b997562f1273f Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:17:45 +1030 Subject: [PATCH 09/14] Update powermenu.sh --- files/powermenu/type-2/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-2/powermenu.sh b/files/powermenu/type-2/powermenu.sh index 23d0795..28b6248 100755 --- a/files/powermenu/type-2/powermenu.sh +++ b/files/powermenu/type-2/powermenu.sh @@ -12,7 +12,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-2" -theme='style-1' +theme=${1:-'style-1'} # CMDs uptime="`uptime -p | sed -e 's/up //g'`" From 3c85b46c79043a9a6b4aa92ebb3fe19b0d329b85 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:17:56 +1030 Subject: [PATCH 10/14] Update powermenu.sh --- files/powermenu/type-3/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-3/powermenu.sh b/files/powermenu/type-3/powermenu.sh index 8c1e47f..26353d0 100755 --- a/files/powermenu/type-3/powermenu.sh +++ b/files/powermenu/type-3/powermenu.sh @@ -11,7 +11,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-3" -theme='style-1' +theme=${1:-'style-1'} # CMDs uptime="`uptime -p | sed -e 's/up //g'`" From 3a569d5594c40dbf71c58d08ba5c36bb385f08d1 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:18:07 +1030 Subject: [PATCH 11/14] Update powermenu.sh --- files/powermenu/type-4/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-4/powermenu.sh b/files/powermenu/type-4/powermenu.sh index 17f20c7..780d00f 100755 --- a/files/powermenu/type-4/powermenu.sh +++ b/files/powermenu/type-4/powermenu.sh @@ -11,7 +11,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-4" -theme='style-5' +theme=${1:-'style-1'} # CMDs uptime="`uptime -p | sed -e 's/up //g'`" From 730b53e221601b2d9690a2aa93da297ea962d2ce Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:18:17 +1030 Subject: [PATCH 12/14] Update powermenu.sh --- files/powermenu/type-5/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-5/powermenu.sh b/files/powermenu/type-5/powermenu.sh index 561e30c..18196f9 100755 --- a/files/powermenu/type-5/powermenu.sh +++ b/files/powermenu/type-5/powermenu.sh @@ -11,7 +11,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-5" -theme='style-1' +theme=${1:-'style-1'} # CMDs lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`" From 6f8b187a107ee2980b128e67db1f8cde0cb20b06 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sat, 10 Dec 2022 17:18:27 +1030 Subject: [PATCH 13/14] Update powermenu.sh --- files/powermenu/type-6/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/powermenu/type-6/powermenu.sh b/files/powermenu/type-6/powermenu.sh index ad93faf..52e0eb3 100755 --- a/files/powermenu/type-6/powermenu.sh +++ b/files/powermenu/type-6/powermenu.sh @@ -11,7 +11,7 @@ # Current Theme dir="$HOME/.config/rofi/powermenu/type-6" -theme='style-1' +theme=${1:-'style-1'} # CMDs lastlogin="`last $USER | head -n1 | tr -s ' ' | cut -d' ' -f5,6,7`" From 09a09db2211dcfdcbffffad6f238e9384e07e376 Mon Sep 17 00:00:00 2001 From: Julian POIDEVIN Date: Fri, 19 May 2023 16:11:08 +0200 Subject: [PATCH 14/14] docs: add documentation for launcher and powermenu 'style' argument. Signed-off-by: Julian POIDEVIN --- README.md | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6609ee3..77633b3 100644 --- a/README.md +++ b/README.md @@ -116,10 +116,15 @@ $ ./setup.sh ## Launchers -**`Change Style` :** Edit `~/.config/rofi/launchers/type-X/launcher.sh` script and edit the following line to use the style you like. -``` -theme='style-1' -``` +**`Change Style` :** You have two options to change the launcher style + +1. Either edit the `~/.config/rofi/launchers/type-X/launcher.sh` script and edit the following line to use the style you like. + + theme='style-1' + +2. Or pass "`style-X`" *(with `X` being the style number)* to the `launcher.sh` script. When using no argument, `style-1` will be used as default. + + ~/.config/rofi/launchers/type-X/launcher.sh style-X **`Change Colors` :** Edit `~/.config/rofi/launchers/type-X/shared/colors.rasi` file and edit the following line to use the color-scheme you like. ```css @@ -364,10 +369,15 @@ style='style-1.rasi' ## Powermenus -**`Change Style` :** Edit `~/.config/rofi/powermenu/type-X/powermenu.sh` script and edit the following line to use the style you like. -``` -theme='style-1' -``` +**`Change Style` :** You have two options to change the powermenu style + +1. Either edit the `~/.config/rofi/powermenu/type-X/powermenu.sh` script and edit the following line to use the style you like. + + theme='style-1' + +2. Or pass "`style-X`" *(with `X` being the style number)* to the `powermenu.sh` script. When using no argument, `style-1` will be used as default. + + ~/.config/rofi/powermenu/type-X/powermenu.sh style-X **`Change Colors` :** Edit `~/.config/rofi/powermenu/type-X/shared/colors.rasi` file and edit the following line to use the color-scheme you like. ```css