extract_url: move to profiles/desktop
this won't work on servers anyway (no firefox)
This commit is contained in:
parent
f1d6bc0fde
commit
eba9fd966c
@ -257,6 +257,20 @@ in {
|
|||||||
imports = [./plasma.nix];
|
imports = [./plasma.nix];
|
||||||
xdg.configFile."awesome/rc.lua".source = ./rc.lua;
|
xdg.configFile."awesome/rc.lua".source = ./rc.lua;
|
||||||
|
|
||||||
|
programs.tmux.extraConfig = let
|
||||||
|
cmd = "${pkgs.extract_url}/bin/extract_url";
|
||||||
|
cfg = pkgs.writeText "urlviewrc" "COMMAND firefox";
|
||||||
|
script = pkgs.writeShellApplication {
|
||||||
|
name = "urlview";
|
||||||
|
text = ''
|
||||||
|
tmux bind-key u capture-pane -J \\\; \
|
||||||
|
save-buffer "''${TMPDIR:-/tmp}/tmux-buffer" \\\; \
|
||||||
|
delete-buffer \\\; \
|
||||||
|
split-window -l 10 "${cmd} -c ${cfg} ''${TMPDIR:-/tmp}/tmux-buffer"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in "run-shell ${script}/bin/urlview";
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
cbatticon.enable = true;
|
cbatticon.enable = true;
|
||||||
blueman-applet.enable = true;
|
blueman-applet.enable = true;
|
||||||
|
@ -205,17 +205,6 @@ in {
|
|||||||
set-option -sg escape-time 10
|
set-option -sg escape-time 10
|
||||||
set-option -g default-terminal "screen-256color"
|
set-option -g default-terminal "screen-256color"
|
||||||
set-option -sa terminal-features ',xterm-256color:RGB'
|
set-option -sa terminal-features ',xterm-256color:RGB'
|
||||||
|
|
||||||
run-shell ${let
|
|
||||||
cmd = "${pkgs.extract_url}/bin/extract_url";
|
|
||||||
cfg = pkgs.writeText "urlviewrc" "COMMAND firefox";
|
|
||||||
in
|
|
||||||
pkgs.writeShellScript "urlview" ''
|
|
||||||
tmux bind-key u capture-pane -J \\\; \
|
|
||||||
save-buffer "''${TMPDIR:-/tmp}/tmux-buffer" \\\; \
|
|
||||||
delete-buffer \\\; \
|
|
||||||
split-window -l 10 "${cmd} -c ${cfg} ''${TMPDIR:-/tmp}/tmux-buffer"
|
|
||||||
''}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user