mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
feat: sxiv -> nsxiv
This commit is contained in:
@@ -138,7 +138,7 @@ in {
|
|||||||
cdt = "source ${cdt}";
|
cdt = "source ${cdt}";
|
||||||
vit = "$EDITOR $(mktemp)";
|
vit = "$EDITOR $(mktemp)";
|
||||||
tmux = "${pkgs.tmux}/bin/tmux -2";
|
tmux = "${pkgs.tmux}/bin/tmux -2";
|
||||||
sxiv = swallow "${pkgs.sxiv}/bin/sxiv";
|
sxiv = swallow "${pkgs.nsxiv}/bin/nsxiv";
|
||||||
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
zathura = swallow "${pkgs.zathura}/bin/zathura";
|
||||||
us = "${pkgs.systemd}/bin/systemctl --user";
|
us = "${pkgs.systemd}/bin/systemctl --user";
|
||||||
wcd = "source ${wcd}";
|
wcd = "source ${wcd}";
|
||||||
@@ -264,7 +264,7 @@ in {
|
|||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sshd.nix
|
./sshd.nix
|
||||||
./sudo.nix
|
./sudo.nix
|
||||||
./sxiv.nix
|
./nsxiv.nix
|
||||||
./themes.nix
|
./themes.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./traadfri.nix
|
./traadfri.nix
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
"application/vnd.oasis.opendocument.text" = "writer.desktop";
|
"application/vnd.oasis.opendocument.text" = "writer.desktop";
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = "writer.desktop";
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" = "writer.desktop";
|
||||||
"image/jpeg" = "sxiv.desktop";
|
"image/jpeg" = "nsxiv.desktop";
|
||||||
"image/png" = "sxiv.desktop";
|
"image/png" = "nsxiv.desktop";
|
||||||
"image/vnd.djvu+multipage" = "org.pwmt.zathura.desktop";
|
"image/vnd.djvu+multipage" = "org.pwmt.zathura.desktop";
|
||||||
"text/html" = "brave-browser.desktop";
|
"text/html" = "brave-browser.desktop";
|
||||||
"text/markdown" = "nvim.desktop";
|
"text/markdown" = "nvim.desktop";
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ in {
|
|||||||
pkgs.writeText "mailcap" ''
|
pkgs.writeText "mailcap" ''
|
||||||
text/plain; $EDITOR %s ;
|
text/plain; $EDITOR %s ;
|
||||||
text/html; ${pkgs.lynx}/bin/lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
|
text/html; ${pkgs.lynx}/bin/lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
|
||||||
image/*; ${pkgs.sxiv}/bin/sxiv %s ;
|
image/*; ${pkgs.nsxiv}/bin/nsxiv %s ;
|
||||||
video/*; ${pkgs.utillinux}/bin/setsid ${pkgs.mpv}/bin/mpv --quiet %s &; copiousoutput
|
video/*; ${pkgs.utillinux}/bin/setsid ${pkgs.mpv}/bin/mpv --quiet %s &; copiousoutput
|
||||||
audio/*; ${pkgs.mpv}/bin/mpv %s ;
|
audio/*; ${pkgs.mpv}/bin/mpv %s ;
|
||||||
application/pdf; ${pkgs.zathura}/bin/zathura %s ;
|
application/pdf; ${pkgs.zathura}/bin/zathura %s ;
|
||||||
|
|||||||
@@ -15,10 +15,10 @@
|
|||||||
cf ''${XDG_CONFIG_HOME:-$HOME/.config}
|
cf ''${XDG_CONFIG_HOME:-$HOME/.config}
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [pkgs.sxiv];
|
environment.systemPackages = [pkgs.nsxiv];
|
||||||
|
|
||||||
# TODO fix
|
# TODO fix
|
||||||
home-manager.users.me.xdg.configFile."sxiv/exec/key-handler".source = pkgs.writers.writeDash "key-handler" ''
|
home-manager.users.me.xdg.configFile."nsxiv/exec/key-handler".source = pkgs.writers.writeDash "key-handler" ''
|
||||||
PATH=$PATH:${
|
PATH=$PATH:${
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
pkgs.gnused
|
pkgs.gnused
|
||||||
@@ -96,7 +96,7 @@ in
|
|||||||
rm "$file"
|
rm "$file"
|
||||||
}
|
}
|
||||||
${pkgs.qrencode}/bin/qrencode "$(${pkgs.xclip}/bin/xclip -selection clipboard -out)" -o "$file"
|
${pkgs.qrencode}/bin/qrencode "$(${pkgs.xclip}/bin/xclip -selection clipboard -out)" -o "$file"
|
||||||
${pkgs.sxiv}/bin/sxiv "$file"
|
${pkgs.nsxiv}/bin/nsxiv "$file"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ttspaste = pkgs.writers.writeDashBin "ttspaste" ''
|
ttspaste = pkgs.writers.writeDashBin "ttspaste" ''
|
||||||
@@ -123,7 +123,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
meteo = wrapScript {
|
meteo = wrapScript {
|
||||||
packages = [pkgs.jq pkgs.curl pkgs.xdotool pkgs.sxiv pkgs.gnused];
|
packages = [pkgs.jq pkgs.curl pkgs.xdotool pkgs.nsxiv pkgs.gnused];
|
||||||
script = ./meteo.sh;
|
script = ./meteo.sh;
|
||||||
name = "meteo";
|
name = "meteo";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ curl -sSL \
|
|||||||
"http://wetterstationen.meteomedia.de/messnetz/vorhersagegrafik/$station.png" \
|
"http://wetterstationen.meteomedia.de/messnetz/vorhersagegrafik/$station.png" \
|
||||||
-o "$cache"
|
-o "$cache"
|
||||||
|
|
||||||
if window_id=$(xdotool search --name "^sxiv - $cache$"); then
|
if window_id=$(xdotool search --name "^nsxiv - $cache$"); then
|
||||||
xdotool key --window "$window_id" r
|
xdotool key --window "$window_id" r
|
||||||
else
|
else
|
||||||
sxiv "$cache" &
|
nsxiv "$cache" &
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user