Format project using nixfmt rfc candidate.
This commit is contained in:
parent
1f63817684
commit
a9f7fe416f
91 changed files with 1347 additions and 1000 deletions
|
@ -1,26 +1,30 @@
|
|||
{pkgs}: let
|
||||
tabMode = pkgs.writeScript "tab-finder.sh" (with pkgs; /* bash */ ''
|
||||
#!/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;
|
||||
if [ -n ''${SWAYSOCK} ] && which swaymsg; then
|
||||
swaymsg "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
{ pkgs }:
|
||||
let
|
||||
tabMode = pkgs.writeScript "tab-finder.sh" (
|
||||
with pkgs; # bash
|
||||
''
|
||||
#!/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;
|
||||
if [ -n ''${SWAYSOCK} ] && which swaymsg; then
|
||||
swaymsg "[urgent=latest] focus" > /dev/null 2>&1;
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
exit 0;
|
||||
'');
|
||||
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 "DarkBlue"
|
||||
''
|
||||
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 "DarkBlue"
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue