From a376ece40a17281a195d5ab64f5d70ab0aca7909 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 18 Feb 2023 15:38:39 -0500 Subject: [PATCH] Add rofi-tabs script --- fake_home/.config/rofi/config.rasi | 6 ++++-- fake_home/.rofi-tabs.sh | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 fake_home/.rofi-tabs.sh diff --git a/fake_home/.config/rofi/config.rasi b/fake_home/.config/rofi/config.rasi index aec75d4..e110d9c 100644 --- a/fake_home/.config/rofi/config.rasi +++ b/fake_home/.config/rofi/config.rasi @@ -1,6 +1,6 @@ configuration { modes: [ combi, emoji ]; - combi-modes: [ window, drun, emoji ]; + combi-modes: [ window, drun, emoji, "tabs:/home/sage/.rofi-tabs.sh" ]; show-icons: true; drun { display-name: ""; @@ -11,6 +11,9 @@ configuration { window { display-name: ""; } + tabs { + display-name: ""; + } } @theme "/usr/share/rofi/themes/gruvbox-dark-hard.rasi" @@ -22,4 +25,3 @@ textbox-prompt-sep { inputbar { children: [ "textbox-prompt-sep","entry","case-indicator" ]; } - diff --git a/fake_home/.rofi-tabs.sh b/fake_home/.rofi-tabs.sh new file mode 100755 index 0000000..fbcfc58 --- /dev/null +++ b/fake_home/.rofi-tabs.sh @@ -0,0 +1,6 @@ +if [[ "$1" == "" ]]; then + bt list + exit 0 +fi + +bt activate --focused $(echo "$@" | awk '{print $1}') &> /dev/null