update flameshot in i3

This commit is contained in:
Ingolf Wagner 2022-10-19 09:41:25 +02:00
parent 990c392513
commit 3f74658365
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -84,10 +84,12 @@ in
in
[
{ command = "${pkgs.albert}/bin/albert"; always = true; }
{
command = "${pkgs.polygon-art.polygon-art}/bin/rings --height ${toString height} --width ${toString width} /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png";
always = true;
}
#{
# command = "${pkgs.polygon-art.polygon-art}/bin/rings --height ${toString height} --width ${toString width} /dev/shm/background.png && ${pkgs.feh}/bin/feh --bg-scale /dev/shm/background.png";
# always = true;
#}
{ command = toString backgroundCommand; always = true; }
#{ command = "${pkgs.flameshot}/bin/flameshot"; always = true; }
# { command = "systemctl --user restart polybar"; always = true; notification = false; }
];
fonts = {
@ -171,6 +173,7 @@ in
};
};
keybindings = {
"Print" = "exec ${pkgs.flameshot}/bin/flameshot gui -c -p /share/";
"${cfg.config.modifier}+Return" = "exec ${cfg.config.terminal}";
"${cfg.config.modifier}+Shift+q" = "exit";
"${cfg.config.modifier}+q" = "kill";
@ -195,7 +198,7 @@ in
"${cfg.config.modifier}+w" = "layout tabbed";
"${cfg.config.modifier}+e" = "layout toggle split";
"${cfg.config.modifier}+Shift+f" = "floating toggle";
"${cfg.config.modifier}+t" = "floating toggle";
#"${cfg.config.modifier}+space" = "focus mode_toggle";
"${cfg.config.modifier}+b" = "exec ${backgroundCommand}";
@ -236,6 +239,15 @@ in
"${cfg.config.modifier}+grave" =
let
i3-wk-switch-pr = pkgs.i3-wk-switch.overrideAttrs (old: {
src = pkgs.fetchFromGitHub {
owner = "tmfink";
repo = "i3-wk-switch";
rev = "bef4d50cec9c731259001a10cc03a8e972e72d9d";
sha256 = "sha256-jxd7jxQK0ESVrZ8a1o0IBetWHKh73GD7ch1xAMUDAPE=";
};
});
script = pkgs.writers.writeBash "select-workspace" ''
set -e
set -o pipefail