2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "i3-wk-switch";
|
|
|
|
version = "2020-03-18";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "other";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmfink";
|
|
|
|
repo = pname;
|
|
|
|
rev = "a618cb8f52120aa8d533bb7c0c8de3ff13b3dc06";
|
|
|
|
sha256 = "0ci0w5igjk5xa8x4rx17cpgmdkamwjmavxhp0vp6213cl93ybjhz";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ i3ipc ];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp i3-wk-switch.py "$out/bin/i3-wk-switch"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "XMonad-like workspace switching for i3 and sway";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "i3-wk-switch";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ synthetica ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://travisf.net/i3-wk-switcher";
|
|
|
|
};
|
|
|
|
}
|