rofi: brotab mode only with sway, change theme to DarkBlue.
This commit is contained in:
parent
ce6f0c7ede
commit
fbea6d804c
1 changed files with 4 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
{pkgs}: let
|
{pkgs}: let
|
||||||
tabMode = pkgs.writeScript "tab-finder.sh" (with pkgs; ''
|
tabMode = pkgs.writeScript "tab-finder.sh" (with pkgs; /* bash */ ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if [ -z ''${1} ]; then
|
if [ -z ''${1} ]; then
|
||||||
${brotab}/bin/bt list;
|
${brotab}/bin/bt list;
|
||||||
|
@ -7,11 +7,8 @@
|
||||||
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
|
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
|
||||||
# activate window as focused to it is easy to switch to
|
# activate window as focused to it is easy to switch to
|
||||||
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
|
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
|
||||||
# TODO: Resolve at build time.
|
if [ -n ''${SWAYSOCK} ] && which swaymsg; then
|
||||||
if [ -n ''${HYPRLAND_INSTANCE_SIGNATURE} ]; then
|
swaymsg "[urgent=latest] focus" > /dev/null 2>&1;
|
||||||
${hyprland}/bin/hyprctl dispatch focusurgentorlast > /dev/null 2>&1;
|
|
||||||
else
|
|
||||||
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 0;
|
exit 0;
|
||||||
|
@ -25,5 +22,5 @@ in
|
||||||
icon-theme: "Papirus";
|
icon-theme: "Papirus";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
}
|
}
|
||||||
@theme "solarized"
|
@theme "DarkBlue"
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue