From 3f746583650e201c07609ed39827b6d365301e81 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 19 Oct 2022 09:41:25 +0200 Subject: [PATCH] update flameshot in i3 --- nixos/system/desktop/home-manager/i3.nix | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/nixos/system/desktop/home-manager/i3.nix b/nixos/system/desktop/home-manager/i3.nix index 3eed01a..5cacb34 100644 --- a/nixos/system/desktop/home-manager/i3.nix +++ b/nixos/system/desktop/home-manager/i3.nix @@ -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