...
 
......@@ -5,7 +5,7 @@
hugo sassc goaccess
# cloud
awscli google-cloud-sdk
awscli google-cloud-sdk nixops
# api
protobuf
......
......@@ -144,8 +144,8 @@ interval = 1.0
date = %Y-%m-%d
time = %H:%M:%S (%a)
format = %{F#00CCCC}%{F-} <label>
label = %{A1:polybar-datetime-clipboard.sh &:}%date%T%time%%{A}
format = %{F#00CCCC}%{F-} <label>
label = %{A1:zenity --calendar --text Display &:}%date%T%time%%{A}
[module/userhost]
......
......@@ -25,18 +25,11 @@ in {
});
spotify = super.spotify.overrideAttrs (old: rec {
postInstall = ''
${super.gnused}/bin/sed -i "s/TryExec=spotify\n//" $out/share/applications/spotify.desktop
${super.gnused}/bin/sed -i "s/^Exec=spotify/Exec=spotify --force-device-scale-factor=2/g" $out/share/applications/spotify.desktop
'';
});
tmux = super.tmux.overrideAttrs (old: rec {
patches = [
(super.fetchurl {
url = "https://raw.githubusercontent.com/z80oolong/tmux-eaw-fix/master/tmux-2.9-fix.diff";
sha256 = "1m1yf7sdbd6vsx6y804bvbc52f5b43sd89ikpbgij4dhaffl49aj";
url = "https://raw.githubusercontent.com/z80oolong/tmux-eaw-fix/master/tmux-2.9a-fix.diff";
sha256 = "11siyirp9wlyqq9ga4iwxw6cb4zg5n58jklgab2dkp469wxbx2ql";
})
];
});
......
self: super: let
require = path: args: super.callPackage (import path) args ;
in {
# compton = super.compton.overrideAttrs (old: rec {
# src = super.fetchFromGitHub {
# owner = "yshui";
# repo = "picom";
# rev = "v7.4";
# sha256 = "11mrfiivwa1lba1ipck0l6q86ngwv1p0rs2dln05mk1904qbnj9h";
# fetchSubmodules = true;
# };
# });
fcitx-configtool = super.fcitx-configtool.overrideAttrs (old: rec {
preConfigure = ''
sed -ie '/^set(exec_prefix /d' CMakeLists.txt
substituteInPlace config.h.in \
--subst-var-by exec_prefix ${super.fcitx}
'';
});
firefox-bin-unwrapped = super.firefox-bin-unwrapped.override {
systemLocale = "ja";
};
......
......@@ -21,10 +21,5 @@
../config/per-bundle/hidpi.nix
../config/per-bundle/ibus.nix
../config/per-bundle/desktop.nix
# Extra
../config/per-bundle/daapd.nix
../config/per-bundle/jackaudio.nix
../config/per-bundle/kvm.nix
];
}
......@@ -9,6 +9,9 @@ our $URI_RE = qr{kalaclista:([^/]+?)/([^.]+)\.md};
sub main {
my $protocol = shift;
my ( $website, $path ) = ( $protocol =~ $URI_RE );
$path =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
my $file = join q{/}, ( $BASE_DIR, "src", $website, "content", "${path}.md" );
if ( ! -e $file ) {
......@@ -68,6 +71,10 @@ sub main {
my $code = system(qw(tmux list-sessions));
if ( $code != 0 ) {
open(my $eh, '>', $BASE_DIR . "/.edit");
print $eh $file;
close($eh);
system(qq< mlterm -e zsh -c 'cd "${BASE_DIR}" && tmux-up' >);
} else {
system(qq< tmux new-window -a -c "${BASE_DIR}" vim -c NERDTree ${file} >);
......
......@@ -4,7 +4,7 @@ cd $HOME/Pictures
xdpyinfo -ext XINERAMA | sed '/^ head #/!d;s///' |
while IFS=' :x@,' read i w h x y; do
gm import -window root -crop ${w}x$h+$x+$y ScreenShot_$(date +%Y-%d-%mT%H:%M:%S)-head-$i.png
gm import -window root -crop ${w}x$h+$x+$y ScreenShot_$(date +%Y-%m-%dT%H:%M:%S)-head-$i.png
done
notify-send -u low ScreenShot 'done!'