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 85b7df4f..a6d99eab 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 3422cd7e..79d72409 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 ae97b5f0..bbc95ce0 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 6572cdaf..16253596 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 e9d0a3a2..f6017948 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 c0b4d334..854edde9 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 aa45aa9d..e1d0d610 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 dd978af7..baf591d7 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 23d07956..28b62488 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 8c1e47f7..26353d0f 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 17f20c78..780d00f1 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 561e30cd..18196f9d 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 ad93fafb..52e0eb33 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 6609ee3a..77633b34 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