mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Fix flameshot
This commit is contained in:
parent
4608dd6f33
commit
4fd01683dc
3 changed files with 18 additions and 15 deletions
|
|
@ -5,18 +5,6 @@
|
|||
osConfig,
|
||||
...
|
||||
}: let
|
||||
fsss = with pkgs;
|
||||
writeShellApplication {
|
||||
name = "fsss";
|
||||
runtimeInputs = [flameshot curl xsel];
|
||||
text = ''
|
||||
flameshot gui -r -s > /tmp/ss.png;if [ ! -s /tmp/ss.png ]; then
|
||||
exit 1
|
||||
fi
|
||||
AUTH=$(cat ${config.sops.secrets.zipline-auth.path})
|
||||
curl -H "authorization: $AUTH" https://share.muon.host/api/upload -F file=@/tmp/ss.png -H "Content-Type: multipart/form-data" -H "Format: date" -H "Image-Compression-Percent: 90" -H "No-JSON: true" | tr -d '\n' | xsel -ib;
|
||||
'';
|
||||
};
|
||||
zmenu = with pkgs;
|
||||
writeShellApplication {
|
||||
name = "zmenu";
|
||||
|
|
@ -155,7 +143,7 @@ in
|
|||
// {
|
||||
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume 0 +2%";
|
||||
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume 0 -2%";
|
||||
"Print" = "exec ${getExe fsss}";
|
||||
"Print" = "exec flameshot gui -c -s";
|
||||
"${modifier}+z" = "exec ${getExe zmenu}";
|
||||
"${modifier}+p" = "exec clipmenu";
|
||||
"${modifier}+b" = "exec ${getExe pkgs.rofi-rbw-x11}";
|
||||
|
|
|
|||
|
|
@ -48,12 +48,12 @@ in
|
|||
programs.zsh.sessionVariables.BROWSER = "librewolf";
|
||||
|
||||
services.flameshot = {
|
||||
enable = false;
|
||||
enable = true;
|
||||
settings = {
|
||||
General = {
|
||||
disabledTrayIcon = true;
|
||||
showStartupLaunchMessage = false;
|
||||
startupLaunch = false;
|
||||
startupLaunch = true;
|
||||
|
||||
uiColor = color.base01;
|
||||
contrastUiColor = color.base00;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue