Format the entire project.
This commit is contained in:
parent
1dc50ae17d
commit
6f9db5e3a4
115 changed files with 3451 additions and 2901 deletions
|
@ -1,25 +1,23 @@
|
|||
{ pkgs }:
|
||||
|
||||
let
|
||||
{pkgs}: let
|
||||
tabMode = pkgs.writeScript "tab-finder.sh" (with pkgs; ''
|
||||
#!/usr/bin/env bash
|
||||
if [ -z ''${1} ]; then
|
||||
${brotab}/bin/bt list;
|
||||
else
|
||||
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
|
||||
# activate window as focused to it is easy to switch to
|
||||
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
|
||||
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
fi
|
||||
exit 0;
|
||||
#!/usr/bin/env bash
|
||||
if [ -z ''${1} ]; then
|
||||
${brotab}/bin/bt list;
|
||||
else
|
||||
TARGET_TAB=$(sed "s/\t.*$//g" <<< ''${1});
|
||||
# activate window as focused to it is easy to switch to
|
||||
${brotab}/bin/bt activate --focused ''${TARGET_TAB} > /dev/null 2>&1;
|
||||
${i3}/bin/i3-msg -t run_command "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
fi
|
||||
exit 0;
|
||||
'');
|
||||
in (pkgs.writeText "rofi.rasi" ''
|
||||
configuration {
|
||||
modi: "combi,window,drun,ssh,tabFinder:${tabMode}";
|
||||
font: "hack 10";
|
||||
combi-modi: "window,drun,ssh,tabFinder";
|
||||
icon-theme: "Papirus";
|
||||
show-icons: true;
|
||||
}
|
||||
@theme "solarized"
|
||||
configuration {
|
||||
modi: "combi,window,drun,ssh,tabFinder:${tabMode}";
|
||||
font: "hack 10";
|
||||
combi-modi: "window,drun,ssh,tabFinder";
|
||||
icon-theme: "Papirus";
|
||||
show-icons: true;
|
||||
}
|
||||
@theme "solarized"
|
||||
'')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue