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
|
|
@ -7,6 +7,7 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = osConfig.mods;
|
cfg = osConfig.mods;
|
||||||
|
color = config.lib.stylix.colors.withHashtag;
|
||||||
in {
|
in {
|
||||||
# Modules
|
# Modules
|
||||||
mods.xdg.enable = true;
|
mods.xdg.enable = true;
|
||||||
|
|
@ -45,6 +46,20 @@ in {
|
||||||
# Non-free </3
|
# Non-free </3
|
||||||
++ [google-cloud-sdk google-cloud-sql-proxy];
|
++ [google-cloud-sdk google-cloud-sql-proxy];
|
||||||
|
|
||||||
|
services.flameshot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
disabledTrayIcon = true;
|
||||||
|
showStartupLaunchMessage = false;
|
||||||
|
startupLaunch = true;
|
||||||
|
|
||||||
|
uiColor = color.base01;
|
||||||
|
contrastUiColor = color.base00;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Hardware preferences
|
# Hardware preferences
|
||||||
## Monitors
|
## Monitors
|
||||||
xsession.windowManager.i3.config.workspaceOutputAssign = [
|
xsession.windowManager.i3.config.workspaceOutputAssign = [
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,6 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: 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;
|
zmenu = with pkgs;
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "zmenu";
|
name = "zmenu";
|
||||||
|
|
@ -155,7 +143,7 @@ in
|
||||||
// {
|
// {
|
||||||
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume 0 +2%";
|
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume 0 +2%";
|
||||||
"XF86AudioLowerVolume" = "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}+z" = "exec ${getExe zmenu}";
|
||||||
"${modifier}+p" = "exec clipmenu";
|
"${modifier}+p" = "exec clipmenu";
|
||||||
"${modifier}+b" = "exec ${getExe pkgs.rofi-rbw-x11}";
|
"${modifier}+b" = "exec ${getExe pkgs.rofi-rbw-x11}";
|
||||||
|
|
|
||||||
|
|
@ -48,12 +48,12 @@ in
|
||||||
programs.zsh.sessionVariables.BROWSER = "librewolf";
|
programs.zsh.sessionVariables.BROWSER = "librewolf";
|
||||||
|
|
||||||
services.flameshot = {
|
services.flameshot = {
|
||||||
enable = false;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
disabledTrayIcon = true;
|
disabledTrayIcon = true;
|
||||||
showStartupLaunchMessage = false;
|
showStartupLaunchMessage = false;
|
||||||
startupLaunch = false;
|
startupLaunch = true;
|
||||||
|
|
||||||
uiColor = color.base01;
|
uiColor = color.base01;
|
||||||
contrastUiColor = color.base00;
|
contrastUiColor = color.base00;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue